Skip to content

Fix: Discover command - #152

Merged
andrzej-janczak merged 15 commits into
mainfrom
fix/discover
Jun 23, 2025
Merged

Fix: Discover command #152
andrzej-janczak merged 15 commits into
mainfrom
fix/discover

fix test

a8a596a
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Codacy Production / Codacy Static Code Analysis succeeded Jun 17, 2025 in 0s

Your pull request is up to standards!

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

Issues
======
+ Solved 4
- Added 10
           

Complexity increasing per file
==============================
- config/detector_test.go  2
- cmd/config_test.go  3
- integration-tests/config-discover/sample.js  1
- integration-tests/config-discover/sample.py  1
- integration-tests/config-discover/Sample.java  1
         

Complexity decreasing per file
==============================
+ cmd/config.go  -3
+ config/detector.go  -6
         

Clones added
============
- config/detector_test.go  35
- cmd/config_test.go  19
         

See the complete overview on Codacy

Annotations

Check failure on line 262 in cmd/config.go

See this annotation in the file changed.

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

cmd/config.go#L262

Method updateCodacyYAMLForTools has 133 lines of code (limit is 100)

Check failure on line 262 in cmd/config.go

See this annotation in the file changed.

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

cmd/config.go#L262

Method updateCodacyYAMLForTools has a cyclomatic complexity of 38 (limit is 10)

Check warning on line 15 in cmd/config_test.go

See this annotation in the file changed.

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

cmd/config_test.go#L15

Method TestUpdateLanguagesConfigForTools has 58 lines of code (limit is 50)

Check warning on line 661 in cmd/configsetup/setup.go

See this annotation in the file changed.

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

cmd/configsetup/setup.go#L661

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

Check warning on line 20 in config/detector_test.go

See this annotation in the file changed.

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

config/detector_test.go#L20

The application was found setting file permissions to overly permissive values.

Check warning on line 48 in config/detector_test.go

See this annotation in the file changed.

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

config/detector_test.go#L48

The application was found setting file permissions to overly permissive values.

Check warning on line 132 in config/detector_test.go

See this annotation in the file changed.

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

config/detector_test.go#L132

The application was found setting file permissions to overly permissive values.

Check warning on line 230 in config/detector_test.go

See this annotation in the file changed.

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

config/detector_test.go#L230

The application was found setting file permissions to overly permissive values.

Check notice on line 4 in integration-tests/config-discover/Sample.java

See this annotation in the file changed.

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

integration-tests/config-discover/Sample.java#L4

All classes, interfaces, enums and annotations must belong to a named package

Check notice on line 14 in integration-tests/config-discover/sample.py

See this annotation in the file changed.

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

integration-tests/config-discover/sample.py#L14

expected 2 blank lines after class or function definition, found 1 (E305)