1. pubspec.yaml
플러터(Flutter)의 pubspec.yaml
플러터 프로젝트를 새로 만들면 pubspec.yaml 파일을 볼 수 있습니다. Node.js의 package.json과 같은 패키지 의존성 관리 및 프로젝트 정의 등의 역할을 갖습니다.
changjoopark.medium.com
2. analysis_options.yaml의 역할?
You can customize static analysis to look for a variety of potential problems, including errors and warnings specified in the Dart language spec. You can also configure the linter, one of the analyzer’s plugins, to ensure that your code complies with the Dart Style Guide and other suggested guidelines in Effective Dart.
include: package:lints/recommended.yaml
analyzer:
exclude: [build/**]
language:
strict-casts: true
strict-raw-types: true
linter:
rules:
- cancel_subscriptions
- Use include: url to bring in options from the specified URL—in this case, from a file in the lints package. Because YAML doesn’t allow duplicate keys, you can include at most one file.
- Use the analyzer: entry to customize static analysis: enabling stricter type checks, excluding files, ignoring specific rules, changing the severity of rules, or enabling experiments.
- Use the linter: entry to configure linter rules.
참고
https://dart.dev/guides/language/analysis-options
Customizing static analysis
Use an analysis options file and code comments to customize static analysis.
dart.dev
'App > Flutter' 카테고리의 다른 글
Null Safety, setState() (0) | 2022.09.12 |
---|---|
Udemy - Section4. Widgets,Styling, Adding Logic (0) | 2022.09.06 |
FireBase connection Error (0) | 2022.08.31 |
Flutter 기본 위젯 4가지 & 레이아웃 & stateful 위젯 vs. stateless 위젯 (0) | 2022.08.26 |
Flutter-Provider (0) | 2022.08.24 |