You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dart-lang/src/main/resources/dartanalyzer/rules.json
+63Lines changed: 63 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,15 @@
17
17
"debt": "5min",
18
18
"active": true
19
19
},
20
+
{
21
+
"key": "argument_must_be_native",
22
+
"name": "Argument must be native",
23
+
"severity": "MAJOR",
24
+
"description": "The analyzer produces this diagnostic when the argument passed to Native.addressOf isn't annotated with the Native annotation.\n @see https://dart.dev/tools/diagnostic-messages#argument_must_be_native",
"name": "Argument type not assignable to error handler",
@@ -449,6 +458,24 @@
449
458
"debt": "5min",
450
459
"active": true
451
460
},
461
+
{
462
+
"key": "uri_does_not_exist",
463
+
"name": "Uri does not exist",
464
+
"severity": "BLOCKER",
465
+
"description": "The analyzer produces this diagnostic when an import, export, or part directive is found where the URI refers to a file that doesn't exist.\n @see https://dart.dev/tools/diagnostic-messages#uri_does_not_exist",
466
+
"type": "BUG",
467
+
"debt": "5min",
468
+
"active": true
469
+
},
470
+
{
471
+
"key": "uri_does_not_exist_in_doc_import",
472
+
"name": "Uri does not exist in doc import",
473
+
"severity": "MINOR",
474
+
"description": "The analyzer produces this diagnostic when a doc-import is found where the URI refers to a file that doesn't exist.\n @see https://dart.dev/tools/diagnostic-messages#uri_does_not_exist_in_doc_import",
475
+
"type": "BUG",
476
+
"debt": "5min",
477
+
"active": true
478
+
},
452
479
{
453
480
"key": "wrong_number_of_parameters_for_setter",
454
481
"name": "Wrong number of parameters for setter",
@@ -475,5 +502,41 @@
475
502
"type": "BUG",
476
503
"debt": "5min",
477
504
"active": true
505
+
},
506
+
{
507
+
"key": "literal_only_boolean_expressions",
508
+
"name": "Literal only boolean expressions",
509
+
"severity": "MAJOR",
510
+
"description": "The analyzer produces this diagnostic when the value of the condition in an if or loop statement is known to be either always true or always false. An exception is made for a while loop whose condition is the Boolean literal true.\n @see https://dart.dev/tools/diagnostic-messages#literal_only_boolean_expressions",
511
+
"type": "CODE_SMELL",
512
+
"debt": "5min",
513
+
"active": true
514
+
},
515
+
{
516
+
"key": "no_logic_in_create_state",
517
+
"name": "No logic in create state",
518
+
"severity": "MAJOR",
519
+
"description": "The analyzer produces this diagnostic when an implementation of createState in a subclass of StatefulWidget contains any logic other than the return of the result of invoking a zero argument constructor.\n @see https://dart.dev/tools/diagnostic-messages#no_logic_in_create_state",
520
+
"type": "CODE_SMELL",
521
+
"debt": "5min",
522
+
"active": true
523
+
},
524
+
{
525
+
"key": "prefer_const_declarations",
526
+
"name": "Prefer const declarations",
527
+
"severity": "MINOR",
528
+
"description": "The analyzer produces this diagnostic when a top-level variable, static field, or local variable is marked as final and is initialized to a constant value.\n @see https://dart.dev/tools/diagnostic-messages#prefer_const_declarations",
529
+
"type": "CODE_SMELL",
530
+
"debt": "5min",
531
+
"active": true
532
+
},
533
+
{
534
+
"key": "sized_box_shrink_expand",
535
+
"name": "Sized box shrink expand",
536
+
"severity": "MINOR",
537
+
"description": "The analyzer produces this diagnostic when a SizedBox constructor invocation specifies the values of both height and width as either 0.0 or double.infinity.\n @see https://dart.dev/tools/diagnostic-messages#sized_box_shrink_expand",
0 commit comments