mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
* test add lint as separate action * nicer logging * only detect changes in dart files * fix printV warnings being displayed when editing printV --------- Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
23 lines
857 B
Dart
23 lines
857 B
Dart
import "package:analysis_server_plugin/plugin.dart";
|
|
import "package:analysis_server_plugin/registry.dart";
|
|
import "package:cw_custom_lints/http_force_proxy/http_force_proxy_rule.dart";
|
|
import "package:cw_custom_lints/print_verbose/print_verbose_fix.dart";
|
|
import "package:cw_custom_lints/print_verbose/print_verbose_rule.dart";
|
|
import "package:cw_custom_lints/restricted_imports/restricted_imports_rule.dart";
|
|
|
|
final plugin = CwCustomLintsPlugin();
|
|
|
|
class CwCustomLintsPlugin extends Plugin {
|
|
@override
|
|
String get name => "cw_custom_lints";
|
|
|
|
@override
|
|
void register(PluginRegistry registry) {
|
|
registry.registerWarningRule(PrintVerboseRule());
|
|
registry.registerWarningRule(RestrictedImportsRule());
|
|
registry.registerWarningRule(HttpForceProxyRule());
|
|
|
|
registry.registerFixForRule(PrintVerboseRule.code, ReplaceWithPrintV.new);
|
|
}
|
|
}
|