equals215/deepsentinel

View on GitHub
agent/report.go

Summary

Maintainability
A
0 mins
Test Coverage

Function reportUnregisterAgent has 6 return statements (exceeds 4 allowed).
Invalid

func reportUnregisterAgent() error {
    config.Agent.Lock()
    defer config.Agent.Unlock()

    if config.Agent.MachineName == "" {
Severity: Major
Found in agent/report.go - About 40 mins to fix

    Function reportAlive has 6 return statements (exceeds 4 allowed).
    Invalid

    func reportAlive() error {
        config.Agent.Lock()
        defer config.Agent.Unlock()
    
        if config.Agent.MachineName == "" {
    Severity: Major
    Found in agent/report.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status