Skip to content

Instantly share code, notes, and snippets.

View nvuillam's full-sized avatar
🌏
Open to public talks about MegaLinter or any open-source project :)

Nicolas Vuillamy nvuillam

🌏
Open to public talks about MegaLinter or any open-source project :)
View GitHub Profile
@nvuillam
nvuillam / .json
Last active January 2, 2022 02:18
BadWords filters object config template
[
{
"query": "SELECT all FROM Lead",
"operation": "Readonly",
"targetRecordsFilter": "core:DetectBadwords",
"filterRecordsAddons": [
{
"module": "core:RecordsFilter",
"args": {
"filterType": "BadWords",
@nvuillam
nvuillam / gist:66dbf0aa9855eb6eb5ce3fd8b76b047d
Created May 28, 2020 19:07
Call npm-groovy-lint via command line with json output
npm-groovy-lint --path "path/to/my/files" --output json --failonerror
npm-groovy-lint --path "path/to/my/files" --output "/tmp/ReportTestCodenarc.xml" --failonerror
npm-groovy-lint -basedir="path/to/my/files" -files="**/*.groovy,**/Jenkinsfile,**/*.gradle" -title="MyCodeNarcReport" -maxPriority1Violations=0 -report=xml:"/tmp/ReportTestCodenarc.xml"
java -classpath "lib/CodeNarc-1.5.jar:%GROOVY_HOME%/groovy-3.0.3.jar:%GROOVY_HOME%/groovy-templates-3.0.3.jar:%GROOVY_HOME%/groovy-xml-3.0.3.jar:%GROOVY_HOME%/groovy-json-3.0.3.jar:lib/slf4j-api-1.7.9.jar:lib/log4j-slf4j-impl-2.13.0.jar:lib/log4j-api-2.13.0.jar:lib/log4j-core-2.13.0.jar:lib/GMetrics-0.7.jar:lib/*" org.codenarc.CodeNarc -basedir="path/to/my/files" -files="**/*.groovy,**/Jenkinsfile,**/*.gradle" -title="MyCodeNarcReport" -maxPriority1Violations=0 -report=xml:"/tmp/ReportTestCodenarc.xml"
java -classpath "lib/CodeNarc-1.5.jar:%GROOVY_HOME%/groovy-3.0.3.jar:%GROOVY_HOME%/groovy-templates-3.0.3.jar:%GROOVY_HOME%/groovy-xml-3.0.3.jar:%GROOVY_HOME%/groovy-json-3.0.3.jar:lib/slf4j-api-1.7.9.jar:lib/log4j-slf4j-impl-2.13.0.jar:lib/log4j-api-2.13.0.jar:lib/log4j-core-2.13.0.jar:lib/GMetrics-0.7.jar:lib/*" org.codenarc.CodeNarc -basedir="path/to/my/files" -files="**/*.groovy,**/Jenkinsfile,**/*.gradle" -title="MyCodeNarcReport" -maxPriority1Violations=0 -report=xml:"/tmp/ReportTestCodenarc.xml"
java -classpath "lib/CodeNarc-1.5.jar:%GROOVY_HOME%/groovy-3.0.3.jar:%GROOVY_HOME%/groovy-templates-3.0.3.jar:%GROOVY_HOME%/groovy-xml-3.0.3.jar:%GROOVY_HOME%/groovy-json-3.0.3.jar:lib/slf4j-api-1.7.9.jar:lib/log4j-slf4j-impl-2.13.0.jar:lib/log4j-api-2.13.0.jar:lib/log4j-core-2.13.0.jar:lib/GMetrics-0.7.jar:lib/*" org.codenarc.CodeNarc -basedir="path/to/my/files" -files="**/*.groovy,**/Jenkinsfile,**/*.gradle" -title="MyCodeNarcReport" -maxPriority1Violations=0 -report=xml:"/tmp/ReportTestCodenarc.xml"
java -classpath "lib/CodeNarc-1.5.jar:%GROOVY_HOME%/groovy-3.0.3.jar:%GROOVY_HOME%/groovy-templates-3.0.3.jar:%GROOVY_HOME%/groovy-xml-3.0.3.jar:%GROOVY_HOME%/groovy-json-3.0.3.jar:lib/slf4j-api-1.7.9.jar:lib/log4j-slf4j-impl-2.13.0.jar:lib/log4j-api-2.13.0.jar:lib/log4j-core-2.13.0.jar:lib/GMetrics-0.7.jar:lib/*" org.codenarc.CodeNarc -basedir="path/to/my/files" -files="**/*.groovy,**/Jenkinsfile,**/*.gradle" -title="MyCodeNarcReport" -maxPriority1Violations=0 -report=xml:"/tmp/ReportTestCodenarc.xml"