-
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.
- Loading branch information
1 parent
8366b22
commit c53644d
Showing
1 changed file
with
26 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: "2" | ||
checks: | ||
# Go returns 'error's rather than throwing exceptions, so the safer the code the more errors are returned. | ||
# To avoid deeply nested if-statements we generally use guard clauses as recommended by Martin Fowler. | ||
# Guard statements are if-statements that, as early as possible, check conditions and return if failed. They improve readability | ||
# over nested if-statements. This however leads to many return statements which can't be avoided, so we'll disable the max. exit points check. | ||
return-statements: | ||
enabled: false | ||
exclude_patterns: | ||
- "**/generated.go" | ||
- "**/test/**/*.go" | ||
- "**/test.go" | ||
- "**/*_test.go" | ||
- "**/test*.go" | ||
- "**/mock/**/*.go" | ||
- "**/mock.go" | ||
- "**/*_mock.go" | ||
- "docs/**/*.go" | ||
- "codegen/**/*.go" | ||
- "**/*.pb.go" | ||
- "e2e-tests/**/*.go" | ||
plugins: | ||
gofmt: | ||
enabled: true | ||
govet: | ||
enabled: true |