=== deprecates: S1875 === deprecates: S2848 === deprecates: S2998 === relates to: S1848 === is related to: S1763 === relates to: S901 === on 21 Oct 2014, 20:06:34 Ann Campbell wrote: Uhm... I think this rule simply mandates that S/RSPEC-901 be included in any SonarQube analysis. === on 21 Oct 2014, 20:07:13 Ann Campbell wrote: \[~samuel.mercier] this probably deserves an "unused" tag === on 15 Jul 2016, 14:19:35 Ann Campbell wrote: https://github.com/google/error-prone/blob/master/docs/bugpattern/UnusedAnonymousClass.md === on 10 Mar 2017, 09:09:33 Elena Vilchik wrote: \[~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.++`` === on 10 Mar 2017, 14:01:48 Ann Campbell wrote: Absolutely [~elena.vilchik]! Done. === on 16 Oct 2018, 11:01:51 Alexandre Gigleux wrote: Irrelevant for Java. Better covered by RSPEC-2246 === on 24 Sep 2019, 16:34:02 Nicolas Harraudeau wrote: 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