forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
98 lines (98 loc) · 1.84 KB
/
.codeclimate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
version: "2"
exclude_patterns:
- ".git/"
- "**.gif"
- "**.html"
- "**.json"
- "**.png"
- "**.svg"
- "**.xml"
- "**.yaml"
- "**.yml"
- "app/assets/javascripts/dhtmlx*/"
- "config/dictionary_strings.rb"
- "config/model_attributes.rb"
- "config/yaml_strings.rb"
- "db/schema.rb"
- "db/schema.yml"
- "db/fixtures/**/*.yml"
- "db/migrate/20130923182042_collapsed_initial_migration.rb"
- "locale/"
- "public/javascripts/timeline/"
- "spec/"
- "test/"
- "tmp/"
- "vendor/assets/"
checks:
file-lines:
config:
threshold: 400
plugins:
brakeman:
# very slow :sad_panda:
enabled: false
bundler-audit:
# requires Gemfile.lock
enabled: false
csslint:
enabled: false
duplication:
enabled: true
exclude_patterns:
- "app/decorators/"
- "app/javascript/**/*.spec.js"
- "app/javascript/**/*.schema.js"
config:
concurrency: 1
languages:
ruby:
mass_threshold: 30
javascript:
eslint:
enabled: true
channel: "eslint-5"
checks:
key-spacing:
enabled: false
no-undefined:
enabled: false
quotes:
enabled: false
config:
ignore_warnings: true
extensions:
- .js
- .jsx
fixme:
# let's enable later
enabled: false
markdownlint:
# let's enable later
enabled: false
rubocop:
enabled: true
config: '.rubocop_cc.yml'
stylelint:
enabled: true
prepare:
fetch:
- url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml"
path: ".rubocop_base.yml"
- url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml"
path: ".rubocop_cc_base.yml"
ratings:
paths:
- Gemfile.lock
- "**.erb"
- "**.haml"
- "**.rake"
- "**.rb"
- "**.rhtml"
- "**.slim"
- "**.css"
- "**.scss"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"