Checks for copyright headers in each Dart file.
Activate this package:
dart pub global activate copywriter
Create a .copyright file in the root of your project, containing a template:
// Copyright {{ year }} John Doe. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
The copywriter commmand writes a header to any .dart files
that are missing one. It ignores the {{ year }}tag when checking headers,
and uses current year for new headers.
copywriter --help
-f, --file Path to file containing the copyright header
(defaults to ".copyright")
-h, --help Displays this information.
-d, --dry-run Prints files without a copyright header and exits.
-e, --extension The file extension to recursively search for in the current
directory. All files with this extension will be checked for a
copyright header and written unless --dry-run is set.
(defaults to ".dart")
clone and activate this package:
dart pub global activate --source path .