rspec/rules/S1699/csharp/comments-and-links.adoc

10 lines
735 B
Plaintext

=== on 23 Jun 2015, 07:47:21 Tamas Vajk wrote:
\[~ann.campbell.2] Other then changing the code sample and removing the "by contract" from the first bullet point, I've added this rule to the SonarQube Way profile. I think this is a really useful rule, which should be enabled by default.
The main difference between C# and Java in this case is that you need to opt in for overridable methods. So you explicitly need to say that ``++DoSomething++`` is ``++virtual++``. So in case of Java you might have just forget to add the ``++final++`` to the method, but in C# you explicitly stated that you are calling and overridable method from the constructor.
=== on 23 Jun 2015, 11:51:47 Ann Campbell wrote:
looks good to me [~tamas.vajk]