Skip to content

Commit a7611d3

Browse files
authored
Update cognitive-complexity number (#13)
Change cognitive-complexity back to 25 for most files Make test files and such have complexity of 50
1 parent e14de3f commit a7611d3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

demo/test/snapshots/linting-config.test.js.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,7 @@ Generated by [AVA](https://ava.li).
26882688
],␊
26892689
"sonarjs/cognitive-complexity": [␊
26902690
"warn",␊
2691-
50
2691+
25
26922692
],␊
26932693
"sonarjs/max-switch-cases": [␊
26942694
"warn",␊
Binary file not shown.

es6.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = {
4040
'promise/no-return-in-finally': 'warn',
4141
'promise/valid-params': 'warn',
4242

43-
'sonarjs/cognitive-complexity': ['warn', 50],
43+
'sonarjs/cognitive-complexity': ['warn', 25],
4444
// sonarjs/elseif-without-else
4545
'sonarjs/max-switch-cases': ['warn', 10],
4646
'sonarjs/no-all-duplicated-branches': 'warn',
@@ -100,7 +100,7 @@ module.exports = {
100100
rules: {
101101
'no-alert': 'off',
102102
'no-console': 'off',
103-
'sonarjs/cognitive-complexity': 'off',
103+
'sonarjs/cognitive-complexity': ['warn', 50],
104104
'sonarjs/no-duplicate-string': 'off',
105105
'sonarjs/no-identical-functions': 'off',
106106
'test-selectors/anchor': 'off',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-tree",
3-
"version": "6.0.0-alpha.1",
3+
"version": "6.0.0-alpha.2",
44
"description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)