21 lines
632 B
Plaintext
21 lines
632 B
Plaintext
=== on 24 Jun 2015, 13:08:00 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 24 Jun 2015, 13:58:46 Ann Campbell wrote:
|
|
Okay [~tamas.vajk]. I've gone a step further & marked it irrelevant for C#.
|
|
|