Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
1 commit merged into
masterSonarSource/sonar-java:masterfrom
SONARJAVA-2466SonarSource/sonar-java:SONARJAVA-2466Copy head branch name to clipboard
Oct 31, 2017
Merged

SONARJAVA-2466 introduce sonarpedia.json and update rules metadata#1765
1 commit merged into
masterSonarSource/sonar-java:masterfrom
SONARJAVA-2466SonarSource/sonar-java:SONARJAVA-2466Copy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Oct 30, 2017

Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread sonarpedia.json
{
"rules-metadata-path": "./java-checks/src/main/resources/org/sonar/l10n/java/rules/squid",
"languages": [
"JAVA"

Copy link
Copy Markdown
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
Copy Markdown
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

Copy link
Copy Markdown

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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.