npm-groovy-lint
Advanced tools
Comparing version 3.1.0 to 3.1.1
# Changelog | ||
## [3.1.1] 2020-03-20 | ||
### Added | ||
- Fix rules: | ||
- BlockEndsWithBlankLine | ||
- BlockStartsWithBlankLine | ||
- MisorderedStaticImports | ||
- SpaceAfterIf | ||
### Changed | ||
- Fix rules: | ||
- SpaceAroundOperator | ||
## [3.1.0] 2020-03-18 | ||
@@ -4,0 +19,0 @@ |
{ | ||
"extends": "all", | ||
"rules": { | ||
"basic.DeadCode": "error", | ||
"formatting.BracesForIfElse": "info", | ||
"comments.ClassJavadoc": "off", | ||
@@ -5,0 +7,0 @@ "convention.NoDef": "off", |
@@ -98,2 +98,3 @@ // Additional definition for codenarc rules ( get position & available fix) | ||
"SpaceAfterComma", | ||
"SpaceAfterIf", | ||
"UnnecessaryDefInFieldDeclaration", | ||
@@ -106,2 +107,5 @@ "UnnecessarySemicolon", | ||
"UnusedImport", | ||
"BlockStartsWithBlankLine", | ||
"BlockEndsWithBlankLine", | ||
"MisorderedStaticImports", | ||
"IfStatementBraces", | ||
@@ -108,0 +112,0 @@ "ElseBlockBraces", |
@@ -23,3 +23,3 @@ // Space around operators | ||
let operator = getVariable(evaluatedVars, "OPERATOR", { mandatory: true, htmlToString: true, line: line }); | ||
if (!line.includes("+=") && !line.includes("++") && !line.includes("--") && !line.includes("-=")) { | ||
if (!line.includes("+=") && !line.includes("++")) { | ||
return addSpaceAroundChar(line, operator); | ||
@@ -63,2 +63,10 @@ } else { | ||
` | ||
}, | ||
{ | ||
sourceBefore: ` | ||
def grantCommand = 'sfdx force:auth:jwt:grant --clientid '+sslParams['clientId']+' --jwtkeyfile ./ssl/'+alias+'.key --username '+sslParams['username']+' --setalias '+alias | ||
`, | ||
sourceAfter: ` | ||
def grantCommand = 'sfdx force:auth:jwt:grant --clientid ' + sslParams['clientId'] + ' --jwtkeyfile ./ssl/' + alias + '.key --username ' + sslParams['username'] + ' --setalias ' + alias | ||
` | ||
} | ||
@@ -65,0 +73,0 @@ ] |
{ | ||
"name": "npm-groovy-lint", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "NPM CodeNarc wrapper to easily lint Groovy files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
16287065
98
3964