|
@@ -8,7 +8,7 @@ violate some of our best practices and they are not found in the optional
|
|
|
exceptions file, then log a problem about them.
|
|
|
|
|
|
We currently do metrics about file size, function size and number of includes,
|
|
|
-for C files and headers.
|
|
|
+for C source files and headers.
|
|
|
|
|
|
practracker.py should be run with its second argument pointing to the Tor
|
|
|
top-level source directory like this:
|
|
@@ -144,10 +144,10 @@ HEADER="""\
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
- or an H file with more than {MAX_H_INCLUDE_COUNT}
|
|
|
+
|
|
|
+ or a .h file with more than {MAX_H_INCLUDE_COUNT}
|
|
|
|
|
|
|
|
|
|
|
@@ -189,13 +189,13 @@ def main(argv):
|
|
|
parser.add_argument("--terse", action="store_true",
|
|
|
help="Do not emit helpful instructions.")
|
|
|
parser.add_argument("--max-h-file-size", default=MAX_H_FILE_SIZE,
|
|
|
- help="Maximum lines per .H file")
|
|
|
+ help="Maximum lines per .h file")
|
|
|
parser.add_argument("--max-h-include-count", default=MAX_H_INCLUDE_COUNT,
|
|
|
- help="Maximum includes per .H file")
|
|
|
+ help="Maximum includes per .h file")
|
|
|
parser.add_argument("--max-file-size", default=MAX_FILE_SIZE,
|
|
|
- help="Maximum lines per C file")
|
|
|
+ help="Maximum lines per .c file")
|
|
|
parser.add_argument("--max-include-count", default=MAX_INCLUDE_COUNT,
|
|
|
- help="Maximum includes per C file")
|
|
|
+ help="Maximum includes per .c file")
|
|
|
parser.add_argument("--max-function-size", default=MAX_FUNCTION_SIZE,
|
|
|
help="Maximum lines per function")
|
|
|
parser.add_argument("--max-dependency-violations", default=MAX_DEP_VIOLATIONS,
|