2021-06-03 09:05:38 +02:00
=== deprecates: S1875
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== deprecates: S2848
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== deprecates: S2998
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== relates to: S1848
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== is related to: S1763
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== relates to: S901
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== on 21 Oct 2014, 20:06:34 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
Uhm... I think this rule simply mandates that S/RSPEC-901 be included in any SonarQube analysis.
2021-06-03 09:05:38 +02:00
=== on 21 Oct 2014, 20:07:13 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
\[~samuel.mercier] this probably deserves an "unused" tag
2021-06-03 09:05:38 +02:00
=== on 15 Jul 2016, 14:19:35 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
https://github.com/google/error-prone/blob/master/docs/bugpattern/UnusedAnonymousClass.md
2021-06-03 09:05:38 +02:00
=== on 10 Mar 2017, 09:09:33 Elena Vilchik wrote:
2021-06-02 20:44:38 +02:00
\[~ann.campbell.2] Can we update the message to explain why statement is wrong? E.g. ``++Remove or refactor this statement. It has no side-effect.++``
2021-06-03 09:05:38 +02:00
=== on 10 Mar 2017, 14:01:48 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
Absolutely [~elena.vilchik]! Done.
2021-06-03 09:05:38 +02:00
=== on 16 Oct 2018, 11:01:51 Alexandre Gigleux wrote:
2021-06-02 20:44:38 +02:00
Irrelevant for Java. Better covered by RSPEC-2246
2021-06-03 09:05:38 +02:00
=== on 24 Sep 2019, 16:34:02 Nicolas Harraudeau wrote:
2021-06-02 20:44:38 +02:00
Irrelevant for C#.
Example: When adding ``++1 == 1++`` in a method, the compilation fails with the following error message: "Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement"
It is also better covered by RSPEC-3448