Skip to content

Commit

Permalink
fix(ci): deepsource toml configuration (#2744)
Browse files Browse the repository at this point in the history
- Fix: add `cgo_enabled = true`
- Rename `import_paths` to `import_root`
- Update exclude patterns
  - Remove `scripts/**/*`
  - Only ignore json files in `chain/`
  - Do not ignore `dot/config`
  - Ignore all `test_data` directories
  - Do not ignore test files
- Add link to deepsource documentation
  • Loading branch information
qdm12 committed Aug 12, 2022
1 parent e274980 commit 86a70de
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# https://deepsource.io/docs/analyzer/go/
version = 1

test_patterns = ["**/*_test.go"]

exclude_patterns = [
"docs/**/*",
"tests/**/*",
"scripts/**/*",
"cmd/gossamer/test_inputs/*",
"chain/**/*",
"dot/config/**/*",
"dot/rpc/modules/test_data",
"lib/runtime/test_data",
"**/*_test.go",
"chain/**/*.json",
"**/test_data",
"**/mocks/*",
"**/mock_*"
"**/mock_*",
]

[[analyzers]]
name = "go"
enabled = true
cgo_enabled = true

[analyzers.meta]
import_paths = ["github.com/ChainSafe/gossamer"]
import_root = "github.com/ChainSafe/gossamer"

0 comments on commit 86a70de

Please sign in to comment.