Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code refactoring for go analyzer. #62

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion analyzer-golangcilint/doc/doc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

Find al the go.mod files
Find all the go.mod files

golangci-lint run ./foo./... ./bar/... ./qux/...
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public List<CodeAnalysisResultDto> analyzeCode(AnalyzerConfigurationDetailDto ru

String[] command = cmdList.toArray(new String[0]);


RuntimeExecUtil.RuntimeExecResult runtimeExecResult = RuntimeExecUtil.exec(command, file.getAbsolutePath(), 60, false, null);

String errorOutput = runtimeExecResult.getErrorOutput();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import io.codety.scanner.analyzer.golangcilint.dto.GolangcilintPos;
import io.codety.scanner.analyzer.golangcilint.dto.GolangcilintRoot;
import io.codety.scanner.reporter.dto.CodeAnalysisIssueDto;
import io.codety.scanner.util.CodetyConsoleLogger;
import io.codety.scanner.util.JsonFactoryUtil;

import java.util.ArrayList;
Expand Down Expand Up @@ -45,7 +44,6 @@ public static List<CodeAnalysisIssueDto> convertResult(String errorOutput, Strin
throw new RuntimeException(e);
}


return codeAnalysisIssueDtos;
}
}