-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Expand checkstyle to all modules (root) #1005
Comments
Just a warning, if we want to enable checkstyle, we could have a lot of code source update to do. |
Hi, guys! |
Probably an But haven't looked into it, as I am in a rush right now. If it works, you should get a message that checkstyle was executed for every module when running If you get to that point, create the PR and point out what did break and why. If there's just small fixes needed (eg whitespace changes), just do a second commit with the fixes. In any other case, we might want to exclude some modules from checking or just do a big "fix up all" commit and add it to a special ignore file. Yes, the commit to that file needs to be a separate one. :) HTH to get you started! |
Please disregard the above (sorry, that's incorrect @bmarwell :) Instead, move the section mentioning the checkstyle plugin from shiro/integration-tests/jakarta-ee/pom.xml Line 472 in d627bf6
<plugin> section of the root pom.This will activate checkstyle at the root level, and as you might have guessed, break a lot of things because they don't conform to checkstyle rules :) Those would need to be fixed as they come up. Once again, thank you! |
Yes, I caught the plugin management section. Oops. |
Move the checkstyle plugin from integration-tests/jakarta-ee [shiro-its-jakarta-ee]/pom.xml to the root pom.xml
@lprimak @bmarwell I hope you're having a nice day! |
@lprimak @bmarwell Hi! It's me again.
or \shiro\lang\src\main\java\org\apache\shiro\lang\codec\H64.java:57:40: '4' is a magic number. [MagicNumber]
Should I add variable to fix this magic numbers? At the moment I just fixed easy checkstyle rules errors such as:
I'll keep working on fixing checkstyle rules such as the listed before. Have a nice day! |
I left some comments on the PR, please continue there. |
pls assign 2 me. |
@EdgarRamirezFuentes What do you think about below?
|
Done. @EdgarRamirezFuentes Can you give @damonxue permissions to your PR? |
Pls wait for me, I will done a task in Apache Shenyu in a week,and then do this. |
@lprimak Pls review. |
[#1005] - Expand checkstyle to all modules (root).
Currently, only Jakarta EE module has checkstyle enabled.
Need to enable checkstyle on root module, so it encompasses all modules.
Of course, this requires that all modules comply with the checkstyle rules.
This needs to be done as well.
The text was updated successfully, but these errors were encountered: