-
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.
ci: introduce flamingo code standards (#15)
- Loading branch information
Showing
7 changed files
with
200 additions
and
51 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 |
---|---|---|
|
@@ -25,4 +25,4 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
version: v1.61 |
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,114 @@ | ||
# Options for analysis running. | ||
run: | ||
concurrency: 4 | ||
timeout: 5m | ||
tests: true | ||
modules-download-mode: readonly | ||
allow-parallel-runners: false | ||
|
||
# output configuration options | ||
output: | ||
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions | ||
# | ||
# Multiple can be specified by separating them by comma, output can be provided | ||
# for each of them by separating format name and path by colon symbol. | ||
# Output path can be either `stdout`, `stderr` or path to the file to write to. | ||
# Example: "checkstyle:report.json,colored-line-number" | ||
# | ||
# Default: colored-line-number | ||
formats: | ||
- format: tab | ||
print-issued-lines: true | ||
print-linter-name: true | ||
uniq-by-line: true | ||
sort-results: true | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- copyloopvar | ||
- cyclop | ||
- durationcheck | ||
- err113 | ||
- errcheck | ||
- errname | ||
- errorlint | ||
- exhaustive | ||
- forbidigo | ||
- forcetypeassert | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gofmt | ||
- gomoddirectives | ||
- gosec | ||
- gosimple | ||
- govet | ||
- grouper | ||
- ineffassign | ||
- makezero | ||
- misspell | ||
- mnd | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- nosprintfhostport | ||
- paralleltest | ||
- prealloc | ||
- predeclared | ||
- revive | ||
- staticcheck | ||
- tenv | ||
- testpackage | ||
- thelper | ||
- tparallel | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- varnamelen | ||
- wrapcheck | ||
- wsl | ||
|
||
issues: | ||
new: false | ||
fix: false | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- containedctx | ||
- err113 | ||
- forcetypeassert | ||
- goconst | ||
- varnamelen | ||
- wrapcheck | ||
|
||
linters-settings: | ||
mnd: | ||
ignored-functions: | ||
- context.WithTimeout | ||
nolintlint: | ||
require-specific: true | ||
require-explanation: true | ||
revive: | ||
rules: | ||
- name: var-naming | ||
disabled: true | ||
varnamelen: | ||
max-distance: 10 | ||
ignore-type-assert-ok: true | ||
ignore-map-index-ok: true | ||
ignore-chan-recv-ok: true | ||
ignore-names: | ||
- err | ||
- id | ||
ignore-decls: | ||
- i int |
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.