rspec/rules/S2440/comments-and-links.adoc

21 lines
630 B
Plaintext
Raw Normal View History

=== On 2015-06-24T13:08:00Z Tamas Vajk Wrote:
\[~ann.campbell.2] I've untargeted C#, as you can't write:
----
TextUtils textUtils = new TextUtils(); // Noncompliant
String stripped = textUtils.stripHtml(source);
----
Just
----
TextUtils textUtils = new TextUtils(); // Noncompliant
String stripped = TextUtils.stripHtml(source);
^^^^^^^^^
----
The ``++new TextUtils()++`` could still be noncompliant, but instead we should say that the class should be static, which is another rule.
=== On 2015-06-24T13:58:46Z Ann Campbell Wrote:
Okay [~tamas.vajk]. I've gone a step further & marked it irrelevant for C#.