Skip to content

Commit 80dc31c

Browse files
committed
chore: Excl. gen. files from analysis_options.yaml
This commit updates the `analysis_options.yaml` file to exclude generated files from analysis. This is done by adding the `analyzer.exclude` option with the pattern `lib/**/*.*.dart`. This change is necessary because generated files often contain code that does not adhere to the project's linting rules. Excluding them from analysis prevents unnecessary warnings and errors.
1 parent ac40f62 commit 80dc31c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sample_app/analysis_options.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
include: ../analysis_options.yaml
22

3+
analyzer:
4+
# TODO: not working if added on the root analysis file
5+
exclude:
6+
# exclude all the generated files
7+
- lib/**/*.*.dart
8+
39
linter:
410
rules:
511
cascade_invocations: false

0 commit comments

Comments
 (0)