Skip to content

Commit 144a45e

Browse files
committed
Added enhanced analyzer exclusions to wakelock_plus.
1 parent 30e3298 commit 144a45e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
include: package:flutter_lints/flutter.yaml
22

3+
analyzer:
4+
exclude:
5+
# Generated files shouldn't really be analyzed. Remove if it becomes a problem.
6+
- "**/*.g.dart"
7+
- ".git/**" # Exclude private git directory
8+
- "build/**" # Exclude generated files in the build directory
9+
- ".dart_tool/**" # Exclude Dart tool-generated files
10+
311
linter:
412
rules:
513
public_member_api_docs: true

wakelock_plus/example/analysis_options.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
# packages, and plugins designed to encourage good coding practices.
1010
include: package:flutter_lints/flutter.yaml
1111

12+
analyzer:
13+
exclude:
14+
# Generated files shouldn't really be analyzed. Remove if it becomes a problem.
15+
- "**/*.g.dart"
16+
- ".git/**" # Exclude private git directory
17+
- "build/**" # Exclude generated files in the build directory
18+
- ".dart_tool/**" # Exclude Dart tool-generated files
19+
1220
linter:
1321
# The lint rules applied to this project can be customized in the
1422
# section below to disable rules from the `package:flutter_lints/flutter.yaml`

0 commit comments

Comments
 (0)