Skip to content

Commit 9bfafd2

Browse files
committed
use pmd6 for init without token
1 parent c478fb3 commit 9bfafd2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/init.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@ func buildDefaultConfigurationFiles(toolsConfigDir string) error {
451451
return fmt.Errorf("failed to create default Trivy configuration: %w", err)
452452
}
453453
case domain.PMD:
454-
if err := createPMDConfigFile(patternsConfig, toolsConfigDir); err != nil {
455-
return fmt.Errorf("failed to create default PMD configuration: %w", err)
456-
}
454+
continue // only use pmd6 for default configuration
457455
case domain.PMD7:
458456
if err := createPMD7ConfigFile(patternsConfig, toolsConfigDir); err != nil {
459457
return fmt.Errorf("failed to create default PMD7 configuration: %w", err)

0 commit comments

Comments
 (0)