Skip to content

Commit

Permalink
Adding reporting plugins section to readme. (sscpac#417)
Browse files Browse the repository at this point in the history
Fixing docstring in code_climage_reporting_plugin.
  • Loading branch information
xydesa authored May 31, 2022
1 parent 1d7ebb8 commit fb6d8ca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Statick is a plugin-based tool with an explicit goal to support external, option
* [Existing Plugins](#existing-plugins)
* [Discovery Plugins](#discovery-plugins)
* [Tool Plugins](#tool-plugins)
* [Reporting Plugins](#reporting-plugins)
* [External Plugins](#external-plugins)
* [Customization](#customization)
* [User Paths](#user-paths)
Expand Down Expand Up @@ -396,6 +397,16 @@ Tool | About
[xmllint][xmllint] | Lint XML files.
[yamllint][yamllint] | A linter for YAML files.

### Reporting Plugins

Reporter | About
:--- | :----
[code_climate][code-climate] | Output issues in valid Code Climate JSON (or optionally strictly [Gitlab][gitlab-cc] compatible) to stdout or as a file.
do_nothing | Does nothing.
[json] | Output issues as a JSON list either to stdout or as a file.
print_to_console | Print the issues to stdout.
[write_jenkins_warnings_ng][jenkins-warnings-ng] | Write Statick results to Jenkins Warnings-NG plugin json-log compatible output.

### External Plugins

Known external Statick plugins.
Expand Down Expand Up @@ -750,15 +761,19 @@ His commits were scrubbed from git history upon the initial public release.
[clang-format]: https://clang.llvm.org/docs/ClangFormat.html
[clang-tidy]: http://clang.llvm.org/extra/clang-tidy/
[cmakelint]: https://cmake-format.readthedocs.io/en/latest/cmake-lint.html
[code-climate]: https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#data-types
[cppcheck]: https://github.com/danmar/cppcheck/
[cpplint]: https://github.com/cpplint/cpplint
[docformatter]: https://github.com/myint/docformatter
[flawfinder]: https://dwheeler.com/flawfinder/
[npm-groovy-lint]: https://nvuillam.github.io/npm-groovy-lint/
[gitlab-cc]: https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html#implementing-a-custom-tool
[jenkins-warnings-ng]: https://plugins.jenkins.io/warnings-ng/
[json]: https://www.json.org/json-en.html
[lizard]: https://github.com/terryyin/lizard
[logging]: https://docs.python.org/3/howto/logging.html
[make]: https://gcc.gnu.org/onlinedocs/libstdc++/index.html
[mypy]: https://github.com/python/mypy
[npm-groovy-lint]: https://nvuillam.github.io/npm-groovy-lint/
[perlcritic]: http://perlcritic.com/
[pip-git-install]: https://pip.pypa.io/en/stable/reference/pip_install/#git
[pip-install-git-repo-branch]: https://stackoverflow.com/questions/20101834/pip-install-from-git-repo-branch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Prints the Statick reports out to the terminal or file in JSON format."""
"""Prints the Statick reports out to the terminal or file in Code Climate JSON."""
import hashlib
import json
import logging
Expand All @@ -12,7 +12,7 @@


class CodeClimateReportingPlugin(ReportingPlugin):
"""Prints the Statick reports out to the terminal or file in JSON format."""
"""Prints the Statick reports out to the terminal or file in Code Climate JSON."""

def get_name(self) -> str:
"""Return the plugin name."""
Expand Down

0 comments on commit fb6d8ca

Please sign in to comment.