Skip to content

Commit

Permalink
sonarqube still mad about this
Browse files Browse the repository at this point in the history
  • Loading branch information
GearBoxFox committed Jan 20, 2024
1 parent 416d81d commit 79c20aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ public void robotInit() {
Logger.recordMetadata("GitSHA", BuildConstants.GIT_SHA);
Logger.recordMetadata("GitDate", BuildConstants.GIT_DATE);
Logger.recordMetadata("GitBranch", BuildConstants.GIT_BRANCH);
String gitDirty = "GitDirty";
switch (BuildConstants.DIRTY) {
case 0:
Logger.recordMetadata("GitDirty", "All changes committed");
Logger.recordMetadata(gitDirty, "All changes committed");
break;
case 1:
Logger.recordMetadata("GitDirty", "Uncomitted changes");
Logger.recordMetadata(gitDirty, "Uncomitted changes");
break;
default:
Logger.recordMetadata("GitDirty", "Unknown");
Logger.recordMetadata(gitDirty, "Unknown");
break;
}

Expand Down

0 comments on commit 79c20aa

Please sign in to comment.