-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update RSPEC before 9.12 release (#8161)
- Loading branch information
1 parent
f6ea225
commit 3786561
Showing
8 changed files
with
209 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,5 @@ | |
563 | ||
] | ||
}, | ||
"quickfix": "unknown" | ||
"quickfix": "targeted" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
<h2>Why is this an issue?</h2> | ||
<p>Private methods are clearly intended for use only within their own scope. When such methods return values that are never used by any of their | ||
callers, then clearly there is no need to actually make the return, and it should be removed in the interests of efficiency and clarity.</p> | ||
<p>Private methods are intended for use only within their scope. If these methods return values that are not utilized by any calling functions, it | ||
indicates that the return operation is unnecessary. Removing such returns can enhance both efficiency and code clarity.</p> | ||
<h3>Noncompliant code example</h3> | ||
<pre> | ||
class SomeClass | ||
{ | ||
private int PrivateMethod() => 42; | ||
|
||
public void PublicMethod() | ||
{ | ||
PrivateMethod(); // Noncompliant: the result of PrivateMethod is not used | ||
} | ||
} | ||
</pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.