Commit 96d107c
feat(forge): forge lint (foundry-rs#10405)
* add lint cmd, variable lints
* wip
* wip
* wip
* wip
* wip
* wip
* add keccak256 opt test
* wip
* wip
* wip
* wip
* fix div before mul
* update lint args
* wip
* update declare lints macro
* update with_severity
* configure linter
* wip
* update hash value
* fix read in source
* rayon
* reorder lint declarations
* clippy
* add placeholder for additional lints
* more placeholders
* wip
* wip
* refactor into sol linter
* impl Linter for SolidityLinter
* fmt
* wip
* wip
* refactor lints into SolLint enum
* update lint trait
* wip
* wip
* wip
* wip
* wip
* update lint
* update forge lint to use ProjectLinter
* wip
* include/exclude files from linting
* linter output display note
* configure with severity and description
* fmt
* implementing display
* wip
* wip
* implement display for linter output, clippy fixes
* add note to update colors
* update linter output display
* remove todos, clean up comments
* clean up display
* update med finding color
* add optional help message
* display help message
* simplify lint args, make severity configurable
* updating lints, update tests
* add tests for info patterns, fix regex
* remove function mixed case
* doc comments
* clippy
* fmt
* reorganize, crate level docs
* fix info lints
* Use Solar daignostics instead of `LinterOutput` (#6)
* use solar diagnostics, remove unneeded types
* update diagnostic emission
* clippy
* set track daignostics to false
* display help message
* set level according to severity
* update descriptions to be more concise
* removed LinterError from lint trait
* early pass + tests
* fix: fmt + clippy
* fix: fmt + clippy
* fix: fmt + clippy
* fix: fmt + clippy
* fix: feedback
* fix: feedback
* fix: regex
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
* tests: cli integration
* fix: broken test
* fix: fmt
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* style: naming
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* style: fmt
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix: use heck + individual lint macros + housekeeping
* fix: single session with parallel linting per file
* style: fix docs errors + typos
* docs: ref to deleted field
* fix: preprocessor regression + cargo.toml + default lint config tests
* test(forge): solar test runner (#2)
* style: clippy
* typo
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix: housekeeping
* docs: linter docs for users + devs
* docs: style
* docs: style
* clone lint testdata with lf
* fix: out dir constructor
* update toml
* fix: merge conflicts
* fix: cargo.lock merge conflicts
* style: clippy
* style: whitespace
* fix: clippy
* Cargo.lock update to weekly task
* Preserve alloy patch placeholders
* Clippy
---------
Co-authored-by: 0xKitsune <0xkitsune@protonmail.com>
Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>1 parent 4a7f84b commit 96d107c
File tree
48 files changed
+2108
-5
lines changed- crates
- anvil/core/src/eth/transaction
- config
- src
- forge
- src
- cmd
- tests
- cli
- lint
- src
- sol
- gas
- high
- info
- med
- testdata
- test-utils
- src
- docs/dev
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+2108
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| 205 | + | |
203 | 206 | | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| |||
337 | 341 | | |
338 | 342 | | |
339 | 343 | | |
| 344 | + | |
340 | 345 | | |
341 | 346 | | |
342 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | | - | |
| 1682 | + | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | 1685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments