hard_analyser 1.9.0 copy "hard_analyser: ^1.9.0" to clipboard
hard_analyser: ^1.9.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;
}
3
likes
160
pub points
7%
popularity

Publisher

verified publisherluisgustavo.dev.br

A heavily opinionated analysis_options for Dart & Flutter projects

Repository (GitHub)
View/report issues

Topics

#lints #analyzer #analysis

Documentation

API reference

License

MIT (license)

More

Packages that depend on hard_analyser