A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nette/coding-standard below:

nette/coding-standard: Nette Coding Standard code checker & fixer

Nette Coding Standard code checker & fixer

This is set of sniffs and fixers that checks and fixes code of Nette Framework against Coding Standard in Documentation.

Install the tool in a global directory. Its name will be for example /nette-cs:

composer create-project nette/coding-standard /nette-cs

Check coding standard for PHP 7.1 in folders src and tests:

/nette-cs/ecs check src tests --preset php71

And fix it:

/nette-cs/ecs fix src tests --preset php71

If no PHP version is specified, it will try to find out from the composer.json file.

# .github/workflows/coding-style.yml
steps:
    - uses: actions/checkout@v2
    - uses: shivammathur/setup-php@v2
      with:
          php-version: 8.0

    - run: composer create-project nette/coding-standard temp/coding-standard
    - run: php temp/coding-standard/ecs check src tests --preset php71

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4