Skip to content

checkstyle: ReplacementVisitor.java#2527

Closed
zielint0 wants to merge 1 commit intoINRIA:masterfrom
zielint0:checkstyle-ReplacementVisitor.java
Closed

checkstyle: ReplacementVisitor.java#2527
zielint0 wants to merge 1 commit intoINRIA:masterfrom
zielint0:checkstyle-ReplacementVisitor.java

Conversation

@zielint0
Copy link
Copy Markdown
Contributor

@monperrus
@surli
If checkstyle is enforced in spoon/src, why this non-conformant code landed in repository?

@pvojtechovsky
Copy link
Copy Markdown
Collaborator

because this class is generated automatically by the processor.

... and because our generator doesn't conforms to checkstyle, we released checkstyle rules there. It would be big effort to make generator checkstyle compatible now.

@zielint0
Copy link
Copy Markdown
Contributor Author

@pvojtechovsky
Thank you so much for this clarification.

What would be some steps to make it conformant?

@pvojtechovsky
Copy link
Copy Markdown
Collaborator

What would be some steps to make it conformant?

if the only problem is this }else separator, then it might be fixable... problem somewhere in DefaultJavaPrettyPrinter.

@zielint0
Copy link
Copy Markdown
Contributor Author

if the only problem is this }else separator, then it might be fixable... problem somewhere in DefaultJavaPrettyPrinter.

Thanks! Currently yes, I have not found other checkstyle violations in production code (but there are many violations in checkstyle report and I have not analyzed all yet).

@pvojtechovsky
Copy link
Copy Markdown
Collaborator

I suggest to close this one, because this file is generated. It makes sense to open new issue to fix the generator ... the }else problem.

@monperrus
Copy link
Copy Markdown
Collaborator

I suggest to close this one, because this file is generated.

I agree, @zielint0 could you close it?

It makes sense to open new issue to fix the generator ...

Agree. And to fix it. @zielint0 could you see how to change DefaultJavaPrettyPrinter so that the output is compliant with checkstyle? Thanks!

@zielint0
Copy link
Copy Markdown
Contributor Author

zielint0 commented Oct 1, 2018

@monperrus

Agree. And to fix it. @zielint0 could you see how to change DefaultJavaPrettyPrinter so that the output is compliant with checkstyle? Thanks!

Will take a look but no promise ;-)

I added task for myself.

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 this pull request may close these issues.

3 participants