Skip to content

Commit

Permalink
fix_golangcilint_empty_result_error
Browse files Browse the repository at this point in the history
  • Loading branch information
random1223 committed Aug 28, 2024
1 parent e53f3ad commit 3575cff
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public List<CodeAnalysisResultDto> analyzeCode(AnalyzerConfigurationDetailDto ru

String errorOutput = runtimeExecResult.getErrorOutput();
String successOutput = runtimeExecResult.getSuccessOutput();

if(errorOutput!=null && errorOutput.length() > 0){
CodetyConsoleLogger.debug("Error output from golangci-lint " + errorOutput);
}
if(successOutput == null || successOutput.isEmpty()){
return list;
}
Expand Down

0 comments on commit 3575cff

Please sign in to comment.