asteris-llc/converge

View on GitHub
resource/systemd/unit/signals.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function ParseSignalByName has 69 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func ParseSignalByName(s string) (Signal, error) {
    s = strings.ToUpper(s)
    if !strings.HasPrefix(s, "SIG") {
        s = "SIG" + s
    }
Severity: Minor
Found in resource/systemd/unit/signals.go - About 1 hr to fix

    Method Signal.String has 65 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (s Signal) String() string {
        switch s {
        case SIGHUP:
            return "SIGHUP"
        case SIGINT:
    Severity: Minor
    Found in resource/systemd/unit/signals.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status