Skip to main content

HTML report generator from prospector static analyzer tool output.

Project description

prospector-html

HTML report generator from prospector static analyzer tool JSON output.

Synopsis

pip install prospector
pip install prospector2html
cd <python-project-sources-dir>
prospector --no-style-warnings --strictness medium --output-format json > prospector_report.json
prospector-html --input prospector_report.json
cat report.html

Message filtering

Sometimes it is necessary to filter prospector result by content of the message, rather than filter-out the whole error class by it's suppression. For example prospector would always complains at usage of _meta member in Django projects.

In this case one could fileter such messages by specifing it in prospector-html config file. .prospector-html.yaml by default. See details in the source of sample config or use following example:

# cat .prospector-html.yaml
filter:
  message:
      # Filter by exact match
    - "Message to filter"
    - Oter message to filter
  message_re:
      # Regexps to filter
    - 'Exactly one space required after comma.*'
    - 'Exactly one space required before assignment.*'

TODO

  • ???.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prospector2html-1.0.6.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

prospector2html-1.0.6-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page