github.com/QuangTung97/bigcache@v0.1.0/revive.toml (about)

     1  severity = "error"
     2  confidence = 0.8
     3  
     4  # Sets the error code for failures with severity "error"
     5  errorCode = 2
     6  # Sets the error code for failures with severity "warning"
     7  warningCode = 1
     8  
     9  # Enable all available rules
    10  enableAllRules = true
    11  
    12  # Disabled rules
    13  [rule.file-header]
    14      Disabled = true
    15  [rule.max-public-structs]
    16      Disabled = true
    17  [rule.function-length]
    18      Disabled = true
    19  [rule.add-constant]
    20      Disabled = true
    21  
    22  # Rule tuning
    23  [rule.argument-limit]
    24      Arguments = [6]
    25  [rule.cyclomatic]
    26      Arguments = [10]
    27  [rule.cognitive-complexity]
    28      Arguments = [14]
    29  [rule.function-result-limit]
    30      Arguments = [4]
    31  [rule.unhandled-error]
    32      Arguments = ["fmt.Printf", "fmt.Println"]
    33  [rule.line-length-limit]
    34      Arguments = [120]