-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a linter to enforce sorted lines using lint:sorted directive. (#1…
…0765) * Add a linter to enforce sorted lines using lint:sorted directive. As someone once commented somewhere: we are not savages. The lack of sorting in the modules.go modules constant definitions was bothering me big time, especially since CostAttribution was added after All. This sorts them and adds a linter that is triggered by adding a // lint:sorted comment which would fail if lines aren't sorted. The linter checks lines from the line containing the directive until the next white space or a line that only contains closing bracket. Signed-off-by: Oleg Zaytsev <[email protected]> * Add license header Signed-off-by: Oleg Zaytsev <[email protected]> --------- Signed-off-by: Oleg Zaytsev <[email protected]>
- Loading branch information
Showing
3 changed files
with
221 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.