https://github.com/codeclimate/codeclimate-sonar-c
https://github.com/codeclimate/codeclimate-sonar-c
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeclimate/codeclimate-sonar-c
- Owner: codeclimate
- License: agpl-3.0
- Created: 2017-11-03T19:02:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T19:53:01.000Z (almost 8 years ago)
- Last Synced: 2025-01-11T18:18:44.820Z (about 1 year ago)
- Language: Java
- Size: 5.64 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Climate Sonar-PHP Engine
[](https://circleci.com/gh/codeclimate/codeclimate-sonar-php)
[](https://codeclimate.com/github/codeclimate/codeclimate-sonar-php/maintainability)
[](https://codeclimate.com/github/codeclimate/codeclimate-sonar-php/test_coverage)
`codeclimate-sonar-php` is a Code Climate engine that wraps [Sonarlint](http://www.sonarlint.org) in standalone mode.
## Installation
```
make image
```
## Tests
```
make test
```
## Usage
1. If you haven't already, [install the Code Climate CLI](https://github.com/codeclimate/codeclimate).
2. Configure a `.codeclimate.yml` file in your repo.
```yml
engines:
sonar-php:
enabled: true
config:
tests_patterns:
- src/test/**
exclude_paths:
- build/
```
3. Run `codeclimate analyze`.
## Custom configurations
### Severity
Ignore issues with severity below the minimum:
```
engines:
sonar-php:
enabled: true
config:
minimum_severity: critical # default: major
# valid values are: info, minor, major, critical, blocker
```
## Sonar Documentation
http://www.sonarlint.org/commandline
http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
Issue Tracker: http://jira.sonarsource.com/browse/SLCLI
## Copyright
This engine is developed by Code Climate using [SonarLint](http://www.sonarlint.org/commandline), it is not endorsed by SonarSoruce.
See [LICENSE](LICENSE)