Adds entrypoints for the ament_copyright
utility to allow checking PickNik's headers for copyright info and proprietary licenses.
Clone and build this repo so it's available in your ROS package paths.
To add missing PickNik-proprietary license headers to all files in the current directory, run the command below (picknik
sets PickNik Inc. as the copyright holder, and picknik_proprietary
uses our closed-source proprietary license template).
ament_copyright --add-missing picknik picknik_proprietary .
This will insert the following license header in source code files that do not already have a license header that ament_copyright
recognizes:
// Copyright 2021 PickNik Inc.
// All rights reserved.
//
// Unauthorized copying of this code base via any medium is strictly prohibited.
// Proprietary and confidential.
Here is a basic .pre-commit-config.yaml
file that automatically inserts the PickNik proprietary license in source code files:
repos:
- repo: local
hooks:
- id: ament_copyright
name: ament_copyright
language: system
entry: ament_copyright
args: ['--add-missing', 'picknik', 'picknik_proprietary', '.']