Skip to content

Commit

Permalink
it compiles on my computer
Browse files Browse the repository at this point in the history
  • Loading branch information
Feuermagier committed Jul 13, 2024
1 parent 83c47f8 commit dfedab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private void execute(
);

String result = "[%s]: %s - Found problem in '%s'%n".formatted(
problem.getProblemType(),
problem.getType(),
problem.getCheckName(),
position.toString()
);
Expand Down Expand Up @@ -253,7 +253,7 @@ private void printProblemsAsJson(Collection<? extends AbstractProblem> problems,
String jsonOutput = mapper.writeValueAsString(problems.stream().map(problem -> {
AbstractCodePosition position = problem.getPosition();
return new Annotation(
problem.getProblemType(),
problem.getType(),
linter.translateMessage(problem.getExplanation()),
position.path().toString().replace("\\", "/"),
position.startLine(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package de.firemage.autograder.cmd.output;

import de.firemage.autograder.core.ProblemType;

public record Annotation(ProblemType type, String message, String file, int startLine, int endLine) {
public record Annotation(String type, String message, String file, int startLine, int endLine) {
}

0 comments on commit dfedab5

Please sign in to comment.