Skip to content

fix the languages-config file when discovery

d6eda84
Select commit
Loading
Failed to load commit list.
Merged

Fix: Discover command #152

fix the languages-config file when discovery
d6eda84
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis succeeded Jun 18, 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 11
           

Coverage increased per file
===========================
+ utils/logger/logger.go  7.477
+ cmd/config.go  7.018
+ config/detector.go  91.954
         

Coverage decreased per file
===========================
- cmd/configsetup/setup.go  -2.011
         

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 warning on line 235 in cmd/config.go

See this annotation in the file changed.

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

cmd/config.go#L235

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

Check failure on line 277 in cmd/config.go

See this annotation in the file changed.

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

cmd/config.go#L277

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

Check failure on line 277 in cmd/config.go

See this annotation in the file changed.

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

cmd/config.go#L277

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)