Skip to main content

Sonar Code Diff is used to run a diff between a test code base and known code base

Project description

Sonar Code Diff Plugin

https://img.shields.io/pypi/v/sonar_code_diff.svg Documentation Status

Sonar Code Diff is used to run a diff between a test code base and known code base

Features

  • This is used to scan code that has been copied from a third party and you can’t guarantee that there haven’t been any changes. Run this scanner and point it to both the directory you are scanning and a copy of the original verified source. This will generate a report that can be imported directly into SonarQube.

In order to use, run a command like the following before running the sonar scanner:

$ sonar-code-diff diff --report_file=./.sonar-code-diff-reports/code.report ./components/Package/src /opt/verified_source/Package/src
$ sonar-scanner  -Dsonar.externalIssuesReportPaths=.sonar-code-diff-reports/code.report

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2022-06-01)

  • First release on PyPI.

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

sonar_code_diff-0.5.0.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

sonar_code_diff-0.5.0-py2.py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 2 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