Skip to content

Commit

Permalink
feat: support // scopelint: disable-* directive to ignore regions (#35
Browse files Browse the repository at this point in the history
)

* feat: initial disable support

* refactor: better API for passing around parsed data, disable checks are now done within each validator

* test: additional tests

* fix: add missing is_in_disabled_region check

* doc: fix reference

* fix: disabled check now uses the proper loc

* refactor: cleaner interface around items and filtering disabled ranges

* chore: remove _template.rs

easier to just create new lints based on existing files, rather than maintain the template

* test: change disble-start to disable-next-item

* chore: typo

* test: add test for invalid directives

* refactor: remove custom type definition

* fix: use proper location, add missing disable checks
  • Loading branch information
mds1 authored Sep 13, 2023
1 parent 76c8f01 commit 2ea285e
Show file tree
Hide file tree
Showing 17 changed files with 975 additions and 148 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
[dependencies]
clap = { version = "4.4.2", features = ["derive"] }
colored = "2.0.0"
itertools = "0.11.0"
once_cell = "1.16.0"
regex = "1.6.0"
solang-parser = "0.3.2"
Expand Down
Loading

0 comments on commit 2ea285e

Please sign in to comment.