asteris-llc/converge

View on GitHub
resource/shell/preparer.go

Summary

Maintainability
A
50 mins
Test Coverage

Function checkSyntax has 8 return statements (exceeds 4 allowed).
Open

func checkSyntax(interpreter string, flags []string, script string) error {
    if interpreter == "" {
        interpreter = defaultInterpreter
        if len(flags) > 0 {
            return errors.New("custom syntax check_flags given without an interpreter")
Severity: Major
Found in resource/shell/preparer.go - About 50 mins to fix

    TODO found
    Open

                // TODO: add ID in here somehow
    Severity: Minor
    Found in resource/shell/preparer.go by fixme

    There are no issues that match your filters.

    Category
    Status