mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 15:50:01 +00:00
Increase the severity of the unused_import hint (to a warning).
Change-Id: Ie65eb7e9c0f48c54a1c537e821c88a5ea8451266 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119101 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
eac2eadff7
commit
40cc975932
|
@ -1,4 +1,5 @@
|
|||
include: package:pedantic/analysis_options.1.8.0.yaml
|
||||
|
||||
analyzer:
|
||||
# This currently finds ~1,200 implicit-casts issues when enabled.
|
||||
# strong-mode:
|
||||
|
@ -6,6 +7,8 @@ analyzer:
|
|||
exclude:
|
||||
- test/mock_packages/**
|
||||
errors:
|
||||
# Increase the severity of the unused_import hint.
|
||||
unused_import: warning
|
||||
# Ignoring "style" lint rules from pedantic for now. There are pre-existing
|
||||
# violations that need to be cleaned up. Each one can be cleaned up and
|
||||
# enabled according to the value provided.
|
||||
|
|
|
@ -7,7 +7,6 @@ import 'package:analysis_server/protocol/protocol_generated.dart';
|
|||
import 'package:analysis_server/src/edit/edit_dartfix.dart';
|
||||
import 'package:analyzer_plugin/protocol/protocol_common.dart';
|
||||
import 'package:linter/src/rules.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:test/test.dart';
|
||||
import 'package:test_reflective_loader/test_reflective_loader.dart';
|
||||
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
include: package:pedantic/analysis_options.1.8.0.yaml
|
||||
|
||||
analyzer:
|
||||
# This currently finds ~4,500 implicit-casts issues when enabled.
|
||||
# strong-mode:
|
||||
# implicit-casts: false
|
||||
errors:
|
||||
# Increase the severity of the unused_import hint.
|
||||
unused_import: warning
|
||||
# Ignoring "style" lint rules from pedantic for now. There are pre-existing
|
||||
# violations that need to be cleaned up. Each one can be cleaned up and
|
||||
# enabled according to the value provided.
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
||||
errors:
|
||||
# Increase the severity of the unused_import hint.
|
||||
unused_import: warning
|
||||
exclude:
|
||||
- test/data/**
|
||||
linter:
|
||||
|
|
|
@ -3,6 +3,9 @@ include: package:pedantic/analysis_options.1.8.0.yaml
|
|||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
||||
errors:
|
||||
# Increase the severity of the unused_import hint.
|
||||
unused_import: warning
|
||||
|
||||
linter:
|
||||
rules:
|
||||
|
|
Loading…
Reference in a new issue