Skip to content

Commit

Permalink
[CORE] linter fixes (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
d0g0x01 authored Oct 12, 2023
1 parent 508662e commit 9df55b7
Show file tree
Hide file tree
Showing 107 changed files with 1,896 additions and 757 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ test/system/generator/generator
scripts/collectors/

# java
deployments/kubehound/kubegraph/dsl/kubehound/target
deployments/kubehound/kubegraph/dsl/kubehound/target

# personal settings
.vscode/settings.json
18 changes: 8 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
run:
# Default: 1m
timeout: 5m
# For now, don't block the test, only comment on the findings!
issues-exit-code: 0

linters:
disable-all: true
Expand All @@ -15,7 +13,7 @@ linters:
- bodyclose
- containedctx
- contextcheck
- cyclop
# - cyclop
- decorder
- dogsled
- dupword
Expand All @@ -33,14 +31,14 @@ linters:
# - gci
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
# - gochecknoglobals
- gocognit
- goconst
- gocritic
- gocyclo
# - goerr113 # Would probably be best. But lets ignore for now
- gofmt
- gofumpt
# - gofumpt
- goheader
- goimports
- gomnd
Expand All @@ -54,7 +52,7 @@ linters:
- importas
- ineffassign
- interfacebloat
- ireturn
# - ireturn
- loggercheck
- maintidx
- makezero
Expand All @@ -74,14 +72,14 @@ linters:
- predeclared
- promlinter
- reassign
- revive
# - revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
# - stylecheck TODO reeanble
- tenv
- testableexamples
- testpackage
# - testpackage
- thelper
- tparallel
- typecheck
Expand All @@ -90,5 +88,5 @@ linters:
- unused
- usestdlibvars
- wastedassign
- whitespace
# - whitespace
# - wrapcheck #TODO: add it back later potentially?
Loading

0 comments on commit 9df55b7

Please sign in to comment.