aqlinter 1.0.2
aqlinter: ^1.0.2 copied to clipboard
This is AQoong's favorit linter set
/// This code used the example code of flutter_lints as it is.
/// https://github.com/flutter/packages/blob/main/packages/flutter_lints/example/lib/main.dart
void main() {
const String partOne = 'Hello';
const String partTwo = 'World';
// The following syntax deactivates a lint on a per-line bases:
print('$partOne $partTwo'); // ignore: avoid_print
}
abstract class Base {
int methodA(int foo);
String methodB(String foo);
}
// Normally, the parameter renaming from `foo` to `bar` in this class would
// trigger the `avoid_renaming_method_parameters` lint, but it has been
// deactivated for the file with the `ignore_for_file` comment above.
class Sub extends Base {
@override
int methodA(int bar) => bar;
@override
String methodB(String bar) => bar;
}