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

NPP045 should be a Linter thing #347

Closed
Claes65 opened this issue Aug 3, 2023 · 8 comments · Fixed by #398
Closed

NPP045 should be a Linter thing #347

Claes65 opened this issue Aug 3, 2023 · 8 comments · Fixed by #398
Milestone

Comments

@Claes65
Copy link
Contributor

Claes65 commented Aug 3, 2023

In my opinion :)

@Claes65
Copy link
Contributor Author

Claes65 commented Oct 4, 2023

Do you agree? @MarkusAmshove then I can do this and use this NPP045 for my new NPP050 instead.

@MarkusAmshove MarkusAmshove added this to the v0.10 milestone Oct 4, 2023
@MarkusAmshove
Copy link
Owner

Yeah, I can move it into a linter rule

@Claes65
Copy link
Contributor Author

Claes65 commented Oct 4, 2023

I’ll do it. ☺️

@MarkusAmshove
Copy link
Owner

When you remove the rule/the check you should see the failing tests and make linter tests out of them :-)

@Claes65
Copy link
Contributor Author

Claes65 commented Oct 8, 2023

Not sure what you mean? Maybe you should do it after all? ;)

@MarkusAmshove
Copy link
Owner

The current tests for this rule are in a resources file and not in a Java file I think.
So to identify the testcases you can write for the analyzer you can remove the reporting of this issue (there is only one place) and see which tests break to look at the source to get an idea for testcases.

But I can also do it if you want :-)

@Claes65
Copy link
Contributor Author

Claes65 commented Oct 8, 2023

Maybe it’s better if you do it. But no rush. :)

@MarkusAmshove
Copy link
Owner

Is #394 ready to merge? I'll do the number adjustment after merging then, so the builds stay green :-)

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

Successfully merging a pull request may close this issue.

2 participants