From b40c64f1075774f7232608df6636586009ab8ab3 Mon Sep 17 00:00:00 2001 From: Alban Auzeill Date: Tue, 30 May 2023 16:04:14 +0200 Subject: [PATCH] SONARJAVA-4499 Update rules metadata (#4392) * SONARJAVA-4499 Update rules metadata, rename sections * SONARJAVA-4499 Update rules metadata, deprecated rules * SONARJAVA-4499 Update rules metadata, "See Also" sections * SONARJAVA-4499 S2384 description updated to match the implementation * SONARJAVA-4499 Fix S2755 rule description invalid section * SONARJAVA-4499 Migrate S3981 rule description to the educational format --- .../org/sonar/l10n/java/rules/java/S100.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S101.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S103.html | 1 + .../org/sonar/l10n/java/rules/java/S104.html | 1 + .../org/sonar/l10n/java/rules/java/S105.html | 1 + .../org/sonar/l10n/java/rules/java/S106.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1065.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1066.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1067.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1068.html | 18 ++++++++------- .../org/sonar/l10n/java/rules/java/S107.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1075.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S108.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S109.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S110.html | 1 + .../org/sonar/l10n/java/rules/java/S1104.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1105.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1106.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1107.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1108.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1109.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1110.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1111.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1113.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1114.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1116.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1117.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1118.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1119.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S112.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1120.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1121.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1123.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1124.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1125.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1126.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1128.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S113.html | 1 + .../org/sonar/l10n/java/rules/java/S1130.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1132.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1133.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1134.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1135.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S114.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1141.html | 1 + .../org/sonar/l10n/java/rules/java/S1142.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1143.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1144.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1147.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1149.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S115.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1150.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1151.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1153.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1155.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1157.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1158.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S116.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1160.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1161.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1162.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1163.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1165.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1166.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1168.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S117.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1170.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1171.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1172.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1174.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1175.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1176.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S118.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1181.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1182.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1185.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1186.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1188.html | 1 + .../org/sonar/l10n/java/rules/java/S119.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1190.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1191.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1192.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1193.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1194.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1195.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1197.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1199.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S120.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1200.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1201.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1206.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S121.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1210.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1213.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1214.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1215.html | 1 + .../org/sonar/l10n/java/rules/java/S1217.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1219.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S122.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1220.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1221.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1223.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1226.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1228.html | 3 ++- .../org/sonar/l10n/java/rules/java/S124.html | 1 + .../org/sonar/l10n/java/rules/java/S1244.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S125.html | 1 + .../org/sonar/l10n/java/rules/java/S1258.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S126.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1264.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S127.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S128.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1301.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1309.html | 3 ++- .../org/sonar/l10n/java/rules/java/S131.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1310.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1312.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1314.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1315.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1317.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1319.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S134.html | 3 ++- .../org/sonar/l10n/java/rules/java/S135.html | 3 ++- .../org/sonar/l10n/java/rules/java/S138.html | 1 + .../org/sonar/l10n/java/rules/java/S139.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1444.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1448.html | 1 + .../org/sonar/l10n/java/rules/java/S1449.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1450.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1451.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1452.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1479.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1481.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1488.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1541.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1596.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1598.html | 1 + .../org/sonar/l10n/java/rules/java/S1602.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1604.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1607.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1610.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1611.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1612.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1640.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1641.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1643.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1656.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1659.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1694.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1695.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1696.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1698.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1699.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1700.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1710.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1711.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1751.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1764.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1774.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1820.html | 1 + .../org/sonar/l10n/java/rules/java/S1821.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1844.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1845.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1849.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1854.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1858.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1860.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1862.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1871.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1872.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1874.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1905.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1939.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1940.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1941.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1942.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1943.html | 3 ++- .../org/sonar/l10n/java/rules/java/S1948.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S1989.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S1994.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S1996.html | 1 + .../org/sonar/l10n/java/rules/java/S2039.html | 10 ++++----- .../org/sonar/l10n/java/rules/java/S2047.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2053.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2055.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2057.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S2059.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2060.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2061.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2062.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2063.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2065.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2066.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2093.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2094.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2095.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S2096.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2097.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2109.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2110.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2111.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2112.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2114.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2115.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2116.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2118.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2119.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S2121.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2122.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2123.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2127.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2129.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2130.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2131.html | 8 +++---- .../org/sonar/l10n/java/rules/java/S2133.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2134.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2139.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2140.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2141.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2142.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2143.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2147.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2148.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2151.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2153.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2154.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2156.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2157.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2159.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2160.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2162.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2164.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S2165.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2166.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2167.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2168.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2175.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2176.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2177.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2178.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2183.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2184.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2185.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2186.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2187.html | 1 + .../org/sonar/l10n/java/rules/java/S2188.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2189.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2196.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2197.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2200.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2201.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S2203.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2204.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2208.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2209.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2211.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2221.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2222.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2225.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2226.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2229.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2230.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2232.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2234.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2235.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2236.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2250.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2251.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2252.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2253.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2254.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2259.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2260.html | 1 + .../org/sonar/l10n/java/rules/java/S2272.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2273.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2274.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2275.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2276.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2293.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2301.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2308.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2309.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2325.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2326.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2333.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2384.html | 13 ++++++----- .../org/sonar/l10n/java/rules/java/S2384.json | 2 +- .../org/sonar/l10n/java/rules/java/S2386.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2387.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2388.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2390.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2437.html | 1 + .../org/sonar/l10n/java/rules/java/S2438.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2440.html | 8 ++++--- .../org/sonar/l10n/java/rules/java/S2441.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2442.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2444.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2445.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2446.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2447.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2479.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2583.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2589.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2629.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2637.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2638.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2639.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2647.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2658.html | 8 +++---- .../org/sonar/l10n/java/rules/java/S2674.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2675.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2676.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2677.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2681.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2689.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2692.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2693.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2694.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2695.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2696.html | 3 ++- .../org/sonar/l10n/java/rules/java/S2698.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2699.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2701.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2718.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2737.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2755.html | 8 ++++--- .../org/sonar/l10n/java/rules/java/S2757.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2761.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2786.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2789.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2864.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2885.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2886.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2924.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2925.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2959.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2970.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S2972.html | 1 + .../org/sonar/l10n/java/rules/java/S2973.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2974.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S2975.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S3008.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3010.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3011.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3012.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3014.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3020.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3030.html | 3 ++- .../org/sonar/l10n/java/rules/java/S3032.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3034.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3038.html | 3 ++- .../org/sonar/l10n/java/rules/java/S3039.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3042.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3046.html | 3 ++- .../org/sonar/l10n/java/rules/java/S3047.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3052.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3064.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S3065.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3066.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3067.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3077.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3078.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3242.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3252.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3254.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3305.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3306.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3329.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3346.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3358.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3366.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3398.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3400.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3414.html | 1 + .../org/sonar/l10n/java/rules/java/S3415.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3416.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3436.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3437.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3457.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3516.html | 3 ++- .../org/sonar/l10n/java/rules/java/S3518.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3546.html | 4 +++- .../org/sonar/l10n/java/rules/java/S3551.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3553.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3577.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3578.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3599.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3626.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3631.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3655.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3658.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3688.html | 3 ++- .../org/sonar/l10n/java/rules/java/S3725.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3740.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3749.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3750.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3751.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3753.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3776.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3824.html | 10 +++++---- .../org/sonar/l10n/java/rules/java/S3864.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3878.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3923.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3937.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3958.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S3959.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3972.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3973.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3981.html | 22 +++++++------------ .../org/sonar/l10n/java/rules/java/S3984.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S3985.html | 3 ++- .../org/sonar/l10n/java/rules/java/S3986.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4011.html | 3 ++- .../org/sonar/l10n/java/rules/java/S4032.html | 1 + .../org/sonar/l10n/java/rules/java/S4034.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4042.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4065.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4087.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4143.html | 3 ++- .../org/sonar/l10n/java/rules/java/S4144.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4165.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4174.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4201.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4248.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4266.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4274.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4275.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4276.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4288.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4347.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4348.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4349.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4351.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4423.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4425.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4426.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4433.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4449.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4454.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4488.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4517.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4524.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4551.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4601.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4602.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4604.html | 8 +++---- .../org/sonar/l10n/java/rules/java/S4605.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4635.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4682.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4684.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S4719.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4738.html | 1 + .../org/sonar/l10n/java/rules/java/S4830.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4838.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4925.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4926.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4929.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4968.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4970.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S4973.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S4977.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5128.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5164.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S5194.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5261.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5301.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5329.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5344.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5361.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5411.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5413.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5445.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5527.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5542.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5547.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5612.html | 1 + .../org/sonar/l10n/java/rules/java/S5659.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5663.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5664.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5665.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5669.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5679.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5738.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5776.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5777.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5778.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5779.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5783.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5785.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5786.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S5790.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5793.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5803.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5808.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S5810.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5826.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5831.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5833.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5838.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5841.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5842.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5843.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5845.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5846.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5850.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5853.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5854.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5855.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5856.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5857.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5860.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5863.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5866.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5867.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5868.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5869.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5876.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5917.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5958.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5960.html | 1 + .../org/sonar/l10n/java/rules/java/S5961.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5967.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5969.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5970.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5973.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5976.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5977.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5979.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S5993.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5994.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5996.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S5998.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6001.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6002.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6019.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6035.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6068.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6070.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6073.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6103.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6104.html | 8 ++++--- .../org/sonar/l10n/java/rules/java/S6126.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6201.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6202.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6203.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6204.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6205.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6206.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6207.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6208.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6209.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6211.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S6212.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6213.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6216.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6217.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6218.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6219.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6241.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6242.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6243.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6244.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6246.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6262.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6288.html | 2 +- .../org/sonar/l10n/java/rules/java/S6293.html | 2 +- .../org/sonar/l10n/java/rules/java/S6301.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6326.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6331.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6353.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6355.html | 10 +++++---- .../org/sonar/l10n/java/rules/java/S6373.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S6374.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S6376.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6377.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6395.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6396.html | 5 +++-- .../org/sonar/l10n/java/rules/java/S6397.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6411.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6432.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S6437.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S818.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S864.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S881.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S888.html | 9 ++++---- .../org/sonar/l10n/java/rules/java/S899.html | 7 +++--- .../org/sonar/l10n/java/rules/java/S923.html | 5 +++-- sonarpedia.json | 2 +- 588 files changed, 1944 insertions(+), 1364 deletions(-) diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S100.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S100.html index 89a2d0ebccc..1232317c668 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S100.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S100.html @@ -1,14 +1,15 @@ +

Why is this an issue?

Shared naming conventions allow teams to collaborate efficiently. This rule checks that all method names match a provided regular expression.

-

Noncompliant Code Example

+

Noncompliant code example

With default provided regular expression ^[a-z][a-zA-Z0-9]*$:

 public int DoSomething(){...}
 
-

Compliant Solution

+

Compliant solution

 public int doSomething(){...}
 
-

Exceptions

+

Exceptions

Overriding methods are excluded.

 @Override
diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S101.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S101.html
index 00ca7705061..f772827d774 100644
--- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S101.html
+++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S101.html
@@ -1,11 +1,12 @@
+

Why is this an issue?

Shared coding conventions allow teams to collaborate effectively. This rule allows to check that all class names match a provided regular expression.

-

Noncompliant Code Example

+

Noncompliant code example

With default provided regular expression ^[A-Z][a-zA-Z0-9]*$:

 class my_class {...}
 
-

Compliant Solution

+

Compliant solution

 class MyClass {...}
 
diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S103.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S103.html index b50789b4526..10a9058c202 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S103.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S103.html @@ -1,2 +1,3 @@ +

Why is this an issue?

Having to scroll horizontally makes it harder to get a quick overview and understanding of any piece of code.

diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S104.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S104.html index c94c1ce85d2..f6c0dbaa448 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S104.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S104.html @@ -1,3 +1,4 @@ +

Why is this an issue?

A source file that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor it into smaller pieces of code which focus on well defined tasks. Those smaller files will not only be easier to understand but also probably easier to test.

diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S105.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S105.html index 116918878d6..2aab84fc839 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S105.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S105.html @@ -1,3 +1,4 @@ +

Why is this an issue?

Developers should not need to configure the tab width of their text editors in order to be able to read source code.

So the use of the tabulation character must be banned.

diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S106.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S106.html index 946c75758b0..25adb814140 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S106.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S106.html @@ -1,3 +1,4 @@ +

Why is this an issue?

When logging a message there are several important requirements which must be fulfilled:

If a program directly writes to the standard outputs, there is absolutely no way to comply with those requirements. That’s why defining and using a dedicated logger is highly recommended.

-

Noncompliant Code Example

+

Noncompliant code example

 System.out.println("My Message");  // Noncompliant
 
-

Compliant Solution

+

Compliant solution

 logger.log("My Message");
 
-

See

+

Resources