style: format code with Ktlint #13
9 new alerts
New alerts in code changed by this pull request
- 9 warnings
See annotations below for details.
Annotations
Check warning on line 64 in src/main/java/frc/robot/subsystems/drive/CommandSwerveDrivetrain.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 80 in src/main/java/frc/robot/subsystems/drive/CommandSwerveDrivetrain.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 109 in src/main/java/frc/robot/subsystems/drive/CommandSwerveDrivetrain.kt
Code scanning / detekt
Line detected that is longer than the defined maximum line length in the code style. Warning
Check warning on line 217 in src/main/java/frc/robot/subsystems/drive/CommandSwerveDrivetrain.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 218 in src/main/java/frc/robot/subsystems/drive/CommandSwerveDrivetrain.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 226 in src/main/java/frc/robot/subsystems/vision/BetterVisionSubsystem.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 233 in src/main/java/frc/robot/subsystems/vision/BetterVisionSubsystem.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 282 in src/main/java/frc/robot/subsystems/vision/BetterVisionSubsystem.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
Check warning on line 289 in src/main/java/frc/robot/subsystems/vision/BetterVisionSubsystem.kt
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning