2017 © Pedro Peláez
 

library author-validation

Check if all authors of a particular file are mentioned in the copyright header.

image

phpcq/author-validation

Check if all authors of a particular file are mentioned in the copyright header.

  • Tuesday, July 10, 2018
  • by tril
  • Repository
  • 7 Watchers
  • 0 Stars
  • 17,609 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 2 Forks
  • 0 Open issues
  • 15 Versions
  • 5 % Grown

The README.md

Build Status Latest Version tagged Latest Version on Packagist Installations via composer per month, (*1)

Validate the author information within PHP files, composer.json, bower.json or packages.json.

This is useful to ensure that all authors (from git history) mentioned in all PHP files, the composer.json, bower.json and packages.json., (*2)

Usage

Add to your composer.json in the require-dev section:, (*3)

"phpcq/author-validation": "~1.0"

Call the binary:, (*4)

./vendor/bin/check-author.php

Optionally pass a path to check:, (*5)

./vendor/bin/check-author.php /path/to/some/repository/also/with/subdir

Configuration

Optionally you can pass the path to a config file (defaults to .check-author.yml) which shall be used., (*6)

# Example .check-author.yml

# Map multiple authors to a single one (aliasing of contributors).
mapping:
  # original: alias
  "John Doe <john@example.org>": "John Doe <jd@example.org>"
  # or original: [multiple aliases]
  "John Doe <john@example.org>": ["John Doe <jd@example.org>", "Acme Inc <info@example.org>"]
  # or
  "John Doe <john@example.org>":
    - "John Doe <jd@example.org>"
    - "Acme Inc <info@example.org>"

# Ignore commits from these authors (equivalent to cmd line parameter --ignore=...)
ignore:
  - Build Bot <bot@example.org>

# If present, scan only these and not the whole base dir (equivalent to cmd line arguments).
# Values must either be absolute paths or relative to the current directory.
include:
  - src

# Paths to exclude from scanning (equivalent to cmd line parameter --exclude=...)
exclude:
  - Foo.php
  - /tests/*
  - */languages

# Enforce copy-left author for certain files.
copy-left:
  "John Doe <jd@example.org>": "/library"
  # or
  "John Doe <jd@example.org>": ["/library", "File.php"]
  # or
  "John Doe <jd@example.org>":
    - "File.php"

# Add additional author metadata. It is used by some comparator handlers when outputting diff format.
# Author metadata of the config file is prioritized over extracted metadata from the files.

metadata:
  "John Doe <jd@example.org>":
    role:     "Translator"
    homepage: "http:/www.example.org"

The Versions

10/07 2018

dev-master

9999999-dev

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2018

dev-hotfix/1.1.9

dev-hotfix/1.1.9

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2018

dev-develop

dev-develop

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2018

dev-hotfix/1.1.8

dev-hotfix/1.1.8

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2018

1.1.8

1.1.8.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/07 2018

1.1.7

1.1.7.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2018

1.1.6

1.1.6.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2017

1.1.5

1.1.5.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2017

1.1.4

1.1.4.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2016

1.1.3

1.1.3.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

11/02 2016

1.1.2

1.1.2.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/08 2015

1.1.1

1.1.1.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

19/05 2015

1.1.0

1.1.0.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/01 2015

1.0.1

1.0.1.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires

11/01 2015

1.0.0

1.0.0.0

Check if all authors of a particular file are mentioned in the copyright header.

  Sources   Download

MIT

The Requires

 

The Development Requires