Skip to content

Commit

Permalink
Enable pana rules for the package variant
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Dec 12, 2021
1 parent c274c9f commit 3e93a2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/analysis_options_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ linter:
# https://dart-lang.github.io/linter/lints/library_private_types_in_public_api.html
- library_private_types_in_public_api

# `pana` requires 80 chars max for a perfect pub score. Let's enforce this right away
#
# Linter v1.3
# https://dart-lang.github.io/linter/lints/library_private_types_in_public_api.html
- lines_longer_than_80_chars

# Good for libraries to prevent unnecessary code paths.
# Dart SDK: >= 2.0.0 • (Linter v0.1.25)
# https://dart-lang.github.io/linter/lints/literal_only_boolean_expressions.html
Expand All @@ -25,6 +31,12 @@ linter:
# https://dart-lang.github.io/linter/lints/package_api_docs.html
- package_api_docs

# `pana` requires single quotes for a perfect score, better start early with it
#
# Linter v0.1.33
# https://dart-lang.github.io/linter/lints/prefer_single_quotes.html
- prefer_single_quotes

# Too strict. Implementing all exported public APIs (`package_api_docs`) is enough.
# Dart SDK: >= 2.0.0 • (Linter v0.1.11)
# https://dart-lang.github.io/linter/lints/public_member_api_docs.html
Expand Down

0 comments on commit 3e93a2f

Please sign in to comment.