Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# friendly_sonar

[![Build Status](https://travis-ci.org/luiscruz/friendly_sonar.svg?branch=master)](https://travis-ci.org/luiscruz/friendly_sonar)

Python3 library to statically analyze software using [SonarLint](http://www.sonarlint.org/) and collect data in a Python Object, CSV, or JSON data format.

Website: https://luiscruz.github.io/friendly_sonar/

## Install

1. Download [SonarQube CLI](https://bintray.com/sonarsource/Distribution/org.sonarsource.sonarlint-cli/_latestVersion)

2. A) Add environment variable `$SONARLINT_HOME` with directory of your sonar lint installation:

```
export SONARLINT_HOME='~/sonarlint-cli-2.1.0.566'
```
**OR**

2. B) Add environment variable `$SONARLINT_HOME` with directory of your sonar lint installation:

```
export PATH=~/sonarlint-cli-2.1.0.566/bin:$PATH
```

3. Install Python library

```
$pip install friendly_sonar
```

## Usage

```
import friendly_sonar.lint

# run sonar on current directory
results = friendly_sonar("./")
print results

```

## Contributing

Feel free to create pull requests.
Be sure that your code passes our checkers:

```
$tox -e py36
```
### Tests

Tests are still not being made properly.
So far you can check whether it is working by running:

```
$python -m friendly_sonar.lint
```



Metadata

Release files for friendly-sonar 0.0.1.dev4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for friendly-sonar 0.0.1.dev4
File Interpreter ABI Platform Actions
friendly_sonar-0.0.1.dev4-py3-none-any.whl Python 3 none any Details for friendly_sonar-0.0.1.dev4-py3-none-any.whl

Release files / friendly_sonar-0.0.1.dev4-py3-none-any.whl

Download URL friendly_sonar-0.0.1.dev4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a963f6c10cdca49cac47bf6b194d78caf1c3f36780f8a7733b417d7b11b416a
BLAKE2b-256 checksum
How to use checksums
e8759a5ff736e7cb3852a319ac022b02936a1ada3d0e64ff1571f7e79b2dfe4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for friendly-sonar 0.0.1.dev4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page