Skip to content

Commit 8e78d78

Browse files
Vitali CernomschiAlexanderC
Vitali Cernomschi
authored andcommitted
Update coverage comparator (#259)
1 parent 62b1e2e commit 8e78d78

13 files changed

+425
-120
lines changed

.codeclimate.yml

+21-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
engines:
32
csslint:
43
enabled: true
@@ -9,31 +8,31 @@ engines:
98
javascript:
109
mass_threshold: 650
1110
exclude_paths:
12-
- "**/tests"
11+
- '**/tests'
1312
eslint:
1413
enabled: true
15-
channel: "eslint-2"
14+
channel: eslint-2
1615
fixme:
1716
enabled: true
1817
ratings:
1918
paths:
20-
- "**.css"
21-
- "**.inc"
22-
- "**.js"
23-
- "**.jsx"
24-
- "**.es6"
25-
- "**.module"
19+
- '**.css'
20+
- '**.inc'
21+
- '**.js'
22+
- '**.jsx'
23+
- '**.es6'
24+
- '**.module'
2625
exclude_paths:
27-
- "**/bin/"
28-
- "**/test/"
29-
- "**/tests/"
30-
- "**/tmp/"
31-
- "**/vendor/"
32-
- "**/coverage"
33-
- "**/dist"
34-
- "**/node_modules"
35-
- "**/packages"
36-
- ".idea/"
37-
- "**.spec.js"
38-
- "**.min.js"
39-
- "**.min.css"
26+
- '**/bin/'
27+
- '**/test/'
28+
- '**/tests/'
29+
- '**/tmp/'
30+
- '**/vendor/'
31+
- '**/coverage'
32+
- '**/dist'
33+
- '**/node_modules'
34+
- '**/packages'
35+
- '**/.idea'
36+
- '**.spec.js'
37+
- '**.min.js'
38+
- '**.min.css'

.eslintignore

+35-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
bin/**/*
22
test/**/*
3-
**/test
3+
**/tests
44
**/vendor
55
tmp/**/*
66
**.spec.js
77
**.min.js
88
**.min.css
99

10+
# third party css files
11+
**/font-awesome.css
12+
**/materialdesignicons.css
13+
1014
# third party js file
1115
*.min.js
1216

17+
# DeepFramework
18+
DeepFramework.js
19+
deep-framework.js
1320

1421
## Directory-based project format:
1522
.idea/
@@ -37,4 +44,30 @@ npm-debug.log
3744

3845
# Compiled libraries
3946
**/compile/
40-
**/lib.compiled/
47+
**/lib.compiled/
48+
49+
# App specific files
50+
.parameters.json
51+
deeploy.json*
52+
deeploy.*.json
53+
54+
*_config.json*
55+
*.provisioning.json*
56+
57+
# Backend files
58+
**/backend/src/**/*.js
59+
**/backend/src/**/*.zip
60+
**/backend/src/**/*.sfv
61+
**/backend/src/**/_config.json
62+
63+
# Frontend dependencies
64+
**/frontend/_build/
65+
66+
# Jspm config file
67+
config.core.js
68+
config.system.js
69+
config.test.js
70+
71+
# Custom ignore files
72+
**/test
73+

.eslintrc

+54-45
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
eslintConfig:
22
root: true
3-
43
ecmaFeatures:
54
modules: true
65
jsx: true
7-
arrowFunctions: true,
8-
blockBindings: true,
9-
classes: true,
10-
defaultParams: true,
11-
6+
arrowFunctions: true
7+
blockBindings: true
8+
classes: true
9+
defaultParams: true
1210
env:
1311
amd: true
1412
browser: true
@@ -17,14 +15,12 @@ env:
1715
node: true
1816
jasmine: true
1917
mocha: true
20-
2118
parserOptions:
2219
sourceType: module
23-
24-
# http://eslint.org/docs/rules/
2520
rules:
26-
# Possible Errors
27-
comma-dangle: [0, never]
21+
comma-dangle:
22+
- 0
23+
- never
2824
no-cond-assign: 2
2925
no-console: 0
3026
no-constant-condition: 2
@@ -40,7 +36,9 @@ rules:
4036
no-extra-parens: 0
4137
no-extra-semi: 2
4238
no-func-assign: 2
43-
no-inner-declarations: [2, functions]
39+
no-inner-declarations:
40+
- 2
41+
- functions
4442
no-invalid-regexp: 2
4543
no-irregular-whitespace: 2
4644
no-negated-in-lhs: 2
@@ -50,14 +48,17 @@ rules:
5048
no-unexpected-multiline: 2
5149
no-unreachable: 2
5250
use-isnan: 2
53-
valid-jsdoc: [2, {requireParamDescription: false, requireReturn: false, requireReturnDescription: false}]
51+
valid-jsdoc:
52+
- 2
53+
- requireParamDescription: false
54+
requireReturn: false
55+
requireReturnDescription: false
5456
valid-typeof: 2
55-
56-
# Best Practices
5757
accessor-pairs: 2
5858
block-scoped-var: 0
59-
# no even warning due to codeclimate shows it as error
60-
complexity: [0, 18]
59+
complexity:
60+
- 0
61+
- 18
6162
consistent-return: 0
6263
curly: 2
6364
default-case: 0
@@ -67,7 +68,6 @@ rules:
6768
guard-for-in: 2
6869
no-alert: 2
6970
no-caller: 2
70-
# no even warning due to codeclimate shows it as error
7171
no-case-declarations: 0
7272
no-div-regex: 2
7373
no-else-return: 0
@@ -85,7 +85,6 @@ rules:
8585
no-iterator: 2
8686
no-labels: 0
8787
no-lone-blocks: 2
88-
# no even warning due to codeclimate shows it as error
8988
no-loop-func: 0
9089
no-magic-number: 0
9190
no-multi-spaces: 0
@@ -103,25 +102,22 @@ rules:
103102
no-self-compare: 2
104103
no-sequences: 0
105104
no-throw-literal: 0
106-
# no even warning due to codeclimate shows it as error
107105
no-unused-expressions: 0
108106
no-useless-call: 2
109107
no-useless-concat: 2
110108
no-void: 2
111109
no-warning-comments: 0
112110
no-with: 2
113-
# no even warning due to codeclimate shows it as error
114-
radix: [0, "always"]
111+
radix:
112+
- 0
113+
- always
115114
vars-on-top: 0
116115
wrap-iife: 2
117116
yoda: 0
118-
119-
# Strict
120-
strict: [0, global]
121-
122-
# Variables
117+
strict:
118+
- 0
119+
- global
123120
init-declarations: 0
124-
# no even warning due to codeclimate shows it as error
125121
no-catch-shadow: 0
126122
no-delete-var: 2
127123
no-label-var: 2
@@ -130,11 +126,10 @@ rules:
130126
no-undef-init: 2
131127
no-undef: 2
132128
no-undefined: 2
133-
no-unused-vars: [2, {args: "none"}]
129+
no-unused-vars:
130+
- 2
131+
- args: none
134132
no-use-before-define: 2
135-
136-
# Node.js and CommonJS
137-
# no even warning due to codeclimate shows it as error
138133
callback-return: 0
139134
global-require: 0
140135
handle-callback-err: 2
@@ -144,12 +139,12 @@ rules:
144139
no-process-exit: 0
145140
no-restricted-modules: 0
146141
no-sync: 0
147-
148-
# Stylistic Issues
149142
array-bracket-spacing: 0
150143
block-spacing: 0
151144
brace-style: 0
152-
camelcase: [0, {properties: "never"}]
145+
camelcase:
146+
- 0
147+
- properties: never
153148
comma-spacing: 0
154149
comma-style: 0
155150
computed-property-spacing: 0
@@ -159,17 +154,30 @@ rules:
159154
func-style: 0
160155
id-length: 0
161156
id-match: 0
162-
indent: [2, 2, { SwitchCase: 1 }]
157+
indent:
158+
- 2
159+
- 2
160+
- SwitchCase: 1
163161
jsx-quotes: 0
164162
key-spacing: 0
165163
linebreak-style: 0
166164
lines-around-comment: 0
167-
max-depth: [2, 7]
168-
max-len: [2, 120, 2, {ignoreComments: true}]
165+
max-depth:
166+
- 2
167+
- 7
168+
max-len:
169+
- 2
170+
- 120
171+
- 2
172+
- ignoreComments: true
169173
max-nested-callbacks: 0
170174
max-params: 0
171-
max-statements: [2, 50]
172-
new-cap: [2, {capIsNew: false}]
175+
max-statements:
176+
- 2
177+
- 50
178+
new-cap:
179+
- 2
180+
- capIsNew: false
173181
new-parens: 0
174182
newline-after-var: 0
175183
no-array-constructor: 0
@@ -195,7 +203,10 @@ rules:
195203
operator-linebreak: 0
196204
padded-blocks: 0
197205
quote-props: 0
198-
quotes: [2, single, {allowTemplateLiterals: true}]
206+
quotes:
207+
- 2
208+
- single
209+
- allowTemplateLiterals: true
199210
require-jsdoc: 2
200211
semi-spacing: 0
201212
semi: 0
@@ -210,8 +221,6 @@ rules:
210221
space-unary-ops: 0
211222
spaced-comment: 0
212223
wrap-regex: 0
213-
214-
# ECMAScript 6
215224
arrow-body-style: 0
216225
arrow-parens: 0
217226
arrow-spacing: 0
@@ -230,7 +239,7 @@ rules:
230239
prefer-spread: 0
231240
prefer-template: 0
232241
require-yield: 0
233-
234242
globals:
235243
DeepFramework: true
236-
angular: true
244+
Stripe: true
245+
angular: true

0 commit comments

Comments
 (0)