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

23 lines
1.3 KiB
Plaintext
Raw Normal View History

=== on 1 Nov 2018, 09:56:15 Jean-Baptiste Lievremont wrote:
Could you please provide a Java-specific description?
=== on 14 Nov 2018, 11:56:04 Alexandre Gigleux wrote:
\[~jeanbaptiste.lievremont] Done (/)
=== on 3 Oct 2019, 11:00:15 Alban Auzeill wrote:
The Unicode characters set https://en.wikipedia.org/wiki/C0_and_C1_control_codes[C1] (from \u0080 to \u009F) is considered by some languages as control characters (e.g.: C# https://docs.microsoft.com/en-us/dotnet/api/system.char.iscontrol?view=netframework-4.8[Char.IsControl(Char)] ). But it's not true for all encodings. For example, Windows-1250 code page encodes euro sign (€ unicode \u20AC) by using \u0080, and it's not a control character. So if a source code is encoded using UTF-8, we can not guess what means characters between \u0080-\u00FF because it depends of the original code page used to write characters in this range before converting it to UTF-8.
=== on 20 May 2020, 11:11:36 Damien Urruty wrote:
I think this rule could be extended (or maybe another one) to also check character literals. Examples in Java:
String tabInside = "A B" + ' ';
String zeroWidthSpaceInside = "foobar" + '';
=== on 26 May 2020, 15:11:29 Alban Auzeill wrote:
\[~damien.urruty] I agree and I created [SONARJAVA-3433]