removed_lint_use 진단: 제거된 lint가 analysis options 파일에 사용되었어요

removed_lint_use 진단: 제거된 lint가 analysis options 파일에 사용되었어요

Dart 분석기가 내보내는 진단에는 이름이 있어요. removed_lint_use이미 제거된 lint를 분석 옵션 파일(analysis_options.yaml)에서 사용했을 때 Dart 분석기가 알려주는 컴파일 타임 진단이에요. removed_lint 진단이 "지원이 중단된 lint"를 다룬다면, 쪽은 완전히 제거된 lint를 다룬다고 보면 돼요. 어느 쪽이든 참조해 봐야 아무 효과가 없다는 점은 같아요.

출처: removed_lint_use

본문

설명

분석기는 제거된 lint가 analysis options 파일에 사용되었을 때 이 진단을 만들어요. lint 자체가 더 이상 존재하지 않기 때문에, 이를 참조해도 아무 효과가 없어요.

예시

lint removed_lint가 제거되었다고 가정할 때, 다음 옵션 파일은 이 진단을 만들어요.

linter:
  rules:
    - always_put_required_named_parameters_first
    - removed_lint

흔한 해결 방법

lint 코드에 대한 참조를 제거해요.

linter:
  rules:
    - always_put_required_named_parameters_first

더 알아보기