-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add custom codeclimate config (#1292)
* add custom codeclimate config * add exclude_patterns * tweaks * tweaks * remove checks without overwrite * tweak similar-code & identical-code mass threshold * threshold tinkering
- Loading branch information
1 parent
29e6636
commit 065f5bc
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# https://docs.codeclimate.com/docs/default-analysis-configuration | ||
# https://docs.codeclimate.com/docs/advanced-configuration | ||
|
||
version: '2' | ||
checks: | ||
argument-count: | ||
config: | ||
threshold: 6 | ||
complex-logic: | ||
config: | ||
threshold: 10 | ||
file-lines: | ||
config: | ||
threshold: 500 | ||
method-complexity: | ||
config: | ||
threshold: 10 | ||
method-lines: | ||
config: | ||
threshold: 250 | ||
# https://docs.codeclimate.com/docs/default-analysis-configuration#per-language-mass-threshold-defaults | ||
similar-code: | ||
config: | ||
threshold: 50 | ||
identical-code: | ||
config: | ||
threshold: 50 | ||
|
||
exclude_patterns: | ||
- 'config/' | ||
- 'db/' | ||
- 'dist/' | ||
- 'features/' | ||
- '**/node_modules/' | ||
- 'script/' | ||
- '**/spec/' | ||
- '**/test/' | ||
- '**/tests/' | ||
- 'Tests/' | ||
- '**/vendor/' | ||
- '**/*_test.go' | ||
- '**/*.d.ts' | ||
- '**/*.stories.tsx' | ||
- '**/*.test.tsx' |