cli¶
Setup the options for CLI arguments.
-
class cpp_linter.cli.Args(dict=
None, /, **kwargs)[source]¶ A pseudo namespace declaration. Each attribute is initialized with the corresponding CLI arg’s default value.
-
verbosity : bool =
False¶ See
--verbosity.
-
database : str =
''¶ See
--database.
-
tidy_checks : str =
'boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-*,cppcoreguidelines-*'¶ See
--tidy-checks.
-
extensions : List[str] =
['c', 'h', 'C', 'H', 'cpp', 'hpp', 'cc', 'hh', 'c++', 'h++', 'cxx', 'hxx']¶ See
--extensions.
-
repo_root : str =
'.'¶ See
--repo-root.
-
lines_changed_only : int =
0¶ See
--lines-changed-only.
-
files_changed_only : bool =
False¶ See
--files-changed-only.
-
thread_comments : str =
'false'¶ See
--thread-comments.
-
step_summary : bool =
False¶ See
--step-summary.
-
file_annotations : bool =
True¶ See
--file-annotations.
-
extra_arg : List[str] =
[]¶ See
--extra-arg.
-
tidy_review : bool =
False¶ See
--tidy-review.
-
format_review : bool =
False¶ See
--format-review.
-
ignore_tidy : str =
''¶ See
--ignore-tidy.
-
ignore_format : str =
''¶ See
--ignore-format.
-
passive_reviews : bool =
False¶ See
--passive-reviews.
-
verbosity : bool =
- cpp_linter.cli.get_cli_parser() ArgumentParser[source]¶