Skip to content

Instantly share code, notes, and snippets.

@dev-ext
Last active November 4, 2016 17:11
Show Gist options
  • Save dev-ext/7d8539c711ac5f76bd0199dca8f9c032 to your computer and use it in GitHub Desktop.
Save dev-ext/7d8539c711ac5f76bd0199dca8f9c032 to your computer and use it in GitHub Desktop.

Revisions

  1. Prosenjit Manna revised this gist Nov 4, 2016. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions project_manager.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    {
    "projects_path": ["/home/prosenjit/sublime-projects"]
    }
  2. Prosenjit Manna revised this gist Oct 26, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions project_manager.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    {
    "projects_path": ["/home/prosenjit/sublime-projects"]
    }
  3. Prosenjit Manna renamed this gist Oct 18, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. Prosenjit Manna created this gist Oct 18, 2016.
    18 changes: 18 additions & 0 deletions phpcs.sublime.settings
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    {


    "phpcs_executable_path": "/usr/local/bin/phpcs",
    "php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
    "phpcbf_executable_path": "/usr/local/bin/phpcbf",
    "phpmd_executable_path": "/usr/local/bin/phpmd",
    "phpcs_additional_args": {
    "--standard": "WordPress",
    "-n": ""
    },
    "phpcbf_additional_args": {
    "--standard": "WordPress",
    "-n": ""
    },


    }
    15 changes: 15 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
    chmod 777 phpcs.phar
    sudo mv phpcs.phar /usr/local/bin/phpcs
    curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar
    sudo chmod 777 phpcbf.phar
    sudo mv phpcbf.phar /usr/local/bin/phpcbf
    curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v1.12.2/php-cs-fixer.phar -o php-cs-fixer
    sudo chmod a+x php-cs-fixer
    sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer
    wget -c http://static.phpmd.org/php/latest/phpmd.phar
    chmod 777 phpmd.phar
    sudo mv phpmd.phar /usr/local/bin/phpmd
    git clone --depth=1 -b master https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs
    sudo phpcs --config-set installed_paths ~/dev/wpcs/
    phpcs -i