<commit_before>Sublime PHP CodeSniffer, Linter and Mess Detector Plugin
========================================================

This plugin adds PHP CodeSniffer, the PHP Linter and phpmd support to Sublime Text 2.

Installation
------------

Use Sublime Text 2's [Package Control](http://wbond.net/sublime_packages/package_control) (Preferences -> Package Control -> Install Package -> PHP CodeSniffer) to install this plugin.

Or

Simply checkout the git repo into “~/Library/Application Support/Sublime Text 2/Packages/Phpcs or the equivalent folder on Windows or Linux.


PHP CodeSniffer Support For Sublime Text 2
------------------------------------------

This plugin adds support for running PHP CodeSniffer, the PHP linter and PHPMD from inside Sublime Text 2.

Right-click in the editor to:

* Sniff the current file

You can also open up the Command Palette (CTRL + SHIFT + P on Linux), and type
'PHP CodeSniffer' to see what you can do with PHP CodeSniffer in the currently open file.

For more information on how to run this plugin, visit [here](http://soulbroken.co.uk/code/sublimephpcs)


Configuration
-------------

You can configure:

* phpmd_executable_path - The path to the PHP executable. If empty string, use PATH to find it
* phpcs_additional_args - This is the extra information you want to pass to the phpcs command. For example which “standard” you want to run, and if you want to show warnings or not
* phpcs_execute_on_save - Do you want the code sniffer plugin to run on file save for php files?
* phpcs_show_gutter_marks - Do you want the errors to be displayed in the gutter?
* phpcs_show_quick_panel - Do you want the errors to be displayed in the quick panel?
* phpcs_linter_run - Do you want the PHP linter to run?
* phpcs_linter_regex - The regex for the PHP linter output
* phpcs_executable_path - The path to the phpcs executable. If empty string, use PATH to find it
* phpcs_show_errors_on_save - Do you want the errors to be displayed in quick_panel on save?
* phpcs_show_errors_in_status - Do you want the errors to be displayed in status bar when clicking on the line with error?
* phpmd_run - Do you want the PHPMD to run? Off by default
* phpmd_executable_path - The path to the phpmd executable. If empty string, use PATH to find it
* phpmd_additional_args - This is the extra information you want to pass to the phpcs command. For example which "rulesets" you want to run


Requirements
------------

Requirements for this plugin:

* PHP_CodeSniffer 1.3.* (potentially works with lower versions, but this hasn't been tested)
* Python 2.6

This plugin has been tested on:
<commit_msg>Corrected the argument in the README file for php path<commit_after>Sublime PHP CodeSniffer, Linter and Mess Detector Plugin
========================================================

This plugin adds PHP CodeSniffer, the PHP Linter and phpmd support to Sublime Text 2.

Installation
------------

Use Sublime Text 2's [Package Control](http://wbond.net/sublime_packages/package_control) (Preferences -> Package Control -> Install Package -> PHP CodeSniffer) to install this plugin.

Or

Simply checkout the git repo into “~/Library/Application Support/Sublime Text 2/Packages/Phpcs or the equivalent folder on Windows or Linux.


PHP CodeSniffer Support For Sublime Text 2
------------------------------------------

This plugin adds support for running PHP CodeSniffer, the PHP linter and PHPMD from inside Sublime Text 2.

Right-click in the editor to:

* Sniff the current file

You can also open up the Command Palette (CTRL + SHIFT + P on Linux), and type
'PHP CodeSniffer' to see what you can do with PHP CodeSniffer in the currently open file.

For more information on how to run this plugin, visit [here](http://soulbroken.co.uk/code/sublimephpcs)


Configuration
-------------

You can configure:

* phpcs_php_path - The path to the PHP executable. If empty string, use PATH to find it
* phpcs_additional_args - This is the extra information you want to pass to the phpcs command. For example which “standard” you want to run, and if you want to show warnings or not
* phpcs_execute_on_save - Do you want the code sniffer plugin to run on file save for php files?
* phpcs_show_gutter_marks - Do you want the errors to be displayed in the gutter?
* phpcs_show_quick_panel - Do you want the errors to be displayed in the quick panel?
* phpcs_linter_run - Do you want the PHP linter to run?
* phpcs_linter_regex - The regex for the PHP linter output
* phpcs_executable_path - The path to the phpcs executable. If empty string, use PATH to find it
* phpcs_show_errors_on_save - Do you want the errors to be displayed in quick_panel on save?
* phpcs_show_errors_in_status - Do you want the errors to be displayed in status bar when clicking on the line with error?
* phpmd_run - Do you want the PHPMD to run? Off by default
* phpmd_executable_path - The path to the phpmd executable. If empty string, use PATH to find it
* phpmd_additional_args - This is the extra information you want to pass to the phpcs command. For example which "rulesets" you want to run


Requirements
------------

Requirements for this plugin:

* PHP_CodeSniffer 1.3.* (potentially works with lower versions, but this hasn't been tested)
* Python 2.6

This plugin has been tested on:

{'fraction_non_alphanumeric': 0.09557990177559501, 'fraction_numerical': 0.003400075557234605, 'mean_word_length': 3.7788808664259927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2155760', 'n_tokens_mistral': 1523, 'n_tokens_neox': 1466, 'n_words': 737}