Skip to content

Commit db85f4a

Browse files
committed
Update cloverage, lein-nvd and eastwood
1 parent b7156d7 commit db85f4a

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ In order to install SonarClojure:
3030
1. Change your ***project.clj*** file and add the required plugins:
3131

3232
```clojure
33-
:plugins [[jonase/eastwood "0.2.5"]
34-
[jonase/kibit "0.1.6"]
33+
:plugins [[jonase/eastwood "0.3.5"]
34+
[lein-kibit "0.1.6"]
3535
[lein-ancient "0.6.15"]
36-
[lein-cloverage "1.0.13"]
37-
[lein-nvd "0.6.0"]]
36+
[lein-cloverage "1.1.1"]
37+
[lein-nvd "1.0.0"]]
3838
```
3939

40+
> Note: Please make sure the plugins above are setup correctly for your project. A good way to test this is to
41+
execute each one of them individually on your project. Once they are running fine, SonarClojure should be able to
42+
parse their reports.
43+
4044
2. Create a ***sonar-project.properties*** file in the root folder of your app:
4145

4246
```properties

src/main/resources/clojure/rules.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@
5353
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
5454
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
5555
</rule>
56+
<rule>
57+
<key>implicit-dependencies</key>
58+
<name>implicit-dependencies</name>
59+
<internalKey>deprecations</internalKey>
60+
<description>This is an example of rule defined thru the XML.
61+
</description>
62+
<severity>BLOCKER</severity>
63+
<cardinality>SINGLE</cardinality>
64+
<status>READY</status>
65+
<type>CODE_SMELL</type>
66+
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
67+
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
68+
</rule>
5669
<rule>
5770
<key>keyword-typos</key>
5871
<name>keyword-typos</name>
@@ -248,6 +261,19 @@
248261
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
249262
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
250263
</rule>
264+
<rule>
265+
<key>unused-ret-vals-in-try</key>
266+
<name>unused-ret-vals-in-try</name>
267+
<internalKey>unused-ret-vals</internalKey>
268+
<description>This is an example of rule defined thru the XML.
269+
</description>
270+
<severity>BLOCKER</severity>
271+
<cardinality>SINGLE</cardinality>
272+
<status>READY</status>
273+
<type>CODE_SMELL</type>
274+
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
275+
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
276+
</rule>
251277
<rule>
252278
<key>wrong-arity</key>
253279
<name>wrong-arity</name>

0 commit comments

Comments
 (0)