From 41a856e2496542f00146c064d43bb1fc4bc0b1b5 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 10 Aug 2022 21:12:45 +0000 Subject: [PATCH 1/5] fix(ci): add `cgo_enabled = true` to deepsource --- .deepsource.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.deepsource.toml b/.deepsource.toml index 9053d32f39..4385051653 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -19,6 +19,7 @@ exclude_patterns = [ [[analyzers]] name = "go" enabled = true +cgo_enabled = true [analyzers.meta] import_paths = ["github.com/ChainSafe/gossamer"] From c126f1467b58d58e134e96313ac7db53252cd1ec Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 10 Aug 2022 21:16:34 +0000 Subject: [PATCH 2/5] chore(deepsource): `import_paths` -> `import_root` --- .deepsource.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.deepsource.toml b/.deepsource.toml index 4385051653..c8eb7789ff 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -22,4 +22,4 @@ enabled = true cgo_enabled = true [analyzers.meta] -import_paths = ["github.com/ChainSafe/gossamer"] +import_root = "github.com/ChainSafe/gossamer" From 41204491115b87e69a1f90f78e264bdf61e98536 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 10 Aug 2022 21:17:49 +0000 Subject: [PATCH 3/5] Add link to deepsource documentation --- .deepsource.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.deepsource.toml b/.deepsource.toml index c8eb7789ff..cc918ef064 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,3 +1,4 @@ +# https://deepsource.io/docs/analyzer/go/ version = 1 test_patterns = ["**/*_test.go"] From 29e1d39c490d857d94a73020b9a5ac5fa807a07f Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 10 Aug 2022 21:20:42 +0000 Subject: [PATCH 4/5] Update exclude patterns in .deepsource.toml - Remove `scripts/**/*` - Only ignore json files in `chain/` - Do not ignore `dot/config` - Ignore all `test_data` directories - Do not ignore test files --- .deepsource.toml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index cc918ef064..db9b835f1b 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -6,13 +6,9 @@ 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_*" ] From c1e7e9b62d5a107e9ed7bb8511563f59438c1099 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 10 Aug 2022 21:34:18 +0000 Subject: [PATCH 5/5] Auto-format toml config file --- .deepsource.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.deepsource.toml b/.deepsource.toml index db9b835f1b..f5a309ccb1 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -10,7 +10,7 @@ exclude_patterns = [ "chain/**/*.json", "**/test_data", "**/mocks/*", - "**/mock_*" + "**/mock_*", ] [[analyzers]]