Comments (3)
NglParseError is for... parse errors , returned by Groovy parser (I apologize for it if the message is not very clear, but i don't have the hand on Groovy parser and it's far too complicated for me to go there 😨 )
When Groovy does not succeed to parse a file, most of issues are not catched
Once the parse errors fixed, the linter can parse the code so provide usual errors :)
from npm-groovy-lint.
Please could you post your jenkinsfiles so I can reproduce ? :)
If they can not be public, you can mail them
from npm-groovy-lint.
Reproduced with this content:
pipeline {
agent {
kubernetes {
yamlFile 'yaml-templates/node-skaffold.yml'
}
}
stages {
stage('Clone & Install') {
steps {
checkout([
$class: 'GitSCM',
branches: [
[name: "*/master"]
],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'LocalBranch']],, // <-- this double comma
submoduleCfg: [],
userRemoteConfigs: [
[credentialsId: 'redacted',
url: "redacted"
]
]
])
sh 'npm ci'
}
}
stage('Build Prod') {
steps {
sh 'export APP_ENV=production && npm run build'
}
}
}
}
Looks like the double comma was causing the issue, even though it parsed fine to run with (double comma was not needed in fact)
from npm-groovy-lint.
Related Issues (20)
- Error: EACCES: permission denied, mkdir '//.java-caller' HOT 8
- Problem detecting existing Java 17 installation and installing new build for no reason HOT 3
- --noserver does not honor --parse HOT 5
- Is there a way to ignore unknown rules? HOT 2
- Using npm-groovy-lint as a module giving webpack errors HOT 3
- npm-groovy-lint --version returns wrong CodeNarc version HOT 1
- Upgrade logback to 1.4.14 HOT 3
- Groovy4 support? HOT 3
- The console.log statements output in NeoVim formatting HOT 1
- o.c.r.PropertiesFileRuleSetConfigurer -- RuleSet configuration properties file [codenarc.properties] not found. HOT 6
- Wrong lint fix indentation HOT 2
- o.c.r.PropertiesFileRuleSetConfigurer -- RuleSet configuration properties file [codenarc.properties] not found. HOT 4
- proposal: ci improvements HOT 7
- Custom rule HOT 1
- temp directories aren't cleaned up HOT 3
- Error when running as pre-commit hook: SyntaxError: Unexpected token ; HOT 2
- Error with latest version of the docker container when running in GHA HOT 13
- CodeNarcServer unexpected error HOT 11
- Make a warning when enabling non-disabled rule HOT 5
- Critical vulnerabilities with axios package in latest version HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-groovy-lint.