loganhenson
11/2/2018 - 8:09 PM

phpcs and tlint SUPER basic setup instructions

phpcs and tlint SUPER basic setup instructions

SUPER simple intro to a new dev for the steps to take to get PHPCS+Tlint set up in PHPstorm, and also the steps we would recommend Sublime use

Setting up linters for Tighten:

install phpcs and tlint

composer global require "squizlabs/php_codesniffer=*"
composer global require tightenco/tlint

configure them

PHPStorm:

  • phpcs
    • Comes with phpcs integration out of the box, you’re done
  • tlint
    • install the plugin TLint

Sublime:

  • phpcs
  • tlint
    • Right now there is only terminal support from tlint, so you may use tlint lint $filename or tlint —diff from the project’s current working directory