Skip to content

Commit

Permalink
Added CI check for import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Jul 18, 2024
1 parent f94a63d commit 011b97b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/elastic-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed lib/* test/*

- name: Verify import sorting
run: dart run import_sorter:main --exit-if-changed

- name: Analyze project source
run: flutter analyze --no-fatal-infos --no-fatal-warnings
test:
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ flutter:

import_sorter:
comments: false
ignored_files:
- /*.mocks.dart

flutter_launcher_icons:
image_path: "assets/logos/logo.png"
Expand Down

0 comments on commit 011b97b

Please sign in to comment.