Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPCS: various improvements #20

Merged
merged 1 commit into from
May 8, 2021

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Mar 29, 2021

  • PHPCS: add a PHPCS configuration file containing all the common command-line parameters.
    This file will be automatically picked up by PHPCS and can be overruled locally by a [.]phpcs.xml file.
    Includes downgrading the cyclomatic complexity error to a warning.
  • Ant: remove the configuration CLI arguments which are now contained in the phpcs.xml.dist file from the build.xml task configuration.
  • Ant: add a CLI argument which will ignore CS warnings when determining the exit code, but will still show warnings in the report.
    Using this will also allow for enabling failonerror for the build step.
  • Git: Add the phpcs.xml.dist file to the .gitattributes file to be ignored when packaging a release.
  • Git: Add the potential local overload files to the .gitignore file.

* PHPCS: add a PHPCS configuration file containing all the common command-line parameters.
    This file will be automatically picked up by PHPCS and can be overruled locally by a `[.]phpcs.xml` file.
    Includes downgrading the cyclomatic complexity error to a warning.
* Ant: remove the configuration CLI arguments which are now contained in the `phpcs.xml.dist` file from the `build.xml` task configuration.
* Ant: add a CLI argument which will ignore CS warnings when determining the exit code, but will still _show_ warnings in the report.
    Using this will also allow for enabling `failonerror` for the build step.
* Git: Add the `phpcs.xml.dist` file to the `.gitattributes` file to be ignored when packaging a release.
* Git: Add the potential local overload files to the `.gitignore` file.
@jrfnl jrfnl mentioned this pull request Mar 29, 2021
@jrfnl
Copy link
Collaborator Author

jrfnl commented May 8, 2021

@grogy Anything I can do to move this PR forward ?

@grogy grogy merged commit cc91801 into php-parallel-lint:master May 8, 2021
@jrfnl jrfnl deleted the feature/phpcs-various-tweaks branch May 8, 2021 05:03
@jrfnl jrfnl added this to the 1.0.0 milestone Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants