-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check import order and formatting during linting (#121)
* Check import sort order during linting and fix issues. * Add `fix-lint` target * Clean up trailing whitespace * Enable `gofmt` linter too
- Loading branch information
1 parent
d0f636b
commit f638da6
Showing
5 changed files
with
28 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
run: | ||
build-tags: | ||
- requires_docker | ||
|
||
linters: | ||
enable: | ||
- gci | ||
- gofmt | ||
|
||
linters-settings: | ||
errcheck: | ||
# Use exclude-functions instead of exclude, since the GitHub Action's caching is broken. | ||
# When changing the file referenced by exclude, the GitHub Action may use an older cache | ||
# entry and ignore the changes in said file (thus breaking CI). | ||
exclude-functions: | ||
- (github.com/go-kit/log.Logger).Log | ||
|
||
gci: | ||
skip-generated: true | ||
custom-order: true | ||
sections: | ||
- standard | ||
- default | ||
- prefix(github.com/grafana/rollout-operator) |
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
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