Skip to content

Commit ffe3595

Browse files
committed
Update analysis options
1 parent 5e22c69 commit ffe3595

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

analysis_options.yaml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
include: package:lints/recommended.yaml
2-
3-
# linter:
4-
# rules:
5-
# - constant_identifier_names
6-
7-
analyzer:
8-
exclude:
9-
- build/**
10-
11-
# For more information about the core and recommended set of lints, see
12-
# https://dart.dev/go/core-lints
13-
14-
# For additional information about configuring this file, see
15-
# https://dart.dev/guides/language/analysis-options
1+
# For more information about the core and recommended set of lints, see
2+
# https://dart.dev/go/core-lints
3+
#
4+
# For additional information about configuring this file, see
5+
# https://dart.dev/guides/language/analysis-options
6+
7+
include: package:lints/recommended.yaml
8+
9+
linter:
10+
rules:
11+
- camel_case_types
12+
- only_throw_errors
13+
- comment_references
14+
- library_annotations
15+
- combinators_ordering
16+
- always_declare_return_types
17+
- one_member_abstracts
18+
- cancel_subscriptions
19+
- avoid_unused_constructor_parameters
20+
# - invalid_case_patterns
21+
# - strict_top_level_inference
22+
23+
analyzer:
24+
exclude:
25+
- build/**

scripts/publish.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@echo off
2+
call %~dp0\prepublish.bat
23
call dart pub publish

scripts/publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
2+
. "${0%/*}/prepublish.sh"
23
dart pub publish

0 commit comments

Comments
 (0)