https://github.com/barryceelen/sublime-wpcs-whitelist-flags
WordPress Coding Standards whitelist flags autocomplete snippets for Sublime Text
https://github.com/barryceelen/sublime-wpcs-whitelist-flags
php-codesniffer phpcs sublime-text-plugin wordpress wordpress-development wordpress-standards
Last synced: 10 months ago
JSON representation
WordPress Coding Standards whitelist flags autocomplete snippets for Sublime Text
- Host: GitHub
- URL: https://github.com/barryceelen/sublime-wpcs-whitelist-flags
- Owner: barryceelen
- License: gpl-3.0
- Created: 2017-03-13T18:56:38.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2021-05-25T11:25:58.000Z (about 5 years ago)
- Last Synced: 2025-08-07T04:49:14.556Z (10 months ago)
- Topics: php-codesniffer, phpcs, sublime-text-plugin, wordpress, wordpress-development, wordpress-standards
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WPCS whitelist flags for Sublime Text
A [Sublime Text 2/3/4](http://www.sublimetext.com/) plug-in to add [WordPress Coding Standards whitelist flags](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Whitelisting-code-which-flags-errors) to your php code.
## Use
Type `phpcs` or `wpcs` to select a whitelist flag via autocomplete.
## Install via Package Control
1. [Install Package Control](https://packagecontrol.io/installation) if you haven't yet.
2. Open the command palette (Ctrl+Shift+P for Windows/Linux, Cmd+Shift+P for Mac).
3. Search for _Package Control: Install Package_ and hit Enter.
4. Type `WPCS whitelist flags` and press Enter to install it.
## Changelog
### 1.0.8
- Update README.md
- Shorten snippet description to only show the sniffer rule to ignore
- Add .gitignore
### 1.0.7
- Use the `// phpcs:ignore` format in stead of the deprecated `// WPCS: ...` flags
- Introduce `phpcs` tab trigger in addition to `wpcs`
### 1.0.6
- Add PreparedSQLPlaceholders replacement count flag
### 1.0.5
- Make precision alignment flag available to .js and .css files
### 1.0.4
- Tab triggers now contain more words.
This makes it easier to select a specific flag via the keyboard in addition to using the up or down arrow keys
### 1.0.3
- Add precision alignment flag (props @claudiosanches)
### 1.0.2
- Remove `tax_query` flag
### 1.0.1
- Add new whitelist flags for WPCS 0.12.0+
- Add `tax_query` flag deprecation notice
### 1.0.0
- Initial release