Skip to content

Commit

Permalink
style: CHECKSTYLE.OFF
Browse files Browse the repository at this point in the history
Disable Checkstyle for a code section
  • Loading branch information
Hannahjjj97 committed Feb 10, 2025
1 parent 3643dea commit 75ebe6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/SwerveJoystickCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public class SwerveJoystickCmd extends Command {
private final SlewRateLimiter yLimiter;

Check warning on line 21 in src/main/java/frc/robot/commands/SwerveJoystickCmd.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/frc/robot/commands/SwerveJoystickCmd.java#L21 <com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck>

Member name 'yLimiter' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Raw output
/github/workspace/./src/main/java/frc/robot/commands/SwerveJoystickCmd.java:21:33: warning: Member name 'yLimiter' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. (com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck)
private final SlewRateLimiter rotLimiter;
private final double drivebaseMaxSpeed = DriveBaseConstants.kMaxSpeed.in(MetersPerSecond);
//CHECKSTYLE.SUPPRESS\: MemberName
// CHECKSTYLE.OFF:: MemberName
private double xSpeed;

Check warning on line 25 in src/main/java/frc/robot/commands/SwerveJoystickCmd.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/frc/robot/commands/SwerveJoystickCmd.java#L25 <com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck>

Member name 'xSpeed' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Raw output
/github/workspace/./src/main/java/frc/robot/commands/SwerveJoystickCmd.java:25:18: warning: Member name 'xSpeed' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. (com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck)
private double ySpeed;

Check warning on line 26 in src/main/java/frc/robot/commands/SwerveJoystickCmd.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/frc/robot/commands/SwerveJoystickCmd.java#L26 <com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck>

Member name 'ySpeed' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Raw output
/github/workspace/./src/main/java/frc/robot/commands/SwerveJoystickCmd.java:26:18: warning: Member name 'ySpeed' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. (com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck)
private double rotSpeed;
// CHECKSTYLE.ON:: MemberName
private double magnification;

public SwerveJoystickCmd(SwerveDrive swerveDrive, CommandXboxController mainController) {
// Use addRequirements() here to declare subsystem dependencies.
this.swerveDrive = swerveDrive;
this.mainController = mainController;
xLimiter = new SlewRateLimiter(DriveBaseConstants.kXLimiterRateLimit);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/drivebase/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public double[] optimizeOutputVoltage(SwerveModuleState goalState, Rotation2d cu
}

public void setDesiredState(SwerveModuleState desiredState) {
//CHECKSTYLE.SUPPRESS\: LineLength
// CHECKSTYLE.SUPPRESS: LineLength
if (Math.abs(desiredState.speedMetersPerSecond) < DriveBaseConstants.kMinSpeed.in(MetersPerSecond)) {

Check warning on line 143 in src/main/java/frc/robot/drivebase/SwerveModule.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/frc/robot/drivebase/SwerveModule.java#L143 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 100 characters (found 105).
Raw output
/github/workspace/./src/main/java/frc/robot/drivebase/SwerveModule.java:143:0: warning: Line is longer than 100 characters (found 105). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
stopModule();
} else {
Expand Down

0 comments on commit 75ebe6f

Please sign in to comment.