Skip to content

Files

Latest commit

 

History

History
33 lines (22 loc) · 597 Bytes

unnecessary_library_directive.md

File metadata and controls

33 lines (22 loc) · 597 Bytes

Pattern: Unnecessary library directive

Issue: -

Description

DO use library directives if you want to document a library and/or annotate a library.

Example of incorrect code:

library;

Example of correct code:

/// This library does important things
library;
@TestOn('js')
library;

NOTE: Due to limitations with this lint, libraries with parts will not be flagged for unnecessary library directives.

Further Reading