From 1b90ed04036c7eb4d1c23a1d392310cf23e46312 Mon Sep 17 00:00:00 2001 From: David Tian Date: Thu, 2 Nov 2023 14:48:03 -0700 Subject: [PATCH] linting --- .../Swerve23/Constants/ConstantsIO.java | 74 +++++++++---------- .../Swerve23/Constants/SubsystemManifest.java | 2 +- .../team841/Swerve23/Drive/Drivetrain.java | 4 +- src/main/java/com/team841/Swerve23/Robot.java | 1 - .../com/team841/Swerve23/RobotContainer.java | 1 - .../offseason2023/util/tunableNumber.java | 1 - 6 files changed, 38 insertions(+), 45 deletions(-) diff --git a/src/main/java/com/team841/Swerve23/Constants/ConstantsIO.java b/src/main/java/com/team841/Swerve23/Constants/ConstantsIO.java index 79e5896..599b8c6 100644 --- a/src/main/java/com/team841/Swerve23/Constants/ConstantsIO.java +++ b/src/main/java/com/team841/Swerve23/Constants/ConstantsIO.java @@ -2,41 +2,39 @@ public final class ConstantsIO { - public enum robotStates{ - disabled, - teleop, - autonomous - }; - - public static robotStates robotCurrentState; - - public static boolean inTune = false; - - public static final class CANID { - - // Swerve falcons - public static final int kFrontRightDriveFalcon = 0; - public static final int kFrontRightTurnFalcon = 0; - public static final int kFrontLeftDriveFalcon = 0; - public static final int kFrontLeftTurnFalcon = 0; - - public static final int kBackRightTurnFalcon = 0; - public static final int kBackRightDriveFalcon = 0; - public static final int kBackLeftDriveFalcon = 0; - public static final int kBackLeftTurnFalcon = 0; - - // Canivore - public static final int kCanivore = 0; - - // Cancoder - public static final int kFrontRightCancoder = 0; - public static final int kFrontLeftCancoder = 0; - public static final int kBackRightCancoder = 0; - public static final int kBackLeftCancoder = 0; - - // Pigeon - public static final int kPigeon = 0; - } - - -} \ No newline at end of file + public enum robotStates { + disabled, + teleop, + autonomous + }; + + public static robotStates robotCurrentState; + + public static boolean inTune = false; + + public static final class CANID { + + // Swerve falcons + public static final int kFrontRightDriveFalcon = 0; + public static final int kFrontRightTurnFalcon = 0; + public static final int kFrontLeftDriveFalcon = 0; + public static final int kFrontLeftTurnFalcon = 0; + + public static final int kBackRightTurnFalcon = 0; + public static final int kBackRightDriveFalcon = 0; + public static final int kBackLeftDriveFalcon = 0; + public static final int kBackLeftTurnFalcon = 0; + + // Canivore + public static final int kCanivore = 0; + + // Cancoder + public static final int kFrontRightCancoder = 0; + public static final int kFrontLeftCancoder = 0; + public static final int kBackRightCancoder = 0; + public static final int kBackLeftCancoder = 0; + + // Pigeon + public static final int kPigeon = 0; + } +} diff --git a/src/main/java/com/team841/Swerve23/Constants/SubsystemManifest.java b/src/main/java/com/team841/Swerve23/Constants/SubsystemManifest.java index 2711061..a08059f 100644 --- a/src/main/java/com/team841/Swerve23/Constants/SubsystemManifest.java +++ b/src/main/java/com/team841/Swerve23/Constants/SubsystemManifest.java @@ -3,5 +3,5 @@ import com.team841.Swerve23.Drive.Drivetrain; public final class SubsystemManifest { - public static Drivetrain drivetrain = new Drivetrain(); + public static Drivetrain drivetrain = new Drivetrain(); } diff --git a/src/main/java/com/team841/Swerve23/Drive/Drivetrain.java b/src/main/java/com/team841/Swerve23/Drive/Drivetrain.java index 22d34a6..a4a9150 100644 --- a/src/main/java/com/team841/Swerve23/Drive/Drivetrain.java +++ b/src/main/java/com/team841/Swerve23/Drive/Drivetrain.java @@ -6,7 +6,5 @@ public class Drivetrain extends SubsystemBase { public Drivetrain() {} @Override - public void periodic() { - - } + public void periodic() {} } diff --git a/src/main/java/com/team841/Swerve23/Robot.java b/src/main/java/com/team841/Swerve23/Robot.java index a4754b0..a08f446 100644 --- a/src/main/java/com/team841/Swerve23/Robot.java +++ b/src/main/java/com/team841/Swerve23/Robot.java @@ -2,7 +2,6 @@ import com.team841.Swerve23.Constants.ConstantsIO; import com.team841.Swerve23.Constants.ConstantsIO.robotStates; - import edu.wpi.first.wpilibj.TimedRobot; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.CommandScheduler; diff --git a/src/main/java/com/team841/Swerve23/RobotContainer.java b/src/main/java/com/team841/Swerve23/RobotContainer.java index 50fedaf..8e7bf10 100644 --- a/src/main/java/com/team841/Swerve23/RobotContainer.java +++ b/src/main/java/com/team841/Swerve23/RobotContainer.java @@ -2,7 +2,6 @@ import com.team841.Swerve23.Constants.SubsystemManifest; import com.team841.Swerve23.Drive.Drivetrain; - import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Commands; diff --git a/src/main/java/com/team841/offseason2023/util/tunableNumber.java b/src/main/java/com/team841/offseason2023/util/tunableNumber.java index 7b9592c..ecc08bb 100644 --- a/src/main/java/com/team841/offseason2023/util/tunableNumber.java +++ b/src/main/java/com/team841/offseason2023/util/tunableNumber.java @@ -1,7 +1,6 @@ package com.team841.offseason2023.util; import com.team841.Swerve23.Constants.ConstantsIO; - import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class tunableNumber {