35 lines
907 B
Plaintext
35 lines
907 B
Plaintext
== Why is this an issue?
|
||
|
||
Shared coding conventions allow teams to collaborate effectively. For that reason, file names should conform to a defined standard.
|
||
In Dart the convention is to name files using lowercase with underscore.This rule raises an issue when the names of analyzed files don’t match this convention.
|
||
|
||
This convention also helps to operate with different file systems, which may be case-insensitive.
|
||
|
||
These file names will violate convention:
|
||
|
||
* MyFile.dart
|
||
* myFile.dart
|
||
* my-file.dart
|
||
* My_File.dart
|
||
|
||
And the proper name in this case will be:
|
||
|
||
* my_file.dart
|
||
|
||
== Resources
|
||
|
||
* Dart Docs - https://dart.dev/tools/linter-rules/file_names[Dart Linter rule - file_names]
|
||
|
||
ifdef::env-github,rspecator-view[]
|
||
|
||
'''
|
||
== Implementation Specification
|
||
(visible only on this page)
|
||
|
||
=== Message
|
||
|
||
The file name 'xxx' isn't a lower_case_with_underscores identifier.
|
||
|
||
endif::env-github,rspecator-view[]
|
||
|