-
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.
* build(docker): remove as it doesn't make sense for this * chore(lefthook): remove unused * style(golangci-lint): add config * refactor: rewire password handling * style: fix lint issues * fix: more lint issues * style(golangci-lint): update config re: deprecated linters
- Loading branch information
Showing
11 changed files
with
186 additions
and
32 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,2 +1,132 @@ | ||
issues: | ||
exclude-use-default: false | ||
exclude: | ||
- ^exported var `Err[A-Za-z]+` should have comment or be unexported$ | ||
- ^should have a package comment, unless it's in another file for this package$ | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
linters-settings: | ||
dogsled: | ||
max-blank-identifiers: 2 | ||
|
||
dupl: | ||
threshold: 50 | ||
|
||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
|
||
errorlint: | ||
errorf: true | ||
|
||
gci: | ||
local-prefixes: go.jlucktay.dev/factorio-server-kit/goppuku | ||
|
||
goconst: | ||
min-len: 3 | ||
min-occurrences: 3 | ||
|
||
godot: | ||
capital: true | ||
scope: toplevel | ||
|
||
gofmt: | ||
simplify: true | ||
|
||
gofumpt: | ||
extra-rules: true | ||
|
||
govet: | ||
check-shadowing: true | ||
enable-all: true | ||
|
||
lll: | ||
line-length: 120 | ||
tab-width: 2 | ||
|
||
nakedret: | ||
max-func-lines: 25 | ||
|
||
nestif: | ||
min-complexity: 4 | ||
|
||
nolintlint: | ||
# Exclude following linters from requiring an explanation. Default is []. | ||
allow-no-explanation: [] | ||
|
||
allow-unused: false | ||
allow-leading-space: false | ||
require-explanation: true | ||
require-specific: true | ||
|
||
revive: | ||
min-confidence: 0 | ||
|
||
unparam: | ||
check-exported: true | ||
|
||
whitespace: | ||
multi-if: false | ||
multi-func: false | ||
|
||
wsl: | ||
strict-append: true | ||
allow-assign-and-call: true | ||
allow-multiline-assign: true | ||
allow-cuddle-declarations: false | ||
allow-trailing-comment: false | ||
force-case-trailing-whitespace: 0 | ||
force-err-cuddling: true | ||
allow-separated-leading-comment: false | ||
|
||
linters: | ||
enable: | ||
- asciicheck | ||
- bodyclose | ||
- deadcode | ||
- dogsled | ||
- dupl | ||
- errcheck | ||
- errorlint | ||
- gci | ||
- goconst | ||
- gocritic | ||
- godot | ||
- godox | ||
- goerr113 | ||
- gofmt | ||
- gofumpt | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- lll | ||
- nakedret | ||
- nestif | ||
- nlreturn | ||
- noctx | ||
- nolintlint | ||
- revive | ||
- staticcheck | ||
- structcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- varcheck | ||
- whitespace | ||
- wrapcheck | ||
- wsl | ||
|
||
output: | ||
format: tab | ||
print-issued-lines: true | ||
print-linter-name: true | ||
uniq-by-line: true | ||
sort-results: true | ||
|
||
run: | ||
modules-download-mode: readonly | ||
timeout: 1m |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
// Package cmd holds pretty much everything, and needs a good refactoring. | ||
package cmd |
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
This file was deleted.
Oops, something went wrong.