App/Flutter

pubspec.yaml, analysis_options.yaml

prden 2022. 9. 2. 21:59

1. pubspec.yaml

https://changjoopark.medium.com/%ED%94%8C%EB%9F%AC%ED%84%B0-flutter-%EC%9D%98-pubspec-yaml-ffa40b26296a

 

플러터(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

 

참고

https://dart.dev/guides/language/analysis-options

 

Customizing static analysis

Use an analysis options file and code comments to customize static analysis.

dart.dev