Skip to content

feat: update lint rules and ignore freezed files#38

Merged
Lzyct merged 6 commits intomainfrom
feat/update-lint-rules-and-ignore-freezed-files
Aug 6, 2025
Merged

feat: update lint rules and ignore freezed files#38
Lzyct merged 6 commits intomainfrom
feat/update-lint-rules-and-ignore-freezed-files

Conversation

@Lzyct
Copy link
Member

@Lzyct Lzyct commented Aug 6, 2025

What it does

  • Updates linter rules in analysis_options.yaml for improved code readability and consistency.
  • Adds rules for trailing commas and strict Container widget usage.
  • Removes unrecognized lint rule prefer_specific_widget_over_container.
  • Ensures only necessary Container widgets are used.
  • Fix all warning from flutter analyze

How to test

  1. Run flutter analyze to verify linter warnings and errors.
  2. Check that unnecessary Container usage is flagged.
  3. Confirm trailing commas are enforced in multi-line collections and function calls.

Screenshot

N/A

@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

❌ Patch coverage is 85.59671% with 35 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/features/auth/pages/login/login_page.dart 78.00% 11 Missing ⚠️
...ib/features/auth/pages/register/register_page.dart 68.00% 8 Missing ⚠️
lib/core/app_route.dart 50.00% 4 Missing ⚠️
lib/core/api/dio_client.dart 72.72% 3 Missing ⚠️
lib/features/general/pages/main/menu_drawer.dart 86.36% 3 Missing ⚠️
lib/features/general/pages/main/main_page.dart 90.00% 2 Missing ⚠️
lib/core/widgets/button_notification.dart 80.00% 1 Missing ⚠️
lib/core/widgets/text_f.dart 66.66% 1 Missing ⚠️
...s/auth/data/repositories/auth_repository_impl.dart 75.00% 1 Missing ⚠️
...tures/users/pages/dashboard/cubit/users_cubit.dart 80.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
lib/core/api/isolate_parser.dart 100.00% <100.00%> (ø)
lib/core/widgets/button.dart 100.00% <100.00%> (ø)
lib/core/widgets/button_text.dart 100.00% <100.00%> (ø)
lib/core/widgets/circle_image.dart 100.00% <100.00%> (ø)
lib/core/widgets/color_loaders.dart 99.22% <100.00%> (ø)
lib/core/widgets/drop_down.dart 100.00% <100.00%> (ø)
lib/core/widgets/empty.dart 100.00% <100.00%> (ø)
lib/core/widgets/loading.dart 100.00% <100.00%> (ø)
lib/core/widgets/parent.dart 100.00% <100.00%> (ø)
lib/core/widgets/spacer_h.dart 100.00% <100.00%> (ø)
... and 35 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Lzyct Lzyct merged commit 609845a into main Aug 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant