resource/systemd/unit/signals.go
Function ParseSignalByName
has 69 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func ParseSignalByName(s string) (Signal, error) {
s = strings.ToUpper(s)
if !strings.HasPrefix(s, "SIG") {
s = "SIG" + s
}
Method Signal.String
has 65 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s Signal) String() string {
switch s {
case SIGHUP:
return "SIGHUP"
case SIGINT: