Skip to content

zyrukas/coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony coding standarts

Install composer

composer install
  1. How to setup code sniffer

  • Add code sniffer in Settings | Languages & Frameworks | PHP | Code Sniffer.

  • Select PHP Code Sniffer (phpcs) path: <conding-standarts>/vendor/bin/phpcs and click on Validate

  • Click OK

  • Turn on PHP Code Sniffer inspections in Settings | Editor | Inspections | PHP | PHP Code Sniffer validation.

  • Select the Custom coding standard in the list (use the Refresh button if needed) and select path to custom ruleset <conding-standarts>/configs/CodeSniffer/phpcs.xml.

  • Click OK to enable these new settings

  1. How to setup PhpStorm code style

  • Add code style in Settings | Editor | Code style | PHP.
  • Click on "Manage..." and import code style (Intellij IDEA code style XML): <conding-standarts>/configs/PhpStorm/CodingStyle.xml
  • Click OK
  1. How to setup mess detector

  • Add mess detector in Settings | Languages & Frameworks | PHP | Mess Detector.

  • Select PHP Mess Detector (phpmd) path: <conding-standarts>/vendor/bin/phpmd and click on Validate

  • Click OK

  • Turn on PHP Mess Detector in Settings | Editor | Inspections | PHP | PHP Mess Detector validation.

  • Select all validation options

  • Click OK to enable these new settings

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors