Pattern: Missing use of library directive for annotation
Issue: -
Attach library annotations to library directives, rather than some other library-level element.
Example of incorrect code:
@TestOn('browser')
import 'package:test/test.dart';
void main() {}
Example of correct code:
@TestOn('browser')
library;
import 'package:test/test.dart';
void main() {}