diff --git a/package.json b/package.json index 8487d5cd..53d7e15a 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,8 @@ "lint:verify": "sfdx scanner:run --target **/lwc/**/*.js,!node_modules/** --engine eslint-lwc --severity-threshold 3 --eslintconfig .eslintrc.json", "prepare": "husky install && sfdx plugins:link ./node_modules/@salesforce/sfdx-scanner && sfdx plugins:link ./node_modules/@jongpie/sfdx-bummer-plugin", "prettier": "prettier", - "scan": "sfdx scanner:run --pmdconfig config/pmd-ruleset.xml --target .,!plugins/ExtraCodeCoverage/** --engine pmd --severity-threshold 3", + "scan": "npm run lint:verify && npm run scan:pmd", + "scan:pmd": "sfdx scanner:run --pmdconfig config/pmd-ruleset.xml --target .,!plugins/ExtraCodeCoverage/** --engine pmd --severity-threshold 3", "scan:graph": "sfdx scanner:run -e sfge -p . --target 'rollup'", "test": "npm run test:apex && npm run test:lwc", "test:apex": "sh ./scripts/runLocalTests.sh",