SonarOpenCommunity / sonar-cxx

Line too long FLK-E501
Style
Minor
6 months ago3 years old
line too long (97 > 88 characters)
617    print("""Usage: %s rules <path to clang-tidy source directory with RST files>
618       %s rules_fixurls <path to clang-tidy source directory with RST files>
619       %s diagnostics <path to the JSON diagnostics descriptions>
620       see the source code for inline documentation""" % (script_name, script_name, script_name))621    sys.exit(1)
622
623
line too long (146 > 88 characters)
514    html_lines.append("</ul>")
515    html_lines.append("<h2>References</h2>")
516    anchor_prefix = "r" if all_diagnostics_are_remarks else "w"
517    html_lines.append('<p><a href="http://clang.llvm.org/docs/DiagnosticsReference.html#%s%s" target="_blank">Diagnostic flags in Clang</a></p>' %518                      (anchor_prefix, diag_group_name))
519    return "\n".join(html_lines)
520
line too long (96 > 88 characters)
496        if SEVERITY[diag_severity]["weight"] >= SEVERITY[max_severity]["weight"]:
497            max_severity = diag_severity
498
499    return DIAG_CLASS[max_class]["sonarqube_type"], SEVERITY[max_severity]["sonarqube_severity"]500
501
502def generate_description(diag_group_name, diagnostics):
line too long (101 > 88 characters)
469              "CLASS_REMARK": {"weight": 0, "sonarqube_type": "CODE_SMELL", "printable": "remark"},
470              "CLASS_WARNING": {"weight": 0, "sonarqube_type": "CODE_SMELL", "printable": "warning"},
471              "CLASS_ERROR": {"weight": 1, "sonarqube_type": "BUG", "printable": "error"},
472              "CLASS_FATAL_ERROR": {"weight": 1, "sonarqube_type": "BUG", "printable": "fatal error"}473              }
474
475# see Severity in JSON
line too long (90 > 88 characters)
468              "CLASS_NOTE": {"weight": 0, "sonarqube_type": "CODE_SMELL", "printable": "note"},
469              "CLASS_REMARK": {"weight": 0, "sonarqube_type": "CODE_SMELL", "printable": "remark"},
470              "CLASS_WARNING": {"weight": 0, "sonarqube_type": "CODE_SMELL", "printable": "warning"},
471              "CLASS_ERROR": {"weight": 1, "sonarqube_type": "BUG", "printable": "error"},472              "CLASS_FATAL_ERROR": {"weight": 1, "sonarqube_type": "BUG", "printable": "fatal error"}
473              }
474