Skip to content

Commit

Permalink
#93: changed rules priorities and removed one (#103)
Browse files Browse the repository at this point in the history
Added missing negation of method severity.isEmpty()
  • Loading branch information
RSOKOLSK committed Nov 12, 2020
1 parent 2a58998 commit 1ee05b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Expand Up @@ -99,7 +99,7 @@ public void define(Context context) {

if (!(FORBIDDEN_REPO_KEYS.contains(repoKey) || repoKey == null || ruleKey == null)) {
currentRule = devonfwJava.activateRule(repoKey, ruleKey);
if (severity.isEmpty()) {
if (!severity.isEmpty()) {
currentRule.overrideSeverity(severity);
}
}
Expand Down
Expand Up @@ -8777,13 +8777,6 @@
<priority>CRITICAL</priority>
<parameters/>
</rule>
<rule>
<repositoryKey>java</repositoryKey>
<key>S2063</key>
<type>CODE_SMELL</type>
<priority>CRITICAL</priority>
<parameters/>
</rule>
<rule>
<repositoryKey>java</repositoryKey>
<key>S2065</key>
Expand Down Expand Up @@ -9668,7 +9661,7 @@
<repositoryKey>java</repositoryKey>
<key>S2699</key>
<type>CODE_SMELL</type>
<priority>BLOCKER</priority>
<priority>INFO</priority>
<parameters/>
</rule>
<rule>
Expand Down Expand Up @@ -11367,4 +11360,4 @@
<parameters/>
</rule>
</rules>
</profile>
</profile>

0 comments on commit 1ee05b6

Please sign in to comment.