This project allows you to run a Nette Coding Standard check&fix in environments with PHP <7.1.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
config
vagrant
.gitignore
LICENSE
README.md
Vagrantfile
composer.json
ecs

README.md

Nette Coding Standard Vagrant Project

License

This project allows you to run a Nette Coding Standard check&fix in environments with PHP <7.1.

Usage

Install

Install Vagrant and Virtualbox.

Synchronize project folder

Add project folder, you want to check, to Vagrantfile:

Vagrant.configure("2") do |config|
  ...
  config.vm.synced_folder "path/to/project-to-check", "/vagrant_data/project-to-check"
  ...
end

Note: You can add multiple project folders

Style check & fix

Now run Vagrant and connect via SSH.

$ vagrant up
$ vagrant ssh

Once you are connected via SSH move to /vagrant folder and run check&fix.

$ ./ecs check /vagrant_data/project-to-check/app/ --config vendor/nette/coding-standard/coding-standard-php70.neon --fix

For more details read Nette Coding Standard documentation.