Skip to content
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

[#864] Undid Constant Name Rule In Checkstyles XML and Applied Formatting/Changes to HIRS_UTILS #865

Merged

Conversation

ThatSilentCoder
Copy link
Collaborator

@ThatSilentCoder ThatSilentCoder commented Oct 30, 2024

Description

I recently modified one of the modules in checkstyles.xml to ignore checks for Java constants that begin with an underscore. However, after further research and discussions with my colleagues, I believe we should revert this rule and instead update the Java constants to align with recommended Java guidelines. This change will help maintain code consistency and adherence to best practices. Apply the new changes to the entire HIRS_UTILS module.

Other Changes You Might Have Noticed:

Asides from undoing one of the checkstyle modules in the checkstyles.xml file, I also "lombok-ed" a lot of java files in the UTILS files and a good portion of the files in the HIRS_UTILS module were formatted according to checkstyles guidelines.

Test Instructions:

  1. Run ./gradlew clean HIRS_UTILS:check --rerun-tasks in your terminal window to verify there are no checkstyle errors.
  2. Run ./gradlew clean build --rerun-tasks in your terminal window to verify there are no build errors.
  3. Go to the SwidTagsConstants.java file and verify none of the constants start with an underscore.

Issues this PR addresses:

Closes issue #864

…le. Applied checkstyle changes to entire HIRS_UTILS module
@ThatSilentCoder ThatSilentCoder changed the title [#864] Undid Constant Name Module In Checkstyles XML and Applied Formatting to Entire Module [#864] Undid Constant Name Module In Checkstyles XML and Applied Formatting/Changes to HIRS_UTILS Oct 30, 2024
@@ -78,83 +78,83 @@ public final class SwidTagConstants {
public static final String FX_SEPARATOR = ":";
public static final String RFC3852_PFX = "rcf3852";
public static final String RFC3339_PFX = "rcf3339";
public static final String _COLLOQUIAL_VERSION_STR = N8060_PFX + FX_SEPARATOR
public static final String COLLOQUIAL_VERSION_STR = N8060_PFX + FX_SEPARATOR
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the only file that failed the checkstyle guidelines (after I changed the constant name module)

@ThatSilentCoder ThatSilentCoder changed the title [#864] Undid Constant Name Module In Checkstyles XML and Applied Formatting/Changes to HIRS_UTILS [#864] Undid Constant Name Rule In Checkstyles XML and Applied Formatting/Changes to HIRS_UTILS Nov 1, 2024
@chubtub chubtub self-requested a review November 1, 2024 18:08
Copy link
Contributor

@chubtub chubtub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gradle build succeeded but I got a lot of ant:checkstyle warnings, is that supposed to happen?

@ThatSilentCoder
Copy link
Collaborator Author

ThatSilentCoder commented Nov 1, 2024

The gradle build succeeded but I got a lot of ant:checkstyle warnings, is that supposed to happen?

Yes, that is supposed to happen. When you run the check command on the HIRS_UTILS module, there should be no checkstyle warnings. Because none of the other PR's for checkstyle warnings have been merged into main as of yet, you are still going to get checkstyle warnings for all the other modules when you try to build the entire application.

@chubtub chubtub self-requested a review November 4, 2024 18:28
@iadgovuser26 iadgovuser26 merged commit 0f2a586 into main Nov 8, 2024
7 checks passed
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.

Revert Checkstyle rule in Checkstyle.xml and Apply New Changes to HIRS_UTILS
3 participants