/copyright-updater

Add or replace license/copyright boilerplate in source code files.

Primary LanguagePythonMIT LicenseMIT

Copyright Updater

Overview

Add or replace license/copyright boilerplate in source code files.

Features

  • Add multiple source code directories.
  • Autodetect file type and update with proper format.
  • Custom configuration for more file types and copyright formats.
  • Python 2 and 3 supported.

Usage

Configure rule.yaml first. And then

python copyright.py -c rule.yaml

Notice

If your copyright/license comment adheres to your other comments without any blank lines, your comment will be erased. So leave a blank line between your copyright/license and other comments.

License

Copyright Updater is released under the MIT License.