Open guidezpl opened 1 year ago
What with the following patterns?
1)
// A common pattern in Flutter
class MyWidget extends StatefulWidget {
@override
State<MyWidget> createState() => _MyWidgetState();
}
class _MyWidgetState extends State<MyWidget> {}
2)
// sealed class subclasses should be in the same library
sealed class MySealedClass {}
final class One extends MySealedClass {}
final class Two extends MySealedClass {}
3) part/part of
directives in general
I don't think this rule would have high value. I don't think it would prevent bugs; it would be more a rule for style.
I would like to have this linter too
public_class_matches_filename
Description