Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

johnpryan/copywriter

Repository files navigation

Checks for copyright headers in each Dart file.

CI

Usage

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")

Developing

clone and activate this package:

dart pub global activate --source path .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages