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

This package define a set of lint rules to build Flutter apps. We use this internally at Stokkur Software.

example/lib/main.dart

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the ../LICENSE file.

// The code in this file (and all other dart files in the package) is
// analyzed using the rules activated in `analysis_options.yaml`.

// The following syntax deactivates a lint for the entire file:
// ignore_for_file: avoid_renaming_method_parameters

void main() {
  // The following syntax deactivates a lint on a per-line bases:
  print('Hello World'); // 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;
}
2
likes
130
pub points
6%
popularity

Publisher

verified publisherstokkur.is

This package define a set of lint rules to build Flutter apps. We use this internally at Stokkur Software.

Homepage
Repository
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

More

Packages that depend on stokkur_dart_analyzer