hunterlong/statup

View on GitHub
types/incidents/samples.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function Samples has 73 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func Samples() error {
    log.Infoln("Inserting Sample Incidents...")
    incident1 := &Incident{
        Title:       "Github Issues",
        Description: "There are new features for Statping, if you have any issues please visit the Github Repo.",
Severity: Minor
Found in types/incidents/samples.go - About 1 hr to fix

    Function Samples has 9 return statements (exceeds 4 allowed).
    Open

    func Samples() error {
        log.Infoln("Inserting Sample Incidents...")
        incident1 := &Incident{
            Title:       "Github Issues",
            Description: "There are new features for Statping, if you have any issues please visit the Github Repo.",
    Severity: Major
    Found in types/incidents/samples.go - About 55 mins to fix

      There are no issues that match your filters.

      Category
      Status