diff --git a/cmd/cmd_test.go b/cmd/cmd_test.go index 0d599553..4281fb02 100644 --- a/cmd/cmd_test.go +++ b/cmd/cmd_test.go @@ -53,34 +53,6 @@ func createProject(t *testing.T, name string) string { return location } -func createNativeProject(t *testing.T, name string) string { - home, err := os.UserHomeDir() - if err != nil { - t.Fatal(err) - } - location := filepath.Join(home, ".qodana_scan_", name) - err = gitClone("https://github.com/hybloid/BadRulesProject", location) - if err != nil { - t.Fatal(err) - } - return location -} - -func gitClone(repoURL, directory string) error { - if _, err := os.Stat(directory); !os.IsNotExist(err) { - err = os.RemoveAll(directory) - if err != nil { - return err - } - } - cmd := exec.Command("git", "clone", repoURL, directory) - err := cmd.Run() - if err != nil { - return err - } - return nil -} - // TestVersion verifies that the version command returns the correct version func TestVersion(t *testing.T) { b := bytes.NewBufferString("") diff --git a/core/ide.go b/core/ide.go index 79091674..6196667b 100644 --- a/core/ide.go +++ b/core/ide.go @@ -280,31 +280,6 @@ func toQodanaCode(baseProduct string) string { } } -func scriptToProductCode(scriptName string) string { - switch scriptName { - case idea: - return platform.QDJVM - case phpStorm: - return platform.QDPHP - case webStorm: - return platform.QDJS - case rider: - return platform.QDNET - case pyCharm: - return platform.QDPY - case rubyMine: - return platform.QDRUBY - case goLand: - return platform.QDGO - case rustRover: - return platform.QDRST - case clion: - return platform.QDCPP - default: - return "QD" - } -} - func findIde(dir string) string { for _, element := range supportedIdes { if _, err := os.Stat(filepath.Join(dir, fmt.Sprintf("%s%s", element, getScriptSuffix()))); err == nil {