tree: 93ac3b56c5b390ee1ffe7cf86936352a1ab315f1
  1. test/
  2. .gitignore
  3. copyright.go
  4. copyright_test.go
  5. README.md
go/src/infra/tricium/functions/copyright/README.md

Copyright Analyzer

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