-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Issue #3095: Add COMPILATION_UNIT token in Ast Tree, remove EOF token #10574
Conversation
3ed91e2
to
0a76220
Compare
52b6875
to
a1603a6
Compare
@nmancus1 , please resolve conflict |
cb13ecc
to
0468727
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items
0468727
to
8464731
Compare
I did not expect updates in Checks a lot, but we have affect on a lot of them. most interesting update:
|
Since this is for the 9.0 version, I more for breaking compatibility. I am not very sure on the benefit part, but its a change that makes sense. It is weird to be given a node that is not a root and having to do next sibling on it to get the rest of the CU when dealing with the I don't see a reason not to do this. |
I really did not see a great deal of value in this issue when I started on this, but, after working on check updates, I think that adding a root node makes a lot of sense:
Yes, but update is simple: either get the first child of |
ae57d83
to
4e7f3da
Compare
src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/MissingDeprecatedCheck.java
Outdated
Show resolved
Hide resolved
4e7f3da
to
ee23707
Compare
ee23707
to
d53ef82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
items:
src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.java
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtil.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/xpath/XpathMapperTest.java
Outdated
Show resolved
Hide resolved
d53ef82
to
c3ae92e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OkOk to merge
c3ae92e
to
41252af
Compare
@nmancus1 , please resolve conflict |
41252af
to
eeee161
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has any regression been done to sevntu? This will also be a breaking change for it.
EDIT: There is a blocked PR for that in sevntu.
Closes #3095.
Check Regression Reports
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_checks-nonjavadoc-error/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_checks-only-javadoc-error/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_part1/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_part2/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_part3/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_part4/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_part5/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_part6/index.html
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_sevntu-check-regression_part_1/index.html
InnerClassCheck
,LineLengthExtendedCheck
, andPublicReferenceToPrivateTypeCheck
https://nmancus1.github.io/issue-3095-b_check_diff_reports_2021_08_11/diff_sevntu-check-regression_part_2/index.html
AvoidDefaultSerializableInInnerClasses
AST Regression Reports
It will be very challenging to share or view AST regresion report for this PR:
File size of report folder is 4.5 GB; every line of printed AST in the entire repo will have a diff, since we are adding a root node.