refactor: Take default versions from yaml declarations #121
1 new security issue (0 max.).
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 9
- Added 32
Coverage increased per file
===========================
+ config/config.go 7.895
+ cmd/init.go 3.179
Coverage decreased per file
===========================
- tools/getTools.go -6.41
- plugins/runtime-utils.go -5.207
- config/runtimes-installer.go -16.788
- plugins/tool-utils.go -7.273
- utils/logger/logger.go -7.477
Complexity increasing per file
==============================
- plugins/plugin_manager.go 25
- plugins/shared.go 14
Clones added
============
- cmd/init.go 2
- plugins/plugin_manager.go 2
Clones removed
==============
+ plugins/runtime-utils.go -3
+ plugins/tool-utils.go -1
See the complete overview on Codacy
Annotations
Check warning on line 8 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L8
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 11 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L11
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 13 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L13
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 25 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L25
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 90 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L90
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 91 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L91
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 92 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L92
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 98 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L98
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 103 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L103
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 105 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L105
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 108 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L108
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 117 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L117
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 122 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L122
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 125 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L125
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 127 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L127
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 139 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L139
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 149 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L149
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 157 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L157
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 158 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L158
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 161 in integration-tests/run.ps1
codacy-production / Codacy Static Code Analysis
integration-tests/run.ps1#L161
File 'run.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Check warning on line 76 in plugins/runtime-utils.go
codacy-production / Codacy Static Code Analysis
plugins/runtime-utils.go#L76
`path.Join(...)` always joins using a forward slash.
Check warning on line 78 in plugins/runtime-utils.go
codacy-production / Codacy Static Code Analysis
plugins/runtime-utils.go#L78
`path.Join(...)` always joins using a forward slash.
Check warning on line 6 in plugins/shared.go
codacy-production / Codacy Static Code Analysis
plugins/shared.go#L6
When working with web applications that involve rendering user-generated content, it's important to properly escape any HTML content to prevent Cross-Site Scripting (XSS) attacks.
Check warning on line 120 in plugins/shared.go
codacy-production / Codacy Static Code Analysis
plugins/shared.go#L120
Method GetDownloadURL has 7 parameters (limit is 5)
Check warning on line 204 in plugins/tool-utils.go
codacy-production / Codacy Static Code Analysis
plugins/tool-utils.go#L204
`path.Join(...)` always joins using a forward slash.