avoid_using_api
A avoid_using_api rule which warns about usage of avoided APIs.
You can configure specific classes, methods, or packages that should be avoided in your codebase, along with custom warning messages.
Example config:
plugins:
solid_lints:
diagnostics:
avoid_using_api:
avoid_using_api: true
severity: warning
entries:
- class_name: LegacyClient
source: package:legacy_api/legacy_api.dart
reason: 'Use ModernClient instead.'
severity: error
- identifier: print
source: dart:core
reason: 'Use logging framework instead.'
Parameters
entries (List<Map>)
A list of BannedCodeOption parameters.
severity (String?)
The default severity of the lint for each entry.