Skip to content

Commit

Permalink
add support for global analysis options
Browse files Browse the repository at this point in the history
  • Loading branch information
guidezpl committed Feb 1, 2023
1 parent ddf67d5 commit 625b387
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Specify analysis options for all packages

include: package:flutter_lints/flutter.yaml

analyzer:
exclude: [generator/fonts.pb.dart]
strong-mode:
implicit-casts: false
implicit-dynamic: false
exclude: [packages/google_fonts/generator/fonts.pb.dart]

linter:
rules:
Expand Down
21 changes: 21 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
url: "https://pub.dev"
source: hosted
version: "2.0.1"
lints:
dependency: transitive
description:
name: lints
sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
sdks:
dart: ">=2.17.0 <4.0.0"
8 changes: 8 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: flutter_packages
publish_to: none

environment:
sdk: ">=2.12.0 <4.0.0"

dev_dependencies:
flutter_lints: ^2.0.1

0 comments on commit 625b387

Please sign in to comment.