secure_pubspec_urls 진단: pubspec URL은 안전한 프로토콜을 사용하세요
secure_pubspec_urls 진단: pubspec URL은 안전한 프로토콜을 사용하세요
'{0}' 프로토콜은 안전하지 않으니 사용하면 안 돼요.
본문
설명
분석기는 pubspec.yaml 파일의 URL이 http처럼 안전하지 않은 스킴(scheme)을 사용할 때 이 진단을 만들어요.
예시
다음 코드는 pubspec.yaml 파일에 http URL이 들어 있기 때문에 이 진단을 만들게 돼요.
dependencies:
example: any
repository: http://github.com/dart-lang/example
흔한 해결 방법
URL의 스킴을 https 같은 안전한 스킴으로 바꿔요.
dependencies:
example: any
repository: https://github.com/dart-lang/example