removed_lint 진단: 더 이상 지원되지 않는 lint를 활성화했어요

removed_lint 진단: 더 이상 지원되지 않는 lint를 활성화했어요

Dart 분석기가 내보내는 진단에는 이름이 있어요. removed_lint분석 옵션 파일(analysis_options.yaml)에, 더 이상 지원되지 않는 lint를 활성화했을 때 Dart 분석기가 알려주는 컴파일 타임 진단이에요. 없어진 lint를 켜봐야 아무 효과가 없으니, 분석기가 그 사실을 미리 알려주는 거예요.

출처: removed_lint

본문

설명

분석기는 analysis options 파일이 더 이상 지원되지 않는 lint를 활성화할 때 이 진단을 만들어요.

예시

다음 코드는 lint always_declare_return_types가 더 이상 지원되지 않기 때문에 이 진단을 만들어요.

// %uri="analysis_options.yaml"
linter:
  rules:
    - always_declare_return_types
    - annotate_overrides

흔한 해결 방법

제거된 lint 규칙에 대한 참조를 삭제해요.

// %uri="analysis_options.yaml"
linter:
  rules:
    - annotate_overrides

더 알아보기