-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Konstantin
committed
Jan 12, 2022
1 parent
03b00df
commit aee1d2c
Showing
10 changed files
with
27 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SCANNER_VERSION=v0.1 | ||
SCANNER_VERSION=v0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
#!/bin/bash | ||
source ./scanner/pre/variables.sh | ||
REPORT_NAME="scan-pmd-apex" | ||
REPORT_PATH="$REPORT_FOLDER/$REPORT_NAME" | ||
REPORT_CSV="$REPORT_PATH.csv" | ||
REPORT_XML="$REPORT_PATH.xml" | ||
REPORT_NAME="scan-pmd-apex.html" | ||
REPORT_HTML="$REPORT_FOLDER/$REPORT_NAME" | ||
PMD_CONFIG_APEX="./scanner/rules/pmd-ruleset-apex.xml" | ||
sfdx scanner:run --format csv \ | ||
sfdx scanner:run --format html \ | ||
--target $TARGET_SOURCE \ | ||
--pmdconfig $PMD_CONFIG_APEX \ | ||
--engine pmd \ | ||
--outfile $REPORT_CSV | ||
sfdx scanner:run --format junit \ | ||
--target $TARGET_SOURCE \ | ||
--pmdconfig $PMD_CONFIG_APEX \ | ||
--engine pmd \ | ||
--outfile $REPORT_XML | ||
--outfile $REPORT_HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#!/bin/bash | ||
source ./scanner/pre/variables.sh | ||
REPORT_NAME="scan-duplicate-code.csv" | ||
REPORT_PATH="$REPORT_FOLDER/$REPORT_NAME" | ||
REPORT_NAME="scan-duplicate-code.html" | ||
REPORT_HTML="$REPORT_FOLDER/$REPORT_NAME" | ||
export NODE_OPTIONS=--max_old_space_size=4096 # avoid heap limit | ||
sfdx scanner:run --target $TARGET_SOURCE_CPD --engine cpd --outfile $REPORT_PATH | ||
sfdx scanner:run --format html \ | ||
--target $TARGET_SOURCE_CPD \ | ||
--engine cpd \ | ||
--outfile $REPORT_HTML | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
source ./scanner/pre/variables.sh | ||
REPORT_NAME="scan-eslint-lwc.csv" | ||
REPORT_PATH="$REPORT_FOLDER/$REPORT_NAME" | ||
REPORT_NAME="scan-eslint-lwc.html" | ||
REPORT_HTML="$REPORT_FOLDER/$REPORT_NAME" | ||
sfdx scanner:run --engine "eslint-lwc" \ | ||
--format csv \ | ||
--format html \ | ||
--category "LWC" \ | ||
--outfile $REPORT_PATH \ | ||
--outfile $REPORT_HTML \ | ||
--target $TARGET_SOURCE_LWC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
#!/bin/bash | ||
source ./scanner/pre/variables.sh | ||
REPORT_NAME="scan-pmd-js" | ||
REPORT_PATH="$REPORT_FOLDER/$REPORT_NAME" | ||
REPORT_CSV="$REPORT_PATH.csv" | ||
REPORT_XML="$REPORT_PATH.xml" | ||
REPORT_NAME="scan-pmd-js.html" | ||
REPORT_HTML="$REPORT_FOLDER/$REPORT_NAME" | ||
PMD_CONFIG_JS="./scanner/rules/pmd-ruleset-js.xml" | ||
sfdx scanner:run --format csv \ | ||
sfdx scanner:run --format html \ | ||
--target $TARGET_SOURCE \ | ||
--pmdconfig $PMD_CONFIG_JS \ | ||
--engine pmd \ | ||
--outfile $REPORT_CSV | ||
sfdx scanner:run --format junit \ | ||
--target $TARGET_SOURCE \ | ||
--pmdconfig $PMD_CONFIG_JS \ | ||
--engine pmd \ | ||
--outfile $REPORT_XML | ||
--outfile $REPORT_HTML |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
echo "running post-run" | ||
bash ./scanner/post/beautify_reports.sh | ||
bash ./scanner/post/generate_html.sh | ||
# bash ./scanner/post/beautify_reports.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
#!/bin/bash | ||
source ./scanner/pre/variables.sh | ||
REPORT_NAME="scan-pmd-visualforce" | ||
REPORT_PATH="$REPORT_FOLDER/$REPORT_NAME" | ||
REPORT_CSV="$REPORT_PATH.csv" | ||
REPORT_XML="$REPORT_PATH.xml" | ||
REPORT_NAME="scan-pmd-visualforce.html" | ||
REPORT_HTML="$REPORT_FOLDER/$REPORT_NAME" | ||
PMD_CONFIG_VF="./scanner/rules/pmd-ruleset-vf.xml" | ||
sfdx scanner:run --format csv \ | ||
sfdx scanner:run --format html \ | ||
--target $TARGET_SOURCE \ | ||
--pmdconfig $PMD_CONFIG_VF \ | ||
--engine pmd \ | ||
--outfile $REPORT_CSV | ||
sfdx scanner:run --format junit \ | ||
--target $TARGET_SOURCE \ | ||
--pmdconfig $PMD_CONFIG_VF \ | ||
--engine pmd \ | ||
--outfile $REPORT_XML | ||
--outfile $REPORT_HTML |