This repository was archived by the owner on Nov 28, 2024. It is now read-only.
generated from open-component-model/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: applying lint and fixing the lint issues (#57)
- Loading branch information
Showing
14 changed files
with
344 additions
and
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
run: | ||
go: "1.21" | ||
timeout: 10m | ||
tests: false | ||
allow-parallel-runners: true | ||
skip-dirs: | ||
- "./*/mock" | ||
|
||
linters-settings: | ||
funlen: | ||
lines: 150 | ||
statements: 60 | ||
staticcheck: | ||
go: "1.21" | ||
stylecheck: | ||
go: "1.21" | ||
cyclop: | ||
max-complexity: 20 | ||
skip-tests: true | ||
gosec: | ||
exclude-generated: true | ||
lll: | ||
line-length: 150 | ||
misspell: | ||
locale: US | ||
govet: | ||
check-shadowing: true | ||
nilaway: | ||
nolintlint: | ||
allow-unused: true | ||
require-explanation: true | ||
require-specific: false | ||
varnamelen: | ||
ignore-names: | ||
- err | ||
- wg | ||
- fs | ||
- id | ||
- vm | ||
- ns | ||
- ip | ||
|
||
issues: | ||
max-same-issues: 0 | ||
max-issues-per-linter: 0 | ||
exclude-rules: | ||
- text: "should not use dot imports|don't use an underscore in package name" | ||
linters: | ||
- golint | ||
- source: "https://" | ||
linters: | ||
- lll | ||
- path: pkg/defaults/ | ||
linters: | ||
- lll | ||
- path: _test\.go | ||
linters: | ||
- goerr113 | ||
- gocyclo | ||
- errcheck | ||
- gosec | ||
- dupl | ||
- funlen | ||
- scopelint | ||
- testpackage | ||
- goconst | ||
- godox | ||
- path: internal/version/ | ||
linters: | ||
- gochecknoglobals | ||
- path: internal/command/ | ||
linters: | ||
- exhaustivestruct | ||
- lll | ||
- wrapcheck | ||
- source: "// .* #\\d+" | ||
linters: | ||
- godox | ||
- path: test/e2e/ | ||
linters: | ||
- goerr113 | ||
- gomnd | ||
# remove this once https://github.com/golangci/golangci-lint/issues/2649 is closed | ||
- path: / | ||
linters: | ||
- typecheck | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- gci | ||
- depguard | ||
- exhaustivestruct | ||
- golint | ||
- interfacer | ||
- ireturn | ||
- maligned | ||
- nilnil | ||
- scopelint | ||
- tagliatelle | ||
- gomoddirectives | ||
- varcheck | ||
- nosnakecase | ||
- structcheck | ||
- ifshort | ||
- deadcode | ||
- forbidigo | ||
- prealloc | ||
- gochecknoinits | ||
- exhaustruct | ||
- goerr113 | ||
- govet | ||
- nonamedreturns | ||
- varnamelen | ||
- wrapcheck | ||
- staticcheck | ||
- gochecknoglobals | ||
- paralleltest | ||
- wsl |
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
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.