Skip to content

Commit

Permalink
Update cloverage, lein-nvd and eastwood
Browse files Browse the repository at this point in the history
  • Loading branch information
fsantiag committed Mar 30, 2019
1 parent b7156d7 commit db85f4a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ In order to install SonarClojure:
1. Change your ***project.clj*** file and add the required plugins:

```clojure
:plugins [[jonase/eastwood "0.2.5"]
[jonase/kibit "0.1.6"]
:plugins [[jonase/eastwood "0.3.5"]
[lein-kibit "0.1.6"]
[lein-ancient "0.6.15"]
[lein-cloverage "1.0.13"]
[lein-nvd "0.6.0"]]
[lein-cloverage "1.1.1"]
[lein-nvd "1.0.0"]]
```

> Note: Please make sure the plugins above are setup correctly for your project. A good way to test this is to
execute each one of them individually on your project. Once they are running fine, SonarClojure should be able to
parse their reports.

2. Create a ***sonar-project.properties*** file in the root folder of your app:

```properties
Expand Down
26 changes: 26 additions & 0 deletions src/main/resources/clojure/rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
</rule>
<rule>
<key>implicit-dependencies</key>
<name>implicit-dependencies</name>
<internalKey>deprecations</internalKey>
<description>This is an example of rule defined thru the XML.
</description>
<severity>BLOCKER</severity>
<cardinality>SINGLE</cardinality>
<status>READY</status>
<type>CODE_SMELL</type>
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
</rule>
<rule>
<key>keyword-typos</key>
<name>keyword-typos</name>
Expand Down Expand Up @@ -248,6 +261,19 @@
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
</rule>
<rule>
<key>unused-ret-vals-in-try</key>
<name>unused-ret-vals-in-try</name>
<internalKey>unused-ret-vals</internalKey>
<description>This is an example of rule defined thru the XML.
</description>
<severity>BLOCKER</severity>
<cardinality>SINGLE</cardinality>
<status>READY</status>
<type>CODE_SMELL</type>
<remediationFunction>CONSTANT_ISSUE</remediationFunction>
<remediationFunctionBaseEffort>2min</remediationFunctionBaseEffort>
</rule>
<rule>
<key>wrong-arity</key>
<name>wrong-arity</name>
Expand Down

0 comments on commit db85f4a

Please sign in to comment.