Skip to content

Conversation

@Hannahjjj97
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 24, 2025 15:18
@Hannahjjj97 Hannahjjj97 merged commit 0b71ea8 into main Dec 24, 2025
11 checks passed
@Hannahjjj97 Hannahjjj97 deleted the checkstyle-suppressions branch December 24, 2025 15:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a checkstyle suppressions configuration file to suppress MemberName check violations for two member variables (m_autonomousCommand and m_robotContainer) in the Robot.java file that use the WPILib naming convention with the m_ prefix.

Key Changes:

  • New checkstyle-suppressions.xml file created with suppressions for MemberName violations in Robot.java

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +11 to +16
message="m_autonomousCommand"/>

<suppress
files="src/main/java/frc/robot/Robot.java"
checks="MemberName"
message="m_robotContainer"/>
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

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

The 'message' attribute in suppress rules is intended to match the violation message text, not just the variable name. This configuration will only suppress violations where the message contains 'm_autonomousCommand', which may not work as expected. Consider using a more targeted approach by suppressing based on the line numbers or using a regex pattern in the 'id' or 'checks' attribute. Alternatively, you could modify the MemberName check pattern in checkstyle.xml to allow the WPILib naming convention (m_ prefix) rather than suppressing it.

Suggested change
message="m_autonomousCommand"/>
<suppress
files="src/main/java/frc/robot/Robot.java"
checks="MemberName"
message="m_robotContainer"/>
message=".*m_autonomousCommand.*"/>
<suppress
files="src/main/java/frc/robot/Robot.java"
checks="MemberName"
message=".*m_robotContainer.*"/>

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +17
checks="MemberName"
message="m_autonomousCommand"/>

<suppress
files="src/main/java/frc/robot/Robot.java"
checks="MemberName"
message="m_robotContainer"/>

Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

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

The 'message' attribute in suppress rules is intended to match the violation message text, not just the variable name. This configuration will only suppress violations where the message contains 'm_robotContainer', which may not work as expected. Consider using a more targeted approach by suppressing based on the line numbers or using a regex pattern in the 'id' or 'checks' attribute. Alternatively, you could modify the MemberName check pattern in checkstyle.xml to allow the WPILib naming convention (m_ prefix) rather than suppressing it.

Suggested change
checks="MemberName"
message="m_autonomousCommand"/>
<suppress
files="src/main/java/frc/robot/Robot.java"
checks="MemberName"
message="m_robotContainer"/>
checks="MemberName"/>

Copilot uses AI. Check for mistakes.
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.

2 participants