Skip to content

Commit

Permalink
doc: Update the example rule in readme to S1132
Browse files Browse the repository at this point in the history
  • Loading branch information
khesoem authored Oct 23, 2022
1 parent 743ab7f commit 73ac9bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mvn se.kth.castor:sorald:repair -DruleKey=<ruleKey>
> Note: Sorald `maven-plugin` is still in rudimentary stages. We have added two goals to it - `mine` and `repair`. They
> both are analogous to the CLI tool. However, not all parameters are supported yet. We are working on adding more.
For example, the following commands repair violations of `S1118` in [SonarSource/sonar-scanner-cli@5c518d6](https://github.com/SonarSource/sonar-scanner-cli/commit/5c518d6a6f1a30bed62836790c1233b3f2e763fd).
For example, the following commands repair violations of `S1132` in [SonarSource/sonar-scanner-cli@5c518d6](https://github.com/SonarSource/sonar-scanner-cli/commit/5c518d6a6f1a30bed62836790c1233b3f2e763fd).

```bash
# Cloning and moving into the project
Expand All @@ -45,7 +45,7 @@ cd sonar-scanner-cli/
git checkout 5c518d6a

# Running Sorald
mvn se.kth.castor:sorald:repair -DruleKey=S1118
mvn se.kth.castor:sorald:repair -DruleKey=S1132

# Checking the result
git diff
Expand Down

0 comments on commit 73ac9bb

Please sign in to comment.