Skip to content

Switch linter to rules #4

@fzipi

Description

@fzipi

Right now the linter has all the rules embedded. A simpler way of managing the rules is to create independent files with each check and have them mapped.

Similar to what other linters do.

Requirements

  • add a new class LintProblem with the properties used (e.g. line, end_line, description, etc.)
  • split the lint rules into files below a rules/ directory
  • load the lint rules dinamically from the rules directory. we can even add config levels for each rule, if neded
  • every lint rule should yield an error each time we found one, effectively creating an iterator that is easy to use

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions