Skip to content

Commit

Permalink
disable prefer-match-file-name for now..
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Sep 18, 2024
1 parent 2fb3d67 commit 25ad580
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ dart_code_metrics:
- prefer-single-widget-per-file: false
- avoid-passing-self-as-argument: false # fairly harmless. and e.g. drift calls are like this
- avoid-passing-async-when-sync-expected: false # we really like to do this in onTap() etc, and it seems harmless
- prefer-match-file-name: false # dieter wants to enable this. but requires a lot of renames. what does roland think?

formatter:
indent: 0
Expand Down
2 changes: 1 addition & 1 deletion lib/models/nutrition/ingredient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
import 'package:json_annotation/json_annotation.dart';
import 'package:wger/helpers/json.dart';
import 'package:wger/models/nutrition/image.dart';
import 'package:wger/models/nutrition/ingredient_image.dart';
import 'package:wger/models/nutrition/nutritional_values.dart';

part 'ingredient.g.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
import 'package:json_annotation/json_annotation.dart';

part 'image.g.dart';
part 'ingredient_image.g.dart';

@JsonSerializable()
class IngredientImage {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/providers/nutrition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import 'package:wger/exceptions/http_exception.dart';
import 'package:wger/exceptions/no_such_entry_exception.dart';
import 'package:wger/helpers/consts.dart';
import 'package:wger/models/exercises/ingredient_api.dart';
import 'package:wger/models/nutrition/image.dart';
import 'package:wger/models/nutrition/ingredient.dart';
import 'package:wger/models/nutrition/ingredient_image.dart';
import 'package:wger/models/nutrition/log.dart';
import 'package:wger/models/nutrition/meal.dart';
import 'package:wger/models/nutrition/meal_item.dart';
Expand Down

0 comments on commit 25ad580

Please sign in to comment.