copyright

command
v0.0.0-...-e560ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

README

Tricium analyzer checking for the appropriate copyright header in files.

Default header regex is:

Copyright 20[0-9][0-9] The [A-Za-z]* Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Issues detected:

  • MissingCopyright: Missing copyright statement
  • IncorrectCopyright: Incorrect copyright text
  • OutOfDateCopyright: Out of date text (with a (c) in the old Chromium standard)

Consumes Tricium FILES and produces Tricium RESULTS comments.

Development and Testing

Local testing:

$ go build
$ ./copyright --input=test --output=output

Deployment

Deploy a new version of the analyzer using CIPD:

$ go build
$ cipd create -pkg-def=cipd.yaml
<outputs the VERSION>
$ cipd set-ref infra/tricium/function/copyright -ref live -version VERSION

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL