Browse Source

Maintenance: updated codeclimate config to v2 and added exclude_patterns.

Martin Gruner 3 years ago
parent
commit
dba3689711
1 changed files with 15 additions and 21 deletions
  1. 15 21
      .codeclimate.yml

+ 15 - 21
.codeclimate.yml

@@ -1,5 +1,6 @@
 ---
-engines:
+version: "2"
+plugins:
   brakeman:
     enabled: true
   bundler-audit:
@@ -23,23 +24,16 @@ engines:
   rubocop:
     enabled: true
     channel: rubocop-1-10
-ratings:
-  paths:
-  - Gemfile.lock
-  - "**.erb"
-  - "**.haml"
-  - "**.rb"
-  - "**.rhtml"
-  - "**.slim"
-  - "**.css"
-  - "**.coffee"
-  - "**.inc"
-  - "**.js"
-  - "**.jsx"
-  - "**.module"
-exclude_paths:
-- config/
-- db/
-- script/
-- test/
-- vendor/
+exclude_patterns:
+  # Bundled thirdparty asset files
+  - "app/assets/javascripts/app/lib/**/*.js"
+  - "config/"
+  - "db/"
+  - "**/node_modules/"
+  - "script/"
+  - "public/assets/"
+  - "**/spec/"
+  - "**/test/"
+  - "**/tests/"
+  - "**/vendor/"
+  - "**/*.d.ts"