Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
ecs
 
 

README.md

Check & Fix Your Code with Nette Coding Standard

Downloads this Month Build Status Latest Stable Version License

This is set of sniff and fixers combined under EasyCodingStandard that checks and fixes your PHP code against Coding Standard in Documentation.

What Rules are Covered?

This package covers part of official rules, not all.

When you open /examples directory, all files you'll see are checked by this coding standard. The code might look invalid compared to Nette code you know, but it's only because this tool doesn't check it (yet).

All general rules you can find in coding-standard-php56.yml file.

Install and Use

Local Setup

Installation into global folder named nette-coding-standard:

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

Check coding standard:

nette-coding-standard/ecs check src tests --config nette-coding-standard/coding-standard-php56.yml

And fix it:

nette-coding-standard/ecs check src tests --config nette-coding-standard/coding-standard-php56.yml --fix

Travis Setup

# .travis.yml
install:
    - composer create-project nette/coding-standard temp/nette-coding-standard

script:
    - temp/nette-coding-standard/ecs check src tests --config temp/nette-coding-standard/coding-standard-php56.yml
You can’t perform that action at this time.