Skip to content

Commit f4e7c65

Browse files
Add README
1 parent 439043b commit f4e7c65

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Code Climate Sonar-PHP Engine
2+
3+
`codeclimate-sonar-java` is a Code Climate engine that wraps [Sonarlint](http://www.sonarlint.org) in standalone mode.
4+
5+
## Installation
6+
```
7+
make image
8+
```
9+
10+
## Tests
11+
```
12+
make test
13+
```
14+
15+
## Usage
16+
17+
1. If you haven't already, [install the Code Climate CLI](https://github.com/codeclimate/codeclimate).
18+
2. Configure a `.codeclimate.yml` file in your repo.
19+
```yml
20+
engines:
21+
sonar-php:
22+
enabled: true
23+
config:
24+
tests_patterns:
25+
- src/test/**
26+
exclude_paths:
27+
- build/
28+
```
29+
3. Run `codeclimate analyze`.
30+
31+
## Custom configurations
32+
33+
### Severity
34+
Ignore issues with severity below the minimum:
35+
```
36+
engines:
37+
sonar-java:
38+
enabled: true
39+
config:
40+
minimum_severity: critical # default: major
41+
# valid values are: info, minor, major, critical, blocker
42+
```
43+
44+
## Sonar Documentation
45+
46+
http://www.sonarlint.org/commandline
47+
http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
48+
49+
Issue Tracker: http://jira.sonarsource.com/browse/SLCLI
50+
51+
## Copyright
52+
53+
See [LICENSE](LICENSE)

0 commit comments

Comments
 (0)