Commit e87bd68
[messages] Ignore case in LinterRuleOptionsValidator.
Now that lint name matching is case insensitive
(https://dart-review.googlesource.com/c/sdk/+/465964), it makes sense
for the LinterRuleOptionsValidator to ignore case when checking the
contents of `analysis_options.yaml` files.
This paves the way for a follow-up CL that will change the names
declared in the linter to all lower case.
Change-Id: I6a6a696430f1d99408902b115587ac8c3d22fbe8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/466000
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>1 parent 688df35 commit e87bd68Copy full SHA for e87bd68
File tree
Expand file treeCollapse file tree
2 files changed
+219
-7
lines changedOpen diff view settings
Filter options
- pkg/analyzer
- lib/src/lint
- test/src/options
Expand file treeCollapse file tree
2 files changed
+219
-7
lines changedOpen diff view settings
Collapse file
pkg/analyzer/lib/src/lint/options_rule_validator.dart
Copy file name to clipboardExpand all lines: pkg/analyzer/lib/src/lint/options_rule_validator.dart+15-7Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
| 68 | + |
| 69 | + |
72 | 70 | |
73 | 71 | |
74 | 72 | |
| ||
182 | 180 | |
183 | 181 | |
184 | 182 | |
185 | | - |
186 | | - |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
187 | 190 | |
188 | 191 | |
189 | 192 | |
| ||
259 | 262 | |
260 | 263 | |
261 | 264 | |
262 | | - |
| 265 | + |
| 266 | + |
| 267 | + |
263 | 268 | |
264 | 269 | |
265 | 270 | |
| ||
357 | 362 | |
358 | 363 | |
359 | 364 | |
| 365 | + |
| 366 | + |
| 367 | + |
360 | 368 | |
361 | 369 | |
362 | 370 | |
|
Collapse file
pkg/analyzer/test/src/options/options_rule_validator_test.dart
Copy file name to clipboardExpand all lines: pkg/analyzer/test/src/options/options_rule_validator_test.dart+204Lines changed: 204 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
203 | 203 | |
204 | 204 | |
205 | 205 | |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
206 | 231 | |
207 | 232 | |
208 | 233 | |
| ||
272 | 297 | |
273 | 298 | |
274 | 299 | |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
275 | 330 | |
276 | 331 | |
277 | 332 | |
| ||
309 | 364 | |
310 | 365 | |
311 | 366 | |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
| 384 | + |
312 | 385 | |
313 | 386 | |
314 | 387 | |
| ||
347 | 420 | |
348 | 421 | |
349 | 422 | |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
350 | 435 | |
351 | 436 | |
352 | 437 | |
| ||
379 | 464 | |
380 | 465 | |
381 | 466 | |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
| 484 | + |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
382 | 489 | |
383 | 490 | |
384 | 491 | |
| ||
402 | 509 | |
403 | 510 | |
404 | 511 | |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
405 | 523 | |
406 | 524 | |
407 | 525 | |
| ||
442 | 560 | |
443 | 561 | |
444 | 562 | |
| 563 | + |
| 564 | + |
| 565 | + |
| 566 | + |
| 567 | + |
| 568 | + |
| 569 | + |
| 570 | + |
| 571 | + |
| 572 | + |
| 573 | + |
| 574 | + |
445 | 575 | |
446 | 576 | |
447 | 577 | |
| ||
497 | 627 | |
498 | 628 | |
499 | 629 | |
| 630 | + |
| 631 | + |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
| 638 | + |
| 639 | + |
| 640 | + |
| 641 | + |
| 642 | + |
| 643 | + |
| 644 | + |
| 645 | + |
| 646 | + |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
| 651 | + |
| 652 | + |
| 653 | + |
| 654 | + |
| 655 | + |
| 656 | + |
| 657 | + |
| 658 | + |
| 659 | + |
| 660 | + |
| 661 | + |
| 662 | + |
| 663 | + |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
| 668 | + |
| 669 | + |
| 670 | + |
| 671 | + |
| 672 | + |
| 673 | + |
| 674 | + |
| 675 | + |
500 | 676 | |
501 | 677 | |
502 | 678 | |
| ||
544 | 720 | |
545 | 721 | |
546 | 722 | |
| 723 | + |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
| 730 | + |
| 731 | + |
| 732 | + |
| 733 | + |
| 734 | + |
547 | 735 | |
548 | 736 | |
549 | 737 | |
| ||
560 | 748 | |
561 | 749 | |
562 | 750 | |
| 751 | + |
| 752 | + |
| 753 | + |
| 754 | + |
| 755 | + |
| 756 | + |
| 757 | + |
| 758 | + |
| 759 | + |
| 760 | + |
| 761 | + |
| 762 | + |
| 763 | + |
| 764 | + |
| 765 | + |
| 766 | + |
563 | 767 | |
564 | 768 | |
565 | 769 | |
|
0 commit comments