2017 © Pedro Peláez
 

library diffcs

Run PHP Code Sniffer in pull requests

image

marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  • Tuesday, October 3, 2017
  • by marcelsud
  • Repository
  • 4 Watchers
  • 9 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 5 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

DiffCS

A tool to perform code sniffer checks of your pull requests on Github., (*1)

How To Install

You can grab a copy of marcelsud/diffcs in either of the following ways:, (*2)

You can simply download a pre-compiled and ready-to-use version as a Phar to any directory. Simply download the latest diffcs.phar file from our releases page:, (*3)

curl -LO https://github.com/marcelsud/diffcs/releases/download/v0.2.1/diffcs.phar
php diffcs.phar --help

Optionally you can install it globally by adding it to your bin folder:, (*4)

chmod +x diffcs.phar
mv diffcs.phar /usr/local/bin/diffcs

Via composer:

composer global require "marcelsud/diffcs":"dev-master"
sudo ln -nfs ~/.composer/vendor/bin/diffcs /usr/local/bin/diffcs

Via docker:

docker run --rm -it marcelsud/diffcs --help

How To Use

For public repositories:

Run the following command: diffcs <source>/<project> <pull request id>, where:, (*5)

  • <source> is the corporation/user behind the project;
  • <project> is the project name on Github;
  • <pull request id> is the pull request id, created by Github.

Example:, (*6)

diffcs symfony/symfony 13342

For private repositories:

Authenticate with username and password

Execute following command: diffcs <source>/<project> <pull request id> --github-user=<github username>, where:, (*7)

  • <github username> is your Github username.
  • the password will be asked afterwards and is only required check private repositories.

Example:, (*8)

diffcs symfony/symfony 13342 --github-user=yourusername

Authenticate with Github token

Execute following command: diffcs <source>/<project> <pull request id> --github-token=<github token>, where:, (*9)

Example:, (*10)

diffcs symfony/symfony 13342 --github-token=256199c24f9132f84e9bb06271ff65a3176a2f05

Image, (*11)

The Versions

03/10 2017

dev-rc/v0.3.0

dev-rc/v0.3.0 https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

03/10 2017

dev-return-the-correct-exit-code

dev-return-the-correct-exit-code https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

03/10 2017

dev-proposal/environment

dev-proposal/environment https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

02/10 2017

dev-master

9999999-dev https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

02/10 2017

v0.2.1

0.2.1.0 https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

02/10 2017

v0.2.0

0.2.0.0 https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

30/09 2017

dev-add-phpcs-dependency

dev-add-phpcs-dependency https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

31/01 2016

dev-issue-10

dev-issue-10 https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

01/04 2015

v0.1.1

0.1.1.0 https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos

17/03 2015

v0.1.0

0.1.0.0 https://github.com/marcelsud/diffcs

Run PHP Code Sniffer in pull requests

  Sources   Download

BSD Style

The Requires

 

by Marcelo Santos