file-names
Same as file_names in Dart lints
- Group
- Style
- Path
lint/style/file-names- Default
- On (recommended)
- Origin
- Dart lints
- Rule
- 236 of 512
Enforces lowercase_with_underscores for source file names.
A file name is valid when it consists of lowercase letters, digits (not
first) and underscores, leading
underscores included. Names with an inner dot before .dart (generated
suffixes like .g.dart) are not checked.
Valid
void main() {}Configure file-names
Set its severity in falcon.json. See the configuration guide.
{
"linter": {
"rules": {
"style": {
"file-names": "error"
}
}
}
}Or silence one occurrence with a suppression comment; the reason is required.
// falcon-ignore lint/style/file-names: <reason>More style rules
- flutter-style-todos
flutter_style_todosFlags
TODOcomments that do not follow the Flutter style// TODO(username): message, https://URL-to-issue. - format-comment
format-commentFlags comments that are not formatted as complete sentences.
- implicit-call-tearoffs
implicit_call_tearoffsExplicitly tear off callable objects' call methods.
- initializers-ordering
Requires field initializers to follow their containing type's field declaration order by default.
- leading-newlines-in-multiline-strings
leading_newlines_in_multiline_stringsFlags a multiline string spanning several lines whose text does not start with a line break right after the opening quotes.
- library-annotations
library_annotationsrecommendedRequires library-targeted metadata to attach to a
librarydirective. - library-names
library_namesrecommendedFlags a library name that is not
lowercase_with_underscores. - library-prefixes
library_prefixesrecommendedFlags import prefixes that are not
lower_case_with_underscores.