mirror of
https://github.com/ivuorinen/gibidify.git
synced 2026-01-26 03:24:05 +00:00
feat: update go to 1.25, add permissions and envs (#49)
* chore(ci): update go to 1.25, add permissions and envs * fix(ci): update pr-lint.yml * chore: update go, fix linting * fix: tests and linting * fix(lint): lint fixes, renovate should now pass * fix: updates, security upgrades * chore: workflow updates, lint * fix: more lint, checkmake, and other fixes * fix: more lint, convert scripts to POSIX compliant * fix: simplify codeql workflow * tests: increase test coverage, fix found issues * fix(lint): editorconfig checking, add to linters * fix(lint): shellcheck, add to linters * fix(lint): apply cr comment suggestions * fix(ci): remove step-security/harden-runner * fix(lint): remove duplication, apply cr fixes * fix(ci): tests in CI/CD pipeline * chore(lint): deduplication of strings * fix(lint): apply cr comment suggestions * fix(ci): actionlint * fix(lint): apply cr comment suggestions * chore: lint, add deps management
This commit is contained in:
58
revive.toml
Normal file
58
revive.toml
Normal file
@@ -0,0 +1,58 @@
|
||||
# revive configuration for gibidify
|
||||
# See https://revive.run/ for more information
|
||||
|
||||
# Global settings
|
||||
ignoreGeneratedHeader = false
|
||||
severity = "warning"
|
||||
confidence = 0.8
|
||||
errorCode = 1
|
||||
warningCode = 0
|
||||
|
||||
# Enable all rules by default, then selectively disable or configure
|
||||
[rule.blank-imports]
|
||||
[rule.context-as-argument]
|
||||
[rule.context-keys-type]
|
||||
[rule.dot-imports]
|
||||
[rule.error-return]
|
||||
[rule.error-strings]
|
||||
[rule.error-naming]
|
||||
[rule.exported]
|
||||
[rule.if-return]
|
||||
[rule.increment-decrement]
|
||||
[rule.var-naming]
|
||||
[rule.var-declaration]
|
||||
[rule.package-comments]
|
||||
[rule.range]
|
||||
[rule.receiver-naming]
|
||||
[rule.time-naming]
|
||||
[rule.unexported-return]
|
||||
[rule.indent-error-flow]
|
||||
[rule.errorf]
|
||||
[rule.empty-block]
|
||||
[rule.superfluous-else]
|
||||
[rule.unused-parameter]
|
||||
[rule.unreachable-code]
|
||||
[rule.redefines-builtin-id]
|
||||
|
||||
# Configure specific rules
|
||||
[rule.line-length-limit]
|
||||
arguments = [120]
|
||||
Exclude = ["**/*_test.go"]
|
||||
|
||||
[rule.function-length]
|
||||
arguments = [50, 100]
|
||||
Exclude = ["**/*_test.go"]
|
||||
|
||||
[rule.max-public-structs]
|
||||
arguments = [10]
|
||||
|
||||
[rule.cognitive-complexity]
|
||||
arguments = [15]
|
||||
Exclude = ["**/*_test.go"]
|
||||
|
||||
[rule.cyclomatic]
|
||||
arguments = [15]
|
||||
Exclude = ["**/*_test.go"]
|
||||
|
||||
[rule.argument-limit]
|
||||
arguments = [5]
|
||||
Reference in New Issue
Block a user