chore: sonar ignore directories with their own go.mods (#20509)
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
ffc3f76fcb
commit
fda440d563
@ -1,19 +1,8 @@
|
||||
run:
|
||||
tests: true
|
||||
timeout: 15m
|
||||
sort-results: true
|
||||
allow-parallel-runners: true
|
||||
exclude-dir: testutil/testdata
|
||||
skip-files:
|
||||
- server/grpc/gogoreflection/fix_registration.go
|
||||
- "fix_registration.go"
|
||||
- ".*\\.pb\\.go$"
|
||||
- ".*\\.pb\\.gw\\.go$"
|
||||
- ".*\\.pulsar\\.go$"
|
||||
- crypto/keys/secp256k1/internal/*
|
||||
- types/coin_regex.go
|
||||
|
||||
build-tags:
|
||||
build-tags:
|
||||
- e2e
|
||||
- ledger
|
||||
- test_ledger_mock
|
||||
@ -46,6 +35,16 @@ linters:
|
||||
- unused
|
||||
|
||||
issues:
|
||||
exclude-dirs:
|
||||
- testutil/testdata
|
||||
exclude-files:
|
||||
- server/grpc/gogoreflection/fix_registration.go
|
||||
- "fix_registration.go"
|
||||
- ".*\\.pb\\.go$"
|
||||
- ".*\\.pb\\.gw\\.go$"
|
||||
- ".*\\.pulsar\\.go$"
|
||||
- crypto/keys/secp256k1/internal/*
|
||||
- types/coin_regex.go
|
||||
exclude-rules:
|
||||
- text: "Use of weak random number generator"
|
||||
linters:
|
||||
@ -141,11 +140,8 @@ linters-settings:
|
||||
extra-rules: true
|
||||
dogsled:
|
||||
max-blank-identifiers: 6
|
||||
maligned:
|
||||
suggest-new: true
|
||||
nolintlint:
|
||||
allow-unused: false
|
||||
allow-leading-space: true
|
||||
require-explanation: true
|
||||
require-specific: false
|
||||
gosimple:
|
||||
|
||||
@ -5,8 +5,8 @@ sonar.projectName=Cosmos SDK
|
||||
sonar.project.monorepo.enabled=true
|
||||
|
||||
sonar.sources=.
|
||||
sonar.exclusions=**/*_test.go,**/*.pb.go,**/*.pulsar.go,**/*.pb.gw.go
|
||||
sonar.coverage.exclusions=**/*_test.go,**/testutil/**,**/*.pb.go,**/*.pb.gw.go,**/*.pulsar.go,test_helpers.go,docs/**
|
||||
sonar.exclusions=**/*_test.go,**/*.pb.go,**/*.pulsar.go,**/*.pb.gw.go,*.java
|
||||
sonar.coverage.exclusions=**/*_test.go,**/testutil/**,**/*.pb.go,**/*.pb.gw.go,**/*.pulsar.go,docs/**,server/v2/**,store/v2/**,x/tx/**,tools/**,simapp/**,testutil/**,test_helpers.go,tests/**,test_helpers.go,docs/**,store/**,tests/**,orm/**,client/v2/**,runtime/v2/**,core/**,store/**,x/evidence,x/feegrant,x/authz,x/auth,x/bank,api,x/gov,x/staking,x/group,x/nft
|
||||
sonar.tests=.
|
||||
sonar.test.inclusions=**/*_test.go,tests/**,**/testutil/**
|
||||
sonar.go.coverage.reportPaths=coverage.out,*profile.out
|
||||
|
||||
Loading…
Reference in New Issue
Block a user