Skip to content

Commit

Permalink
Remove possibility to change rule severity
Browse files Browse the repository at this point in the history
Closes #57
  • Loading branch information
wkoot committed Feb 13, 2024
1 parent b65a0ac commit 20213c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL org.opencontainers.image.documentation="https://raw.githubusercontent.com/
LABEL org.opencontainers.image.source="https://raw.githubusercontent.com/ICTU/sonar/master/Dockerfile"
LABEL org.opencontainers.image.vendor="ICTU"
LABEL org.opencontainers.image.title="ICTU SonarQube"
LABEL org.opencontainers.image.description="A SonarQube image containing plugins, profiles and config used at ICTU"
LABEL org.opencontainers.image.description="A SonarQube container image with plugins, profiles and config used at ICTU"

USER root

Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ICTU SonarQube container image

A sonar image containing plugins and quality profiles used at ICTU.
A SonarQube container image with plugins, profiles and config used at ICTU


## Creating a new quality profile
Expand All @@ -17,21 +17,16 @@ Alternatively, the automatic overriding of default profile can be avoided by ens
Add the project code (it will be used as a prefix for the quality profile name) to the environment variable `PROJECT_CODE`.
Add a list of semicolon separated rule ids to be enabled or disabled to the environment variable `PROJECT_RULES`.

Example:
Example to explicitly enable (+) a C# rule and disable (-) a TypeScript rule:

PROJECT_CODE=PROJ1
PROJECT_RULES=+csharpsquid:S104;-ts:S1561

It is also possible to adjust rule parameter values:
It is also possible to adjust individual rule parameter values:

PROJECT_CODE=PROJ1
PROJECT_RULES=+csharpsquid:S110|max=6;-ts:S1561

And change severity:

PROJECT_CODE=PROJ1
PROJECT_RULES=-squid:S4274;+csharpsquid:S110|max=7&severity=INFO;+csharpsquid:S3925&severity=INFO


## Running with PostgreSQL via a docker composition

Expand Down

0 comments on commit 20213c5

Please sign in to comment.