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: #6311 new check: OrderedProperties #6343
Conversation
@thomassenger Please work on making CI green. We usually won't review the code until CI is green. Let us know if you are having any issues and need our help. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
CI should be made green.
TC and travis are failing.
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
@thomassenger Please don't mark my points as resolved. Leave that to me to do to reverify everything you have done. |
This comment has been minimized.
This comment has been minimized.
Thank you for your work. |
Please reply as done to each raised items to let know that you are ready for review again. |
When CI is green I will re-review unless you need help. You may want to squash all commits to 1 and rebase off the latest master as there are conflicts. |
@thomassenger Please squash the commits into 1, don't leave a huge pile of commits in the PR. The branch is still unmergable and CI is still failing. |
Hello, I squash all commits into one. I cannot see your last requested change anymore. |
Click the "Show resolved" and "Load more..." to show the requested changes that are now being hidden. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
I will start looking into this to help.
Please rebase on latest master and fix the following errors from TeamCity.
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheckTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
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.
changes for pitest.
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
@thomassenger , CI is green, I hope you are not exhausted, to pass review by humans |
Yes I see. Unbelievable. ;-) |
Hello Romani, |
I think all changes are done. No actions on my side. |
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.
I do not see link to regression report, please share it one more time.
regression report we do by our tool https://github.com/checkstyle/contribution/tree/master/checkstyle-tester#diffgroovy-diff-report-generation to make sure that no exception happening on big real projects and violations are valid.
items to improve:
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheckTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
the requested report |
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.
reports.zip
please share report at github.io (see in instruction in README of tool) , not only I need to review it, report is designed to ease reference of case.
items to improve:
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/OrderedPropertiesCheck.java
Outdated
Show resolved
Hide resolved
@thomassenger , ping |
Hello Romany, I was busy last week and continue soon. |
To publish diff.groovy report seem to be difficult. The master branch should be orphaned. But I have already an master branch. I could use a different branch name. |
code is ok to merge. We need regression report to make sure Check is not failing on real code.
yes, just make Attention: you can make new PR from your new branch to make all further steps easier. this PR can be closed in favor of new PR. |
Wercker is failing: but our master build is not failing, please rebase your code to most recent our master code to fix issue. Teamcity failure can be ignored, smth wrong on Teamcity side. |
@thomassenger , we will have a release at weekend, it would be awesome to finish this PR. |
I merged, squashed and created a new branch issue-6311 on my fork. |
You seemed to have uploaded the raw reports generated by maven plugin and not the ones produced by the diff-report utility.
You must modify the XML config file you give to
As discussed in the readme you must modify Sorry this process hasn't worked well for you. We welcome any additions to the readme to make this process more seamless. |
Thank you rnveach for your help. Now its is getting clear. If I add my checker module name="OrderedProperties" to my_check.xml the groovy script will fail. I believe because of the missing check at the upstream/master branch. |
You must run a patch-only difference report because the check doesn't exist in master for a full difference. The report example I gave is similar. |
I made a new diff report having --patchConfig and --mode single. |
@thomassenger I don't know what happened but it looks like you pushed the diff report to this PR and overwrote your original work. |
It looks like this PR was moved to #6781 . |
Yes, this is what I understand.
You confuse me. That is why I used the testrepo in the first place. Anyhow. Lets get this done. |
Thanks. It has been a while since I used github.io . I thought I used a different repo. |
#6311
The OrderedProperties Check is almost ready.
There are the following open issues:
-- I need help with failure: XdocsPagesTest.testAllCheckSections:356->validateCheckSection:451->validateParentSection:1300 config_misc.xml section 'OrderedProperties' should have matching parent expected:<[TreeWal]ker> but was:<[Chec]ker>