feat: Add non_constant_identifier_names rule (#1656)

This commit is contained in:
Lukas Klingsbo
2022-05-26 20:07:37 +02:00
committed by GitHub
parent 5f346fc51a
commit 1b40de094f
2 changed files with 3 additions and 2 deletions

View File

@ -82,10 +82,10 @@ class DotsComponent extends Component {
@override
void update(double dt) {
generate_point();
generatePoint();
}
void generate_point() {
void generatePoint() {
final point = Vector2(
random.nextDouble() * 800,
random.nextDouble() * 600,

View File

@ -68,6 +68,7 @@ linter:
- no_adjacent_strings_in_list
- no_duplicate_case_values
- no_runtimeType_toString
- non_constant_identifier_names
- omit_local_variable_types
- package_api_docs
- package_names