Skip to content

Commit 3c2b1d8

Browse files
authored
Inline error ignores in analysis_options (flutter#12430)
This should help pana score for material_ui and cupertino_ui.
1 parent 312b5a3 commit 3c2b1d8

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎packages/cupertino_ui/analysis_options.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,21 @@ analyzer:
1313
- windows/**
1414
- macos/**
1515
- linux/**
16+
# These are repeated from ../../analysis_options.yaml because pana cannot see
17+
# the shared options when the package is published.
18+
errors:
19+
deprecated_member_use: ignore
20+
deprecated_member_use_from_same_package: ignore
21+
# `dart analyze` hasn't recognized the @example directive yet.
22+
# Remove it once https://github.com/dart-lang/sdk/pull/63646 is landed.
23+
doc_directive_unknown: ignore
1624

1725
linter:
1826
rules:
1927
# TODO(dkwingsmt): Remove when https://github.com/dart-lang/sdk/issues/63777 is fixed.
2028
unintended_html_in_doc_comment: false
29+
30+
# These are repeated from ../../analysis_options.yaml because pana cannot see
31+
# the shared options when the package is published.
32+
formatter:
33+
page_width: 100

‎packages/material_ui/analysis_options.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,21 @@ analyzer:
1313
- windows/**
1414
- macos/**
1515
- linux/**
16+
# These are repeated from ../../analysis_options.yaml because pana cannot see
17+
# the shared options when the package is published.
18+
errors:
19+
deprecated_member_use: ignore
20+
deprecated_member_use_from_same_package: ignore
21+
# `dart analyze` hasn't recognized the @example directive yet.
22+
# Remove it once https://github.com/dart-lang/sdk/pull/63646 is landed.
23+
doc_directive_unknown: ignore
1624

1725
linter:
1826
rules:
1927
# TODO(dkwingsmt): Remove when https://github.com/dart-lang/sdk/issues/63777 is fixed.
2028
unintended_html_in_doc_comment: false
29+
30+
# These are repeated from ../../analysis_options.yaml because pana cannot see
31+
# the shared options when the package is published.
32+
formatter:
33+
page_width: 100

0 commit comments

Comments
 (0)