New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 4.5.1 to 4.5.2

7

CHANGELOG.md
# Changelog
## [4.5.2] 2020-04-29
- Expose `loadConfig()` method to load rules when npm-groovy-lint is used as a library
- Fixes
- Missing temporary rulesets file missing
- Handle better CodeNarcServer concurrent calls
## [4.5.1] 2020-04-28

@@ -4,0 +11,0 @@

2

jdeploy-bundle/codenarc-factory.js

@@ -272,3 +272,3 @@ // Shared functions

// If RuleSet files has already been created, or is groovy file, return it
if (options.rulesets && (options.rulesets.endsWith(".groovy") || options.rulesets.endsWith(".xml"))) {
if (options.rulesets && (options.rulesets.endsWith(".groovy") || options.rulesets.endsWith(".xml")) && fse.existsSync(options.rulesets)) {
return options.rulesets;

@@ -275,0 +275,0 @@ }

@@ -77,4 +77,3 @@ #! /usr/bin/env node

debug(`Fix errors for ${JSON.stringify(errorIds)} on existing NpmGroovyLint instance`);
const codeNarcFactoryResult = await prepareCodeNarcCall(this.options, this.jdeployRootPath);
this.setMethodResult(codeNarcFactoryResult);
await this.preProcess();
this.fixer = new NpmGroovyLintFix(

@@ -109,2 +108,7 @@ this.lintResult,

// Returns the loaded config
async loadConfig(configFilePath, mode = "lint") {
return await loadConfig(configFilePath, mode, null, []);
}
// Actions before call to CodeNarc

@@ -379,3 +383,3 @@ async preProcess() {

}
} else {
} else if (lintResAfterNewFix && lintResAfterNewFix.files) {
for (const afterNewFixResFileNm of Object.keys(lintResAfterNewFix.files)) {

@@ -382,0 +386,0 @@ // Set updatedSource in results in provided

{
"name": "npm-groovy-lint",
"version": "4.5.1",
"version": "4.5.2",
"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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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