Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONARJAVA-2466 introduce sonarpedia.json and update rules metadata #1765

Merged
merged 1 commit into from
Oct 31, 2017

Conversation

m-g-sonar
Copy link

No description provided.

@@ -6,6 +6,4 @@
<li> forbid access to <code>java.util.Vector</code>, <code>java.util.Hashtable</code> and <code>java.util.Enumeration</code> from any classes </li>
<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.

👍

@m-g-sonar m-g-sonar merged commit 572454b into master Oct 31, 2017
@m-g-sonar m-g-sonar deleted the SONARJAVA-2466 branch October 31, 2017 13:17
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.

4 participants