Skip to content

Commit c7463f6

Browse files
Update rule metadata (#5264)
Co-authored-by: tomasz-tylenda-sonarsource <tomasz-tylenda-sonarsource@users.noreply.github.com>
1 parent 6c9e827 commit c7463f6

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1854.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h3>Exceptions</h3>
77
<p>This rule ignores initializations to <code>-1</code>, <code>0</code>, <code>1</code>, <code>null</code>, <code>true</code>, <code>false</code> and
88
<code>""</code>.</p>
99
<h2>How to fix it</h2>
10-
<p>Remove the unnecesarry assignment, then test the code to make sure that the right-hand side of a given assignment had no side effects (e.g. a
10+
<p>Remove the unnecessary assignment, then test the code to make sure that the right-hand side of a given assignment had no side effects (e.g. a
1111
method that writes certain data to a file and returns the number of written bytes).</p>
1212
<h3>Code examples</h3>
1313
<h4>Noncompliant code example</h4>

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S5443.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li> <a href="https://nvd.nist.gov/vuln/detail/CVE-2012-2451">CVE-2012-2451</a> </li>
88
<li> <a href="https://nvd.nist.gov/vuln/detail/CVE-2015-1838">CVE-2015-1838</a> </li>
99
</ul>
10-
<p>This rule raises an issue whenever it detects a hard-coded path to a publicly writable directory like <code>/tmp</code> (see examples bellow). It
10+
<p>This rule raises an issue whenever it detects a hard-coded path to a publicly writable directory like <code>/tmp</code> (see examples below). It
1111
also detects access to environment variables that point to publicly writable directories, e.g., <code>TMP</code> and <code>TMPDIR</code>.</p>
1212
<ul>
1313
<li> <code>/tmp</code> </li>

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S5689.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>Disclosure of version information, usually overlooked by developers but disclosed by default by the systems and frameworks in use, can pose a
2-
significant security risk depending on the production environement.</p>
2+
significant security risk depending on the production environment.</p>
33
<p>Once this information is public, attackers can use it to identify potential security holes or vulnerabilities specific to that version.</p>
44
<p>Furthermore, if the published version information indicates the use of outdated or unsupported software, it becomes easier for attackers to exploit
55
known vulnerabilities. They can search for published vulnerabilities related to that version and launch attacks that specifically target those

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S5876.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3>Standards</h3>
8080
Authentication Failures</a> </li>
8181
<li> OWASP - <a href="https://owasp.org/www-project-top-ten/2017/A2_2017-Broken_Authentication">Top 10 2017 Category A2 - Broken Authentication</a>
8282
</li>
83-
<li> <a href="https://owasp.org/www-community/attacks/Session_fixation">OWASP Sesssion Fixation</a> </li>
83+
<li> <a href="https://owasp.org/www-community/attacks/Session_fixation">OWASP Session Fixation</a> </li>
8484
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/384">CWE-384 - Session Fixation</a> </li>
8585
<li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222579">Application Security and
8686
Development: V-222579</a> - Applications must use system-generated session identifiers that protect against session fixation. </li>

sonarpedia.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"languages": [
44
"JAVA"
55
],
6-
"latest-update": "2025-07-04T09:48:41.626288988Z",
6+
"latest-update": "2025-07-18T13:33:45.764705424Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": false
1010
}
11-
}
11+
}

0 commit comments

Comments
 (0)