Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ixytiris opened this issue Apr 20, 2024 · 1 comment

Comments

@ixytiris
Copy link

ixytiris commented Apr 20, 2024

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

@ixytiris ixytiris changed the title In case of grouped imports linter returns error NglParseError cccccbhlffnfbdidrucnlffrkltdijeiefrehkvlhjti In case of grouped imports linter returns error NglParseError: unable to find class 'TestGroup.CAN' Apr 20, 2024
@nvuillam
Copy link
Owner

nvuillam commented Apr 28, 2024

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 :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants