forked from projectcontour/contour
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable more linters for standardizing imports (projectcontour#6094)
Enable gci linter, for deterministic import order Enable importas linter for consistent import aliases - group imports by standard, external, contour - enforce alias for all occurrences that have a rule Signed-off-by: Sunjay Bhatia <[email protected]>
- Loading branch information
1 parent
3d78210
commit fa1d380
Showing
328 changed files
with
18,822 additions
and
18,551 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
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 |
---|---|---|
|
@@ -226,7 +226,9 @@ lint-flags: | |
.PHONY: format | ||
format: ## Run gofumpt to format the codebase. | ||
@echo Running gofumpt... | ||
@./hack/gofumpt -l -w -extra . | ||
@go run mvdan.cc/[email protected] -l -w -extra . | ||
@echo Running gci... | ||
@go run github.com/daixiang0/[email protected] write . --skip-generated -s standard -s default -s "prefix(github.com/projectcontour/contour)" --custom-order | ||
|
||
.PHONY: generate | ||
generate: ## Re-generate generated code and documentation | ||
|
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
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.