You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ This is a POC for what could be a new CLI for us. The idea is to rely on the nat
4
4
5
5
## Overview
6
6
7
-
The `codacy-cli-v2` is a command-line tool for Codacy that supports analyzing code using ESLint and uploading the results in SARIF format to Codacy. It provides two main commands: `analyze` and `upload`.
7
+
The `codacy-cli-v2` is a command-line tool for Codacy that supports analyzing code using ESLint, Trivy, and uploading the results in SARIF format to Codacy. It provides two main commands: `analyze` and `upload`.
8
8
9
9
### Commands
10
10
11
-
-**`analyze` Command**: Runs ESLint analysis on the codebase.
11
+
-**`analyze` Command**: Runs analysis tools on the codebase.
12
12
-`--output, -o`: Output file for the results.
13
-
-`--tool, -t`: Specifies the tool to run analysis with (e.g., ESLint).
13
+
-`--tool, -t`: Specifies the tool to run analysis with (e.g., ESLint, Trivy).
14
14
-`--format`: Output format (use 'sarif' for SARIF format to terminal).
15
-
-`--fix, -f`: Automatically fixes issues when possible.
15
+
-`--fix, -f`: Automatically fixes issues when possible (only applicable to certain tools).
16
16
-`--new-pr`: Creates a new GitHub PR with fixed issues.
17
17
18
18
-**`upload` Command With Project Token**: Uploads a SARIF file containing analysis results to Codacy.
@@ -30,14 +30,15 @@ The `codacy-cli-v2` is a command-line tool for Codacy that supports analyzing co
30
30
31
31
### Important Concepts
32
32
33
-
-**`.codacy/codacy.yaml`**: Configuration file to specify `node` and `eslint` versions for the CLI.
33
+
-**`.codacy/codacy.yaml`**: Configuration file to specify runtimes and tools versions for the CLI.
0 commit comments