Skip to content

Commit

Permalink
Exclude mock files from being formatted or linted
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 committed Aug 24, 2023
1 parent d96185f commit 46c06b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/format_lint_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
flutter-version: ${{ env.FLUTTER_VERSION }}

- run: dart format $(find . -type f -name "*.dart" -a -not -name "*.g.dart") --set-exit-if-changed
- run: dart format $(find . -type f -name "*.dart" -a -not -name "*.g.dart" -a -not -name "*.mocks.dart") --set-exit-if-changed

lint:
name: "Lint"
Expand Down
1 change: 1 addition & 0 deletions uni/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ analyzer:
# Exclude auto-generated files from dart analysis
exclude:
- "**.g.dart"
- "**.mocks.dart"

# Custom linter rules. A list of all rules can be found at
# https://dart-lang.github.io/linter/lints/options/options.html
Expand Down

0 comments on commit 46c06b0

Please sign in to comment.