nvuillam / npm-groovy-lint

Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line
https://nvuillam.github.io/npm-groovy-lint/
MIT License
193 stars 61 forks source link

In case of grouped imports linter returns error NglParseError: unable to find class 'TestGroup.CAN' #371

Closed ixytiris closed 3 weeks ago

ixytiris commented 2 months ago

I notice that when i have more than 5 imports of the same package that are being grouped to one import like: import com.test.annotations.* linter throws a error : NglParseError : unable to find class 'TestGroup.CAN' for annotation attribute constant As a workaround i remove the group and import all the imports individually

nvuillam commented 2 months ago

I see there is a NoWildcardImports Rule on CodeNarc -> https://codenarc.org/codenarc-rules-imports.html

But it should not make the parsing crash :/

So keep your workaround for now :/

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.