feat(sonarjs): Added rules
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		
							
								
								
									
										50
									
								
								ROADMAP.md
									
									
									
									
									
								
							
							
						
						
									
										50
									
								
								ROADMAP.md
									
									
									
									
									
								
							@@ -353,31 +353,31 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## SonarJS
 | 
					## SonarJS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- [ ] "cognitive-complexity"
 | 
					- [X] "cognitive-complexity"
 | 
				
			||||||
- [ ] "max-switch-cases"
 | 
					- [X] "max-switch-cases"
 | 
				
			||||||
- [ ] "no-all-duplicated-branches"
 | 
					- [X] "no-all-duplicated-branches"
 | 
				
			||||||
- [ ] "no-collapsible-if"
 | 
					- [X] "no-collapsible-if"
 | 
				
			||||||
- [ ] "no-collection-size-mischeck"
 | 
					- [X] "no-collection-size-mischeck"
 | 
				
			||||||
- [ ] "no-duplicate-string"
 | 
					- [X] "no-duplicate-string"
 | 
				
			||||||
- [ ] "no-duplicated-branches"
 | 
					- [X] "no-duplicated-branches"
 | 
				
			||||||
- [ ] "no-element-overwrite"
 | 
					- [X] "no-element-overwrite"
 | 
				
			||||||
- [ ] "no-extra-arguments"
 | 
					- [X] "no-extra-arguments"
 | 
				
			||||||
- [ ] "no-identical-conditions"
 | 
					- [X] "no-identical-conditions"
 | 
				
			||||||
- [ ] "no-identical-expressions"
 | 
					- [X] "no-identical-expressions"
 | 
				
			||||||
- [ ] "no-identical-functions"
 | 
					- [X] "no-identical-functions"
 | 
				
			||||||
- [ ] "no-inverted-boolean-check"
 | 
					- [X] "no-inverted-boolean-check"
 | 
				
			||||||
- [ ] "no-one-iteration-loop"
 | 
					- [X] "no-one-iteration-loop"
 | 
				
			||||||
- [ ] "no-redundant-boolean"
 | 
					- [X] "no-redundant-boolean"
 | 
				
			||||||
- [ ] "no-redundant-jump"
 | 
					- [X] "no-redundant-jump"
 | 
				
			||||||
- [ ] "no-same-line-conditional"
 | 
					- [X] "no-same-line-conditional"
 | 
				
			||||||
- [ ] "no-small-switch"
 | 
					- [X] "no-small-switch"
 | 
				
			||||||
- [ ] "no-unused-collection"
 | 
					- [X] "no-unused-collection"
 | 
				
			||||||
- [ ] "no-use-of-empty-return-value"
 | 
					- [X] "no-use-of-empty-return-value"
 | 
				
			||||||
- [ ] "no-useless-catch"
 | 
					- [X] "no-useless-catch"
 | 
				
			||||||
- [ ] "prefer-immediate-return"
 | 
					- [X] "prefer-immediate-return"
 | 
				
			||||||
- [ ] "prefer-object-literal"
 | 
					- [X] "prefer-object-literal"
 | 
				
			||||||
- [ ] "prefer-single-boolean-return"
 | 
					- [X] "prefer-single-boolean-return"
 | 
				
			||||||
- [ ] "prefer-while"
 | 
					- [X] "prefer-while"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## TypeScript
 | 
					## TypeScript
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1,80 @@
 | 
				
			|||||||
{}
 | 
					{
 | 
				
			||||||
 | 
					  "sonarjs/cognitive-complexity": [
 | 
				
			||||||
 | 
					    "warn",
 | 
				
			||||||
 | 
					    25
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/max-switch-cases": [
 | 
				
			||||||
 | 
					    "warn",
 | 
				
			||||||
 | 
					    30
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-all-duplicated-branches": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-collapsible-if": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-collection-size-mischeck": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-duplicate-string": [
 | 
				
			||||||
 | 
					    "warn",
 | 
				
			||||||
 | 
					    5
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-duplicated-branches": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-element-overwrite": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-extra-arguments": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-identical-conditions": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-identical-expressions": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-identical-functions": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-inverted-boolean-check": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-one-iteration-loop": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-redundant-boolean": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-redundant-jump": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-same-line-conditional": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-small-switch": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-unused-collection": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-use-of-empty-return-value": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/no-useless-catch": [
 | 
				
			||||||
 | 
					    "warn"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/please-immediate-return": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/prefer-object-literal": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/prefer-single-boolean-return": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "sonarjs/prefer-while": [
 | 
				
			||||||
 | 
					    "error"
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user