Commit bdf16f8
Add suggestions for
* Removed usage of deprected isDisjointWith function
* Added partial parser
* Implemented nested subsets
* Added tests for nested subset
* Added nested prefix subsets
* Added tests for nested prefix subsets
* Added missing docs
* Improved deduping
* Update lib/rules/no-dupe-disjunctions.ts
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
* Fixed linting error
* Fixed and documented optimization
* Added failing tests for bug
* Fixed incorrect partial NFA construction
* Fixed capturing group warning for nested alternatives
* Proper message escaping
* Improved messages
* Don't repeat the loc code
* Add suggestions for `regexp/no-dupe-disjunctions`
* Implemented review comment
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>regexp/no-dupe-disjunctions (#406)1 parent 249e29e commit bdf16f8
File tree
4 files changed
+264
-62
lines changed- lib
- rules
- utils
- tests/lib/rules
4 files changed
+264
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 108 | | |
165 | 109 | | |
166 | 110 | | |
| |||
202 | 146 | | |
203 | 147 | | |
204 | 148 | | |
205 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
206 | 153 | | |
207 | 154 | | |
208 | 155 | | |
| |||
213 | 160 | | |
214 | 161 | | |
215 | 162 | | |
216 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
217 | 167 | | |
218 | 168 | | |
219 | 169 | | |
| |||
259 | 209 | | |
260 | 210 | | |
261 | 211 | | |
262 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
263 | 216 | | |
264 | 217 | | |
265 | 218 | | |
| |||
283 | 236 | | |
284 | 237 | | |
285 | 238 | | |
286 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
287 | 243 | | |
288 | 244 | | |
289 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
837 | 844 | | |
838 | 845 | | |
839 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
840 | 875 | | |
841 | 876 | | |
842 | 877 | | |
| |||
873 | 908 | | |
874 | 909 | | |
875 | 910 | | |
| 911 | + | |
876 | 912 | | |
877 | 913 | | |
878 | 914 | | |
| |||
905 | 941 | | |
906 | 942 | | |
907 | 943 | | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
908 | 947 | | |
909 | 948 | | |
910 | 949 | | |
| |||
917 | 956 | | |
918 | 957 | | |
919 | 958 | | |
| 959 | + | |
| 960 | + | |
920 | 961 | | |
921 | 962 | | |
922 | 963 | | |
| |||
1104 | 1145 | | |
1105 | 1146 | | |
1106 | 1147 | | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
1107 | 1245 | | |
1108 | 1246 | | |
1109 | 1247 | | |
| |||
1136 | 1274 | | |
1137 | 1275 | | |
1138 | 1276 | | |
| 1277 | + | |
| 1278 | + | |
1139 | 1279 | | |
1140 | 1280 | | |
1141 | 1281 | | |
1142 | 1282 | | |
1143 | 1283 | | |
1144 | 1284 | | |
1145 | 1285 | | |
| 1286 | + | |
1146 | 1287 | | |
1147 | 1288 | | |
1148 | 1289 | | |
| |||
1152 | 1293 | | |
1153 | 1294 | | |
1154 | 1295 | | |
| 1296 | + | |
1155 | 1297 | | |
1156 | 1298 | | |
1157 | 1299 | | |
| |||
1167 | 1309 | | |
1168 | 1310 | | |
1169 | 1311 | | |
| 1312 | + | |
1170 | 1313 | | |
1171 | 1314 | | |
1172 | 1315 | | |
| |||
1176 | 1319 | | |
1177 | 1320 | | |
1178 | 1321 | | |
| 1322 | + | |
1179 | 1323 | | |
1180 | 1324 | | |
1181 | 1325 | | |
| |||
1191 | 1335 | | |
1192 | 1336 | | |
1193 | 1337 | | |
| 1338 | + | |
1194 | 1339 | | |
1195 | 1340 | | |
1196 | 1341 | | |
| |||
1200 | 1345 | | |
1201 | 1346 | | |
1202 | 1347 | | |
| 1348 | + | |
1203 | 1349 | | |
1204 | 1350 | | |
1205 | 1351 | | |
| |||
1216 | 1362 | | |
1217 | 1363 | | |
1218 | 1364 | | |
| 1365 | + | |
1219 | 1366 | | |
1220 | 1367 | | |
1221 | 1368 | | |
| |||
0 commit comments