Skip to content

Commit

Permalink
Add shellcheck classes. (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
limpidsa authored Sep 8, 2024
1 parent e43d896 commit 27a205d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.codety.scanner.analyzer.shellcheck;

import io.codety.common.dto.CodeAnalyzerType;
import io.codety.common.dto.LanguageType;
import io.codety.scanner.analyzer.CodeAnalyzerInterface;
import io.codety.scanner.analyzer.dto.AnalyzerConfigurationDetailDto;
import io.codety.scanner.reporter.dto.CodeAnalysisResultDto;
import io.codety.scanner.service.dto.AnalyzerRequest;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ShellcheckCodeAnalyzer implements CodeAnalyzerInterface {
@Override
public List<CodeAnalysisResultDto> analyzeCode(AnalyzerConfigurationDetailDto runnerConfiguration, AnalyzerRequest request) {
return new ArrayList<>();
}

@Override
public List<CodeAnalysisResultDto> analyzeCode(AnalyzerRequest request) {
return analyzeCode(new AnalyzerConfigurationDetailDto(LanguageType.shell, CodeAnalyzerType.shellcheck), request);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public enum CodeAnalyzerType {
, scalastyle(30)
, rubocop(40)
, stylelint(50)
, shellcheck(60)
;
public final int codeAnalyzerType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class LanguageType {
public static final String typescript = "typescript";
public static final String swift = "swift";
public static final String html = "html";
public static final String shell = "shell";
public static final String modelica = "modelica";
public static final String plsql = "plsql";
public static final String iac = "iac";
Expand Down

0 comments on commit 27a205d

Please sign in to comment.