Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 30, 2017

No description provided.

<li> forbid access to <code>java.sql.**</code> from <code>**.ui.**</code> and <code>**.web.**</code> classes </li>
</ul>
<h2>Deprecated</h2>
<p>This rule is deprecated, and will eventually be removed.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this ? rule is actually deprecated : https://jira.sonarsource.com/browse/RSPEC-1212

{
"rules-metadata-path": "./java-checks/src/main/resources/org/sonar/l10n/java/rules/squid",
"languages": [
"JAVA"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am surprised by the case of the language in this file cc @erichirlemann

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean that we have nowhere the java language used in uppercase. The langage key is "java" as defined per https://github.com/SonarSource/sonar-java/blob/master/sonar-java-plugin/src/main/java/org/sonar/plugins/java/Java.java#L39

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This key comes from rule-api instead.

@@ -1 +0,0 @@
{"name":"Sonar security way","ruleKeys":[]}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ghost ghost force-pushed the SONARJAVA-2466 branch from 942528b to d1c516e Compare October 31, 2017 09:32
@ghost ghost merged commit 572454b into master Oct 31, 2017
@ghost ghost deleted the SONARJAVA-2466 branch October 31, 2017 13:17
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants