SUSE/saptune

View on GitHub
actions/table.go

Summary

Maintainability
A
2 hrs
Test Coverage
B
83%

Function PrintNoteFields has 66 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func PrintNoteFields(writer io.Writer, header string, noteComparisons map[string]map[string]note.FieldComparison, printComparison bool, result *system.JPNotes) {
    // initialise
    colFormat := ""
    colCompliant := ""
    printHead := ""
Severity: Minor
Found in actions/table.go - About 1 hr to fix

    Function PrintNoteFields has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func PrintNoteFields(writer io.Writer, header string, noteComparisons map[string]map[string]note.FieldComparison, printComparison bool, result *system.JPNotes) {
    Severity: Minor
    Found in actions/table.go - About 35 mins to fix

      Function printTableFooter has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func printTableFooter(writer io.Writer, header string, footnote []string, reminder map[string]string, noteReminder *[]system.JPNotesRemind) {
      Severity: Minor
      Found in actions/table.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status