Skip to main content

Python3 library to statically analyze software using SonarLint and collect data in a Python Object, CSV, or JSON data format

Project description

# 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
```



Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

friendly_sonar-0.0.1.dev2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file friendly_sonar-0.0.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for friendly_sonar-0.0.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 d05ab8b3de1211c48b3a78f85dcd8a2f9b1d0aa6bd5d8a91cf4bfe0b4af73759
MD5 d67dc831215ebcc24d8d2e071c21ebed
BLAKE2b-256 ba86f55f945eb893722b9958c556ed39650bf003cadd19d83b47a59933913a3f

See more details on using hashes here.

Supported by

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