cpplint.py filter settings

cpplint.py のフィルタ




./cpplint.py --filter=-build/include,-whitespace/line_length,-readability/streams $*


Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]


        <file> [file] ...

  The style guidelines this tries to follow are those in


  Every problem is given a confidence score from 1-5, with 5 meaning we are

  certain of the problem, and 1 meaning it could be a legitimate construct.

  This will miss some errors, and is not a substitute for a code review.

  To suppress false-positive errors of a certain category, add a

  'NOLINT(category)' comment to the line.  NOLINT or NOLINT(*)

  suppresses errors of all categories on that line.

  The files passed in will be linted; at least one file must be provided.

  Linted extensions are .cc, .cpp, and .h.  Other file types will be ignored.



      By default, the output is formatted to ease emacs parsing.  Visual Studio

      compatible output (vs7) may also be used.  Other formats are unsupported.


      Specify a number 0-5 to restrict errors to certain verbosity levels.


      Specify a comma-separated list of category-filters to apply: only

      error messages whose category names pass the filters will be printed.

      (Category names are printed with the message and look like

      "[whitespace/indent]".)  Filters are evaluated left to right.

      "-FOO" and "FOO" means "do not print categories that start with FOO".

      "+FOO" means "do print categories that start with FOO".

      Examples: --filter=-whitespace,+whitespace/braces



      To see a list of all the categories used in cpplint, pass no arg:



      The total number of errors found is always printed. If

      'toplevel' is provided, then the count of errors in each of

      the top-level categories like 'build' and 'whitespace' will

      also be printed. If 'detailed' is provided, then a count

      is provided for each category like 'build/class'.

0 件のコメント: