Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-groovy-lint

Package Overview
Dependencies
Maintainers
1
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-groovy-lint - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

jdeploy-bundle/rules/BlockEndsWithBlankLine.js

15

CHANGELOG.md
# 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 @@

2

jdeploy-bundle/.groovylintrc-recommended.json
{
"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 @@ ]

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc