Pull #18530: Fix PMD violations #18470#18530
Conversation
PMD violationsPMD violations #18470
9cf8697 to
c38fa67
Compare
c38fa67 to
e56d65b
Compare
|
dfdf6c8 to
011a8ba
Compare
PMD violations #18470PMD violations #18470
011a8ba to
d45e21e
Compare
d45e21e to
3e89c4d
Compare
3e89c4d to
c226d02
Compare
c226d02 to
13ede56
Compare
|
Too long with no output (exceeded 10m0s): context deadline exceeded |
|
waiting for enabler: |
13ede56 to
ec485e0
Compare
ec485e0 to
f321292
Compare
f321292 to
991be54
Compare
| final FileText text = new FileText(file, System.getProperty("file.encoding")); | ||
| return parseJavadocAsDetailNode(text.getFullText().toString()); | ||
| final FileText fileText = new FileText(file, Charset.defaultCharset().name()); | ||
| return (DetailNode) ParserUtil.createBlockCommentNode(fileText.getFullText().toString()); |
There was a problem hiding this comment.
we just inlined so casting is kind of a smell, as was not needed before.
| final FileText text = new FileText(file, System.getProperty("file.encoding")); | ||
| return parseJavadocAsDetailNode(text.getFullText().toString()); | ||
| final FileText fileText = new FileText(file, Charset.defaultCharset().name()); | ||
| return (DetailNode) ParserUtil.createBlockCommentNode(fileText.getFullText().toString()); |
There was a problem hiding this comment.
even causing issue.
[ERROR] DetailNodeTreeStringPrinterTest.testHtmlTagCloseBeforeTagOpen:102 » ClassCast class com.puppycrawl.tools.checkstyle.DetailAstImpl cannot be cast to class com.puppycrawl.tools.checkstyle.api.DetailNode (com.puppycrawl.tools.checkstyle.DetailAstImpl and com.puppycrawl.tools.checkstyle.api.DetailNode are in unnamed module of loader 'app')
991be54 to
da80ec0
Compare
| private static DetailNode parseFile(File file) throws IOException { | ||
| final FileText text = new FileText(file, System.getProperty("file.encoding")); | ||
| return parseJavadocAsDetailNode(text.getFullText().toString()); | ||
| return parseJavadocAsDetailNode(getBlockCommentNode(file)); |
There was a problem hiding this comment.
not its pure functional which is the highest form of coding.
just the pure functionality, boiled down all the obsolete non-sense away.
| * @throws IOException if the file could not be read. | ||
| */ | ||
| private static DetailAST getBlockCommentNode(final File file) throws IOException { | ||
| return ParserUtil.createBlockCommentNode( |
There was a problem hiding this comment.
return new
thats the story we need to know. understanding the whole context after 2 words on dedicated abstraction layer without any obsolete coupling.
if desired then reader can continue going into details.
direct simple stupid story telling is highest form of read<bility you always demanding we i also. We both sitting in the same boat.
|
No idea what is going on here, no reason to my mind |
|
this codebase is broken considering PMD !!!!!!! we not passing pmd |
|
please consider you own CI to consider your own project. |
|
i does not feel like im talking to the maintainer and team lead of this product but to some random bystander. Please try to do what we are doing here its not complicated... |
Pull #18530: Fix
PMDviolations #18470https://pmd.github.io/pmd/pmd_rules_java_design.html#exceptionasflowcontrol