| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # This file configures the analyzer, which statically analyzes Dart code to
- # check for errors, warnings, and lints.
- #
- # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
- # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
- # invoked from the command line by running `flutter analyze`.
- # The following line activates a set of recommended lints for Flutter apps,
- # packages, and plugins designed to encourage good coding practices.
- include: package:flutter_lints/flutter.yaml
- analyzer:
- exclude:
- - build/**
- - android/**
- errors:
- # lib/tools/ 和 lib/utils/ 是从 mathtool2 整包搬过来的(16 个工具 + 两个
- # 数学工具类),按另一套风格写的,搬迁时不重写。下面这些全是纯风格问题,
- # 先压掉噪音;等真要动这些文件时再逐个清理。
- # 注意 deprecated_member_use 也一并压了 —— math_expressions 把 Parser/evaluate
- # 标了废弃,但替换 API 需要改写工具的求值逻辑,不属于本次搬迁范围。
- deprecated_member_use: ignore
- use_key_in_widget_constructors: ignore
- library_private_types_in_public_api: ignore
- sized_box_for_whitespace: ignore
- non_constant_identifier_names: ignore
- prefer_final_fields: ignore
- unnecessary_this: ignore
- sort_child_properties_last: ignore
- unnecessary_to_list_in_spreads: ignore
- unnecessary_brace_in_string_interps: ignore
- prefer_is_empty: ignore
- prefer_interpolation_to_compose_strings: ignore
- linter:
- # The lint rules applied to this project can be customized in the
- # section below to disable rules from the `package:flutter_lints/flutter.yaml`
- # included above or to enable additional rules. A list of all available lints
- # and their documentation is published at https://dart.dev/lints.
- #
- # Instead of disabling a lint rule for the entire project in the
- # section below, it can also be suppressed for a single line of code
- # or a specific dart file by using the `// ignore: name_of_lint` and
- # `// ignore_for_file: name_of_lint` syntax on the line or in the file
- # producing the lint.
- rules:
- # avoid_print: false # Uncomment to disable the `avoid_print` rule
- # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
- # Additional information about this file can be found at
- # https://dart.dev/guides/language/analysis-options
|