feature: analyze with initFlags and fetch config file if non existent - PLUTO-1423 #153
Your pull request is up to standards!
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 5
- Added 11
Complexity increasing per file
==============================
- tools/eslintConfigCreator.go 1
- cmd/analyze_integration_test.go 4
Clones added
============
- cmd/analyze_test.go 6
- cmd/analyze_integration_test.go 5
See the complete overview on Codacy
Annotations
Check warning on line 287 in cmd/analyze.go
codacy-production / Codacy Static Code Analysis
cmd/analyze.go#L287
Method checkIfConfigExistsAndIsNeeded has a cyclomatic complexity of 8 (limit is 7)
Check warning on line 331 in cmd/analyze.go
codacy-production / Codacy Static Code Analysis
cmd/analyze.go#L331
Method runToolByName has 9 parameters (limit is 5)
Check failure on line 331 in cmd/analyze.go
codacy-production / Codacy Static Code Analysis
cmd/analyze.go#L331
Method runToolByName has a cyclomatic complexity of 11 (limit is 10)
Check warning on line 366 in cmd/analyze.go
codacy-production / Codacy Static Code Analysis
cmd/analyze.go#L366
Method runTool has 55 lines of code (limit is 50)
Check warning on line 366 in cmd/analyze.go
codacy-production / Codacy Static Code Analysis
cmd/analyze.go#L366
Method runTool has 7 parameters (limit is 5)
Check failure on line 366 in cmd/analyze.go
codacy-production / Codacy Static Code Analysis
cmd/analyze.go#L366
Method runTool has a cyclomatic complexity of 15 (limit is 10)
Check warning on line 273 in cmd/analyze_test.go
codacy-production / Codacy Static Code Analysis
cmd/analyze_test.go#L273
Method TestCheckIfConfigExistsAndIsNeeded has 62 lines of code (limit is 50)
Check warning on line 332 in cmd/analyze_test.go
codacy-production / Codacy Static Code Analysis
cmd/analyze_test.go#L332
Method has a cyclomatic complexity of 9 (limit is 7)
Check notice on line 480 in cmd/configsetup/setup.go
codacy-production / Codacy Static Code Analysis
cmd/configsetup/setup.go#L480
var toolUuid should be toolUUID
Check notice on line 496 in cmd/configsetup/setup.go
codacy-production / Codacy Static Code Analysis
cmd/configsetup/setup.go#L496
func getToolUuidByName should be getToolUUIDByName
Check notice on line 1 in constants/tool_configs.go
codacy-production / Codacy Static Code Analysis
constants/tool_configs.go#L1
should have a package comment