secure_pubspec_urls
'{0}' プロトコルは安全ではないため、使用しないでください。
説明
#pubspec.yaml ファイル内の URL が http のような安全でないスキームを使用している場合、アナライザーはこの診断を生成します。
例
#pubspec.yaml ファイルに http URL が含まれているため、以下のコードはこの診断を生成します。
yaml
dependencies:
example: any
repository: http://github.com/dart-lang/example一般的な修正
#URL のスキームを https のような安全なスキームを使用するように変更してください。
yaml
dependencies:
example: any
repository: https://github.com/dart-lang/example