| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
class UnnecessaryConstInEnumConstructorTest extends LintRuleTest {nit: rename to `UnnecessaryTypeNameInConstructorTest`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
Connie: I'll update the docs when you've had a chance to look at them.
class UnnecessaryConstInEnumConstructorTest extends LintRuleTest {Brian Wilkersonnit: rename to `UnnecessaryTypeNameInConstructorTest`
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: pkg/linter/test/rules/unnecessary_type_name_in_constructor_test.dart
Insertions: 2, Deletions: 2.
@@ -8,12 +8,12 @@
void main() {
defineReflectiveSuite(() {
- defineReflectiveTests(UnnecessaryConstInEnumConstructorTest);
+ defineReflectiveTests(UnnecessaryTypeNameInConstructorTest);
});
}
@reflectiveTest
-class UnnecessaryConstInEnumConstructorTest extends LintRuleTest {
+class UnnecessaryTypeNameInConstructorTest extends LintRuleTest {
@override
String get lintRule => LintNames.unnecessary_type_name_in_constructor;
```
Add new unnecessary_type_name_in_constructor lint
This adds a new lint to recommend removing the type name from secondary
constructors.
It also adds a new fix that can automate the removal.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |