File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ func createToolFileConfigurations(tool domain.Tool, patternConfiguration []domai
301301 return fmt .Errorf ("failed to write eslint config: %v" , err )
302302 }
303303 fmt .Println ("ESLint configuration created based on Codacy settings. Ignoring plugin rules. ESLint plugins are not supported yet." )
304- case Trivy :
304+ case domain . Trivy :
305305 err := createTrivyConfigFile (patternConfiguration , toolsConfigDir )
306306 if err != nil {
307307 return fmt .Errorf ("failed to create Trivy config: %v" , err )
@@ -312,9 +312,13 @@ func createToolFileConfigurations(tool domain.Tool, patternConfiguration []domai
312312 if err != nil {
313313 return fmt .Errorf ("failed to create PMD config: %v" , err )
314314 }
315-
316- fmt .Println ("PMD configuration created based on Codacy settings" )
317- case PyLint :
315+ case domain .PMD7 :
316+ err := createPMD7ConfigFile (patternConfiguration , toolsConfigDir )
317+ if err != nil {
318+ return fmt .Errorf ("failed to create PMD7 config: %v" , err )
319+ }
320+ fmt .Println ("PMD7 configuration created based on Codacy settings" )
321+ case domain .PyLint :
318322 err := createPylintConfigFile (patternConfiguration , toolsConfigDir )
319323 if err != nil {
320324 return fmt .Errorf ("failed to create Pylint config: %v" , err )
You can’t perform that action at this time.
0 commit comments