mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 20:36:31 +08:00
feat: Add non_constant_identifier_names rule (#1656)
This commit is contained in:
@ -82,10 +82,10 @@ class DotsComponent extends Component {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void update(double dt) {
|
void update(double dt) {
|
||||||
generate_point();
|
generatePoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void generate_point() {
|
void generatePoint() {
|
||||||
final point = Vector2(
|
final point = Vector2(
|
||||||
random.nextDouble() * 800,
|
random.nextDouble() * 800,
|
||||||
random.nextDouble() * 600,
|
random.nextDouble() * 600,
|
||||||
|
|||||||
@ -68,6 +68,7 @@ linter:
|
|||||||
- no_adjacent_strings_in_list
|
- no_adjacent_strings_in_list
|
||||||
- no_duplicate_case_values
|
- no_duplicate_case_values
|
||||||
- no_runtimeType_toString
|
- no_runtimeType_toString
|
||||||
|
- non_constant_identifier_names
|
||||||
- omit_local_variable_types
|
- omit_local_variable_types
|
||||||
- package_api_docs
|
- package_api_docs
|
||||||
- package_names
|
- package_names
|
||||||
|
|||||||
Reference in New Issue
Block a user