From 86a70de1df9947bfb5074fe62ee75202ecd43863 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 12 Aug 2022 09:15:50 -0400 Subject: [PATCH] fix(ci): deepsource toml configuration (#2744) - 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 --- .deepsource.toml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 9053d32f39..f5a309ccb1 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,3 +1,4 @@ +# https://deepsource.io/docs/analyzer/go/ version = 1 test_patterns = ["**/*_test.go"] @@ -5,20 +6,17 @@ 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"