Giter VIP home page Giter VIP logo

php-lint's Introduction

GitHub Action for PHPLint

GitHub Action implementation of the PHPLint Package provided by @Overtrue/phplint.

Usage

Use with GitHub Actions

.github/workflows/phplint.yml

name: PHP Linting
on: pull_request
jobs:
  phplint:
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v1
        - uses: michaelw90/PHP-Lint@master

If provided, a .phplint.yml file in the root will be used for configuration during run of the Action.

See it in practice

You can find a working and not working PR here: https://github.com/michaelw90/PHP-Lint-Demo/pulls

php-lint's People

Contributors

aricstewart avatar michaelw90 avatar philosoft avatar thureos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php-lint's Issues

Ignore Multiple Directories

Is there a way to ignore multiple directories and their sub-directories? I need to ignore /folder1 and /folder2 along with all contents. Both folders are in the root of the repo.

Could not open input file: composer-setup.php

Hi,

I'm running into an issue where the build fails when running the github action.

Step 4/11 : RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
 ---> Using cache
 ---> bc597164f15e
Step 5/11 : RUN php composer-setup.php
 ---> Running in 2fe92ef57d8b
The command '/bin/sh -c php composer-setup.php' returned a non-zero code: 1
Could not open input file: composer-setup.php
##[error]Docker build failed with exit code 1

Github Annotations

Creating annotations upon linting errors would be a nice feature to have, instead of having to look through Github Action logs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.