Commit 8dca98f
committed
Replace hack/krtequals with standalone krtequals module
Replace the in-tree hack/krtequals linter implementation with the standalone
krtequals module (github.com/kgateway-dev/krtequals).
The standalone module provides:
- Improved test coverage for edge cases (chained expressions, delegated
Equals calls, method arguments)
- New checkUnexported config option to lint unexported struct fields
- golangci-lint module plugin integration
- Cleaner separation of concerns
The original implementation has been ported and enhanced in the standalone
repository with more robust testing and additional configuration options.
Note: I disabled the checkUnexported config option for now. There's linting
violations that will need to be burned down as a follow-up.
Signed-off-by: timflannagan <[email protected]>1 parent c70ad34 commit 8dca98f
File tree
11 files changed
+3
-414
lines changed- hack/krtequals
- testdata/src
- deepequaloff
- deepequalon
- markers
11 files changed
+3
-414
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments