dysnomia icon indicating copy to clipboard operation
dysnomia copied to clipboard

(RFC) refactor: new linting rules

Open TTtie opened this issue 1 year ago • 2 comments

This PR tweaks the linting rules mainly to help readability and enforce consistency across the Dysnomia codebase.

What's changed as of now

  • strict is now enforced as an error - this means that strict mode will be consistently required
  • eqeqeq is also now enforced as an error to help avoid using loose == which is slower (== null is still allowed)
  • spacing between keywords is now enforced - this is mainly to combat these } catch{ constructs introduced in #46, secondly because I like it more
  • anything else? open to comments and suggestions on what rules to enable/disable/fine-tune

TTtie avatar May 14 '23 15:05 TTtie