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: cmd/analyze.go
+82-22Lines changed: 82 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,23 @@ package cmd
2
2
3
3
import (
4
4
"codacy/cli-v2/config"
5
+
"codacy/cli-v2/plugins"
5
6
"codacy/cli-v2/tools"
6
7
"encoding/json"
7
8
"fmt"
8
9
"io"
9
10
"log"
10
11
"net/http"
11
12
"os"
13
+
"path/filepath"
14
+
15
+
"codacy/cli-v2/utils"
12
16
13
17
"github.com/spf13/cobra"
14
18
)
15
19
16
20
varoutputFilestring
17
-
vartoolToAnalyzestring
21
+
vartoolsToAnalyzeParamstring
18
22
varautoFixbool
19
23
varoutputFormatstring
20
24
varsarifPathstring
@@ -92,7 +96,7 @@ type Pattern struct {
92
96
93
97
funcinit() {
94
98
analyzeCmd.Flags().StringVarP(&outputFile, "output", "o", "", "Output file for analysis results")
95
-
analyzeCmd.Flags().StringVarP(&toolToAnalyze, "tool", "t", "", "Which tool to run analysis with")
99
+
analyzeCmd.Flags().StringVarP(&toolsToAnalyzeParam, "tool", "t", "", "Which tool to run analysis with. If not specified, all configured tools will be run")
96
100
analyzeCmd.Flags().StringVar(&outputFormat, "format", "", "Output format (use 'sarif' for SARIF format)")
97
101
analyzeCmd.Flags().BoolVar(&autoFix, "fix", false, "Apply auto fix to your issues when available")
0 commit comments