Skip to content

remove commented code

a0e86f4
Select commit
Loading
Failed to load commit list.
Merged

fix: fix Lizard analysis run and configuration creation CF-1999 #178

remove commented code
a0e86f4
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Oct 20, 2025 in 0s

2 new issues (1 max.) of at least medium severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 11
- Added 17
           

Complexity increasing per file
==============================
- cmd/configsetup/config_creators.go  9
- cmd/configsetup/tool_creators.go  38
- cmd/configsetup/default_config.go  47
- cmd/configsetup/codacy_yaml.go  36
- cmd/configsetup/repository_config.go  30
         

Complexity decreasing per file
==============================
+ tools/lizard/lizardRunner.go  -4
+ cmd/configsetup/setup.go  -162
         

Clones added
============
- tools/lizard/lizardRunner.go  1
         

See the complete overview on Codacy

Annotations

Check notice on line 1 in cmd/configsetup/codacy_yaml.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/codacy_yaml.go#L1

should have a package comment

Check notice on line 20 in cmd/configsetup/codacy_yaml.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/codacy_yaml.go#L20

exported function ConfigFileTemplate should have comment or be unexported

Check notice on line 64 in cmd/configsetup/codacy_yaml.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/codacy_yaml.go#L64

func parameter toolUuid should be toolUUID

Check notice on line 1 in cmd/configsetup/config_creators.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/config_creators.go#L1

should have a package comment

Check notice on line 15 in cmd/configsetup/config_creators.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/config_creators.go#L15

exported function CreateLanguagesConfigFileLocal should have comment or be unexported

Check notice on line 36 in cmd/configsetup/config_creators.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/config_creators.go#L36

exported function CreateGitIgnoreFile should have comment or be unexported

Check notice on line 42 in cmd/configsetup/config_creators.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/config_creators.go#L42

exported function CreateConfigurationFiles should have comment or be unexported

Check notice on line 62 in cmd/configsetup/config_creators.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/config_creators.go#L62

if block ends with a return statement, so drop this else and outdent its block

Check notice on line 1 in cmd/configsetup/default_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/default_config.go#L1

should have a package comment

Check warning on line 16 in cmd/configsetup/default_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/default_config.go#L16

Method KeepToolsWithLatestVersion has a cyclomatic complexity of 9 (limit is 7)

Check notice on line 98 in cmd/configsetup/default_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/default_config.go#L98

if block ends with a return statement, so drop this else and outdent its block

Check warning on line 140 in cmd/configsetup/default_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/default_config.go#L140

Method selectCorrectToolUUID has a cyclomatic complexity of 9 (limit is 7)

Check notice on line 1 in cmd/configsetup/repository_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/repository_config.go#L1

should have a package comment

Check notice on line 16 in cmd/configsetup/repository_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/repository_config.go#L16

exported function BuildRepositoryConfigurationFiles should have comment or be unexported

Check notice on line 92 in cmd/configsetup/repository_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/repository_config.go#L92

var toolUuid should be toolUUID

Check notice on line 108 in cmd/configsetup/repository_config.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/repository_config.go#L108

func getToolUuidByName should be getToolUUIDByName

Check notice on line 1 in cmd/configsetup/tool_creators.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/configsetup/tool_creators.go#L1

should have a package comment