Skip to content

Commit

Permalink
Add InstanceVariable linter
Browse files Browse the repository at this point in the history
Adds the InstanceVariable linter, which can be limited to partials only
(thus deprecating PartialInstanceVariable), but considers an instance
variable in any template to be an offense by default.

Also changed range behavior in both linters to highlight the instance
variables themselves. The previous behavior highlighted the start of the
variable to the end of the file.

Finally, added support for detecting class instance variables.
  • Loading branch information
emilong committed Jun 17, 2024
1 parent f82b3f7 commit ea1829d
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 105 deletions.
Loading

0 comments on commit ea1829d

Please sign in to comment.