16 Commits

Author SHA1 Message Date
Eric Morand
d2f786adb3
Modify rule S2871: Emphasize the necessity of using String.localeCompare to sort arrays of strings (#3576)
* Modify rule S2871: Add exception for arrays of strings

* S2871: Remove the exception mention and emphasize the usage of String.localeCompare
2024-01-31 17:27:47 +01:00
Yassin Kammoun
531e4225da
Migrate links from JavaScript RSPECs to the LaYC format (#3309) 2023-10-19 11:46:59 +02:00
Yassin Kammoun
b67f9eee5c
Modify rule S2871: Fix snippet format (#2524) 2023-07-18 15:39:08 +02:00
Yassin Kammoun
8ca0676c93
Modify rule S2871: Adapt to LaYC (#2523) 2023-07-18 15:23:10 +02:00
Fred Tingaud
16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00
Phil Nash
086875d63a
Modify rule S2871: Add Array.toSorted() (#1831)
This goes with https://github.com/SonarSource/SonarJS/pull/3873.
`toSorted()` is a new, copying method for arrays that otherwise behaves
the same as `sort()`.
2023-05-09 10:36:56 +02:00
Victor
fe961619f9 migrate rule descriptions to new education format 2023-05-05 16:29:04 +02:00
francoismora
8bb89ae066
Update S2871 (no-alphabetical-sort): Cover cases from require-array-sort-compare (#1705) 2023-03-30 17:02:13 +02:00
Fred Tingaud
b4161466e6
RULEAPI-661: Add syntax coloring 2022-02-04 16:28:24 +00:00
Arseniy Zaostrovnykh
f7904cebe7
RULEAPI-666: Migrate the "List of parameters", "Highlighting" and "Message" fields from jira RSPEC (#346) 2021-09-20 13:38:42 +00:00
Arseniy Zaostrovnykh
b76bc57083
RULEAPI-576: add a horizontal rule between rule description and comments 2021-06-08 15:52:13 +02:00
Arseniy Zaostrovnykh
6c1ad2c13c Fix the comment display: rule-id, timestamp, GH visibility, link direction 2021-06-03 09:05:38 +02:00
Arseniy Zaostrovnykh
cdd7690a79 Export comments and rspec-to-rspec links from jira 2021-06-02 20:44:38 +02:00
Arseniy Zaostrovnykh
a6e4582881 Fix the missing default metadata fields 2021-04-28 18:08:03 +02:00
Arseniy Zaostrovnykh
3d1e98b941 Restructure one-lang rspecs 2021-04-28 16:49:39 +02:00
Alban Auzeill
9ebd45f206 Add rules 2000-2999 2020-06-30 17:16:12 +02:00