fix: sarif output #161
fix: sarif output #161
Your pull request is up to standards!
Here is an overview of what got changed by this pull request:
Issues
======
- Added 19
Coverage increased per file
===========================
+ cmd/analyze.go 0.42
Complexity increasing per file
==============================
- example_1.ts 3
See the complete overview on Codacy
Annotations
Check failure on line 1 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L1
Resolve error: package.json not found in path
at findRoot (/node_modules/find-root/index.js:19:11)
at findRoot (/node_modules/find-root/index.js:28:10)
at findRoot (/node_modules/find-root/index.js:28:10)
at findRoot (/node_modules/find-root/index.js:28:10)
at findRoot (/node_modules/find-root/index.js:28:10)
at exports.resolve (/node_modules/eslint-import-resolver-webpack/index.js:76:20)
at withResolver (/node_modules/eslint-module-utils/resolve.js:121:23)
at fullResolve (/n
Check failure on line 6 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L6
Can't resolve 'mysql' in '/src'
Check failure on line 17 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L17
'url.parse' was deprecated since v11.0.0. Use 'url.URL' constructor instead.
Check warning on line 17 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L17
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.
Check warning on line 27 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L27
Unexpected any. Specify a different type.
Check failure on line 28 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L28
'password' is assigned a value but never used.
Check failure on line 28 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L28
'password' is assigned a value but never used.
Check failure on line 28 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L28
'password' is assigned a value but never used.
Check warning on line 37 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L37
Detected that function argument `req` has entered the fs module.
Check warning on line 37 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L37
Found readFile from package "fs" with non literal argument at index 0
Check warning on line 37 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L37
Found readFile from package "fs" with non literal argument at index 0
Check warning on line 45 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L45
Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content.
Check failure on line 45 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L45
The application was found calling the `eval` function OR Function() constructor OR setTimeout() OR setInterval() methods.
Check warning on line 45 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L45
detect eval() with non Literal argument
Check warning on line 45 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L45
detect eval() with non Literal argument
Check warning on line 45 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L45
eval with argument of type TSAsExpression
Check warning on line 45 in example_1.ts
codacy-production / Codacy Static Code Analysis
example_1.ts#L45
eval with argument of type TSAsExpression
Check warning on line 5 in vul.ts
codacy-production / Codacy Static Code Analysis
vul.ts#L5
Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content.
Check failure on line 5 in vul.ts
codacy-production / Codacy Static Code Analysis
vul.ts#L5
The application was found calling the `eval` function OR Function() constructor OR setTimeout() OR setInterval() methods.