Comments (5)
Sure, using the WithParseError.groovy
from lib/examples
(here):
$ alias insidedocker
alias insidedocker='docker run --rm -it -u $(id -u):$(id -g) -v "$PWD:$PWD" -w "$PWD"'
$ insidedocker nvuillam/npm-groovy-lint:v14.0.0 WithParseError.groovy
***REDACTED***/WithParseError.groovy
3 error Unexpected input: '\n' @ line 3, column 20. NglParseError
5 info Static imports should appear before normal imports MisorderedStaticImports
43 warning The line exceeds 120 characters. The line is 133 characters. LineLength
npm-groovy-lint results in 1 linted files:
┌─────────┬───────────┬─────────────┐
│ (index) │ Severity │ Total found │
├─────────┼───────────┼─────────────┤
│ 0 │ 'Error' │ 1 │
│ 1 │ 'Warning' │ 1 │
│ 2 │ 'Info' │ 1 │
└─────────┴───────────┴─────────────┘
Failure: 1 error(s) have been found
1 warning(s) have been found
1 info(s) have been found
$ insidedocker nvuillam/npm-groovy-lint:v14.0.0 --noserver WithParseError.groovy
***REDACTED***/WithParseError.groovy
5 info Static imports should appear before normal imports MisorderedStaticImports
43 warning The line exceeds 120 characters. The line is 133 characters. LineLength
npm-groovy-lint results in 1 linted files:
┌─────────┬───────────┬─────────────┐
│ (index) │ Severity │ Total found │
├─────────┼───────────┼─────────────┤
│ 0 │ 'Error' │ 0 │
│ 1 │ 'Warning' │ 1 │
│ 2 │ 'Info' │ 1 │
└─────────┴───────────┴─────────────┘
Failure: 0 error(s) have been found
1 warning(s) have been found
1 info(s) have been found
from npm-groovy-lint.
@tbroyer please can you check with v13.0.0 ? :)
from npm-groovy-lint.
Nope, no change with 13.0.0:
$ alias insidedocker
alias insidedocker='docker run --rm -it -u $(id -u):$(id -g) -v "$PWD:$PWD" -w "$PWD"'
$ insidedocker nvuillam/npm-groovy-lint:v13.0.0 vars/utils.groovy
***REDACTED***/vars/utils.groovy
56 error Unexpected input: '***REDACTED***' @ line 56, column 1. NglParseError
npm-groovy-lint results in 1 linted files:
┌─────────┬───────────┬─────────────┐
│ (index) │ Severity │ Total found │
├─────────┼───────────┼─────────────┤
│ 0 │ 'Error' │ 1 │
│ 1 │ 'Warning' │ 0 │
│ 2 │ 'Info' │ 0 │
└─────────┴───────────┴─────────────┘
Failure: 1 error(s) have been found
0 warning(s) have been found
0 info(s) have been found
$ insidedocker nvuillam/npm-groovy-lint:v13.0.0 --noserver vars/utils.groovy
npm-groovy-lint results in 1 linted files:
┌─────────┬───────────┬─────────────┐
│ (index) │ Severity │ Total found │
├─────────┼───────────┼─────────────┤
│ 0 │ 'Error' │ 0 │
│ 1 │ 'Warning' │ 0 │
│ 2 │ 'Info' │ 0 │
└─────────┴───────────┴─────────────┘
from npm-groovy-lint.
Parsing is done within the CodeNarc server... and with --noserver we directly call CodeNarc... it's possible than --noserver makes that limitation , we should update the doc :/
from npm-groovy-lint.
I wouldn't expect it to differ, do you have an example you can share to test locally?
from npm-groovy-lint.
Related Issues (20)
- 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
- Incorrect indentation in blocks and braces HOT 2
- Error running npm-groovy-lint in Docker container: GroovyLint: Unable to start CodeNarc Server. HOT 2
- In case of grouped imports linter returns error NglParseError: unable to find class 'TestGroup.CAN' HOT 2
- CodeNarcServer unexpected error: Parse Error: Invalid status code HOT 1
- bug: Wrong autoformat indentation after complex expressions HOT 1
- bug: Wrong indentation for comments HOT 1
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.