Skip to content

Commit 6a52c69

Browse files
authored
Modify .codeclimate.yml for improved analysis
Updated Code Climate configuration for Go with enhanced settings for engines and ratings.
1 parent 90f89e3 commit 6a52c69

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.codeclimate.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1+
version: 2
12
engines:
23
golint:
34
enabled: true
5+
config:
6+
min_confidence: 0.8 # Ignore very low-confidence style warnings
7+
48
gofmt:
59
enabled: true
10+
config:
11+
simplify: true # Automatically check for code simplifications
12+
613
govet:
714
enabled: true
15+
config:
16+
check_shadowing: true # Detect variable shadowing for cleaner logic
17+
818
duplication:
919
enabled: true
1020
config:
1121
languages:
12-
- go
22+
go:
23+
threshold: 40 # Minimum token threshold before flagging duplication
1324

1425
ratings:
1526
paths:
16-
- "**.go"
27+
- "**/*.go"
28+
29+
exclude_paths:
30+
- "vendor/**" # Ignore dependencies
31+
- "testdata/**" # Ignore test data
32+
- "mocks/**" # Ignore generated mocks

0 commit comments

Comments
 (0)