hard_analyser 1.0.0 copy "hard_analyser: ^1.0.0" to clipboard
hard_analyser: ^1.0.0 copied to clipboard

A heavily opinionated analysis_options for Dart & Flutter projects

example/hard_analyser_example.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;
}
4
likes
0
pub points
8%
popularity

Publisher

verified publisherluisgustavo.dev.br

A heavily opinionated analysis_options for Dart & Flutter projects

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on hard_analyser