Skip to content

WordPress Coding Standards whitelist flags autocomplete snippets for Sublime Text

License

Notifications You must be signed in to change notification settings

barryceelen/sublime-wpcs-whitelist-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WPCS whitelist flags for Sublime Text

A Sublime Text 2/3/4 plug-in to add WordPress Coding Standards whitelist flags to your php code.

Use

Type phpcs or wpcs to select a whitelist flag via autocomplete.

Install via Package Control

  1. Install Package Control 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