statick_tool.plugins.tool package¶
Module contents¶
Default tool plugins for statick.
Submodules¶
statick_tool.plugins.tool.bandit_tool_plugin module¶
Apply bandit tool and gather results.
-
class
statick_tool.plugins.tool.bandit_tool_plugin.BanditToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply bandit tool and gather results.
statick_tool.plugins.tool.black_tool_plugin module¶
Apply black tool and gather results.
-
class
statick_tool.plugins.tool.black_tool_plugin.BlackToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply black tool and gather results.
statick_tool.plugins.tool.catkin_lint_tool_plugin module¶
Apply catkin_lint tool and gather results.
-
class
statick_tool.plugins.tool.catkin_lint_tool_plugin.CatkinLintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply catkin_lint tool and gather results.
-
classmethod
check_for_exceptions_has_file(match: Match[str], package: statick_tool.package.Package) → bool[source]¶ Manual exceptions.
-
classmethod
statick_tool.plugins.tool.cccc_tool_plugin module¶
Apply CCCC tool and gather results.
To run the CCCC tool locally (without Statick) one way to do so is:
find . -name *.h -print -o -name *.cpp -print | xargs cccc
That will generate several reports, including HTML. The results can be viewd in a web browser.
-
class
statick_tool.plugins.tool.cccc_tool_plugin.CCCCToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply CCCC tool and gather results.
-
classmethod
convert_name_to_id(name: str) → str[source]¶ Convert result name to configuration name.
The name given in CCCC results is different than the name given in CCCC configuration. This will map the name in the configuration file to the name given in the results.
-
find_issues(config: Dict[Any, Any], results: Dict[Any, Any], src: str) → List[statick_tool.issue.Issue][source]¶ Identify issues by comparing tool results with tool configuration.
-
classmethod
parse_config(config_file: str) → Dict[str, str][source]¶ Parse CCCC configuration file.
Gets warning and error thresholds for all the metrics. An explanation to dump default values to a configuration file is at: http://sarnold.github.io/cccc/CCCC_User_Guide.html#config
cccc –opt_outfile=cccc.opt
-
classmethod
statick_tool.plugins.tool.clang_format_tool_plugin module¶
Apply clang-format tool and gather results.
-
class
statick_tool.plugins.tool.clang_format_tool_plugin.ClangFormatToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply clang-format tool and gather results.
-
check_configuration(clang_format_bin: str) → Optional[bool][source]¶ Check that configuration is configured properly.
-
statick_tool.plugins.tool.clang_tidy_tool_plugin module¶
Apply clang-tidy tool and gather results.
-
class
statick_tool.plugins.tool.clang_tidy_tool_plugin.ClangTidyToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply clang-tidy tool and gather results.
-
classmethod
get_tool_dependencies() → List[str][source]¶ Get a list of tools that must run before this one.
-
classmethod
statick_tool.plugins.tool.cmakelint_tool_plugin module¶
Apply cmakelint tool and gather results.
-
class
statick_tool.plugins.tool.cmakelint_tool_plugin.CMakelintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply cmakelint tool and gather results.
statick_tool.plugins.tool.cppcheck_tool_plugin module¶
Apply cppcheck tool and gather results.
-
class
statick_tool.plugins.tool.cppcheck_tool_plugin.CppcheckToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply cppcheck tool and gather results.
statick_tool.plugins.tool.cpplint_tool_plugin module¶
Apply Cpplint tool and gather results.
-
class
statick_tool.plugins.tool.cpplint_tool_plugin.CpplintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply Cpplint tool and gather results.
statick_tool.plugins.tool.docformatter_tool_plugin module¶
Apply docformatter tool and gather results.
-
class
statick_tool.plugins.tool.docformatter_tool_plugin.DocformatterToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply docformatter tool and gather results.
statick_tool.plugins.tool.do_nothing_tool_plugin module¶
Do nothing, this is primarily useful for testing purposes.
-
class
statick_tool.plugins.tool.do_nothing_tool_plugin.DoNothingToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginDo nothing, this is primarily useful for testing purposes.
statick_tool.plugins.tool.flawfinder_tool_plugin module¶
Apply flawfinder tool and gather results.
-
class
statick_tool.plugins.tool.flawfinder_tool_plugin.FlawfinderToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply flawfinder tool and gather results.
statick_tool.plugins.tool.groovylint_tool_plugin module¶
Apply GroovyLint tool and gather results.
-
class
statick_tool.plugins.tool.groovylint_tool_plugin.GroovyLintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply GroovyLint tool and gather results.
statick_tool.plugins.tool.isort_tool_plugin module¶
Apply isort tool and gather results.
The isort tool will only find if a file has issues with imports. To automatically fix the issues you can run isort <file>.
-
class
statick_tool.plugins.tool.isort_tool_plugin.IsortToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply isort tool and gather results.
statick_tool.plugins.tool.lizard_tool_plugin module¶
Apply lizard tool and gather results.
-
class
statick_tool.plugins.tool.lizard_tool_plugin.LizardToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply Lizard tool and gather results.
Note: The -f/–input_file, -o/–output_file, and -Edumpcomments options are unsupported.
-
parse_tool_output(output: str) → List[statick_tool.issue.Issue][source]¶ Parse tool output and report issues.
-
statick_tool.plugins.tool.make_tool_plugin module¶
Apply make tool and gather results.
-
class
statick_tool.plugins.tool.make_tool_plugin.MakeToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply Make tool and gather results.
-
classmethod
filter_matches(matches: Any, package: statick_tool.package.Package) → Any[source]¶ Filter matches.
-
classmethod
statick_tool.plugins.tool.mypy_tool_plugin module¶
Apply mypy tool and gather results.
-
class
statick_tool.plugins.tool.mypy_tool_plugin.MypyToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply mypy tool and gather results.
statick_tool.plugins.tool.perlcritic_tool_plugin module¶
Apply Perl::Critic tool and gather results.
-
class
statick_tool.plugins.tool.perlcritic_tool_plugin.PerlCriticToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply Perl::Critic tool and gather results.
statick_tool.plugins.tool.pycodestyle_tool_plugin module¶
Apply pycodestyle tool and gather results.
-
class
statick_tool.plugins.tool.pycodestyle_tool_plugin.PycodestyleToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply pycodestyle tool and gather results.
statick_tool.plugins.tool.pydocstyle_tool_plugin module¶
Apply pydocstyle tool and gather results.
-
class
statick_tool.plugins.tool.pydocstyle_tool_plugin.PydocstyleToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply pydocstyle tool and gather results.
statick_tool.plugins.tool.pyflakes_tool_plugin module¶
Apply pyflakes tool and gather results.
-
class
statick_tool.plugins.tool.pyflakes_tool_plugin.PyflakesToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply pyflakes tool and gather results.
statick_tool.plugins.tool.pylint_tool_plugin module¶
Apply pylint tool and gather results.
-
class
statick_tool.plugins.tool.pylint_tool_plugin.PylintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply pylint tool and gather results.
statick_tool.plugins.tool.ruff_tool_plugin module¶
Apply ruff tool and gather results.
-
class
statick_tool.plugins.tool.ruff_tool_plugin.RuffToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply ruff tool and gather results.
statick_tool.plugins.tool.shellcheck_tool_plugin module¶
Apply shellcheck tool and gather results.
The output from the tool is collected in JSON format to facilitate parsing.
-
class
statick_tool.plugins.tool.shellcheck_tool_plugin.ShellcheckToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply shellcheck tool and gather results.
statick_tool.plugins.tool.shellcheck_tool_plugin module¶
Apply shellcheck tool and gather results.
The output from the tool is collected in JSON format to facilitate parsing.
-
class
statick_tool.plugins.tool.shellcheck_tool_plugin.ShellcheckToolPlugin[source] Bases:
statick_tool.tool_plugin.ToolPluginApply shellcheck tool and gather results.
-
gather_args(args: argparse.Namespace) → None[source] Gather arguments.
-
get_name() → str[source] Get name of tool.
-
parse_json_output(output: Any) → List[statick_tool.issue.Issue][source] Parse tool output and report issues.
-
scan(package: statick_tool.package.Package, level: str) → Optional[List[statick_tool.issue.Issue]][source] Run tool and gather output.
-
statick_tool.plugins.tool.spotbugs_tool_plugin module¶
Apply spotbugs tool and gather results.
-
class
statick_tool.plugins.tool.spotbugs_tool_plugin.SpotbugsToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply spotbugs tool and gather results.
-
classmethod
get_tool_dependencies() → List[str][source]¶ Get a list of tools that must run before this one.
-
classmethod
statick_tool.plugins.tool.uncrustify_tool_plugin module¶
Apply uncrustify tool and gather results.
-
class
statick_tool.plugins.tool.uncrustify_tool_plugin.UncrustifyToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply uncrustify tool and gather results.
statick_tool.plugins.tool.xmllint_tool_plugin module¶
Apply xmllint tool and gather results.
-
class
statick_tool.plugins.tool.xmllint_tool_plugin.XmllintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply xmllint tool and gather results.
statick_tool.plugins.tool.yamllint_tool_plugin module¶
Apply yamllint tool and gather results.
-
class
statick_tool.plugins.tool.yamllint_tool_plugin.YamllintToolPlugin[source]¶ Bases:
statick_tool.tool_plugin.ToolPluginApply yamllint tool and gather results.