mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-01-12 08:15:18 +00:00
chore(lint): Enable localmodule for import linter (#1989)
We use three sections through-out the codebase -- standard, default, and localmodule. This change updates the linter to enforce this pattern as files are added or modified.
This commit is contained in:
parent
e198eeb3b4
commit
272f82ec99
@ -95,6 +95,7 @@ linters-settings:
|
|||||||
sections: # defines the order of import sections
|
sections: # defines the order of import sections
|
||||||
- standard
|
- standard
|
||||||
- default
|
- default
|
||||||
|
- localmodule
|
||||||
goconst:
|
goconst:
|
||||||
min-len: 3 # min length for string constants to be checked
|
min-len: 3 # min length for string constants to be checked
|
||||||
min-occurrences: 3 # min occurrences of the same constant before it's flagged
|
min-occurrences: 3 # min occurrences of the same constant before it's flagged
|
||||||
|
Loading…
Reference in New Issue
Block a user