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-3173 Update metadata#2630

Merged
alban-auzeill merged 2 commits into
masterSonarSource/sonar-java:masterfrom
SONARJAVA-3173SonarSource/sonar-java:SONARJAVA-3173Copy head branch name to clipboard
Aug 2, 2019
Merged

SONARJAVA-3173 Update metadata#2630
alban-auzeill merged 2 commits into
masterSonarSource/sonar-java:masterfrom
SONARJAVA-3173SonarSource/sonar-java:SONARJAVA-3173Copy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Jul 31, 2019

Copy link
Copy Markdown

No description provided.

<pre>
if ( (myFirstCondition() || mySecondCondition()) &amp;&amp; myLastCondition()) { ... }
</pre>
<h2>Exceptions</h2>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Handled by SONARJAVA-3133

</ul>
<h2>Deprecated</h2>
<p>This rule is deprecated; use {rule:squid:S4790} instead.</p>
<p>This rule is deprecated; use {rule:squid:S4790}, {rule:squid:S5344} instead.</p>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Implemented in SonarJava 5.13 (SONARJAVA-3104)


slf4jLog.debug(marker, "message {}", 1);

org.apache.logging.log4j.Logger log4jLog;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Handled by SONARJAVA-3172

slf4jLog.debug(marker, "message {}");
slf4jLog.debug(marker, "message {}", 1);

org.apache.logging.log4j.Logger log4jLog;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Handled by SONARJAVA-3172

@ghost ghost force-pushed the SONARJAVA-3173 branch from 78e65bb to 295252d Compare July 31, 2019 16:40
@ghost ghost force-pushed the SONARJAVA-3173 branch from 295252d to 2912270 Compare July 31, 2019 16:42
</pre>
<h2>Exceptions</h2>
<p>No issue is reported when the parameter is annotated with <code>@PathVariable</code> from Spring Framework, since the lookup will be done via id,
the object cannot be forged on client side.</p>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Handled by SONARJAVA-3151

}
}
</pre>
<h2>Questionable Code Example</h2>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This long Questionable Code Example section is duplicated, rule-api should be drunk.
I'm going to change Questionable Code Example by Sensitive Code Example in the RSPEC, it should fix rule-api.

@alban-auzeill alban-auzeill merged commit 5722010 into master Aug 2, 2019
@alban-auzeill alban-auzeill deleted the SONARJAVA-3173 branch August 2, 2019 09:27
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.

2 participants

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