All Projects → benmatselby → Sublime Phpcs

benmatselby / Sublime Phpcs

Licence: other
🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter and Mess Detector Support for Sublime Text

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Sublime Phpcs

Golite
Add essential language support for the Go language to Sublime Text 3.
Stars: ✭ 14 (-98.26%)
Mutual labels:  linter, sublime-text
Wsl Proxy
WSL proxy files for editor/linux interop
Stars: ✭ 134 (-83.35%)
Mutual labels:  linter, sublime-text
SublimeLinter-contrib-markdownlint
A Sublime Text Linter for Markdown/CommonMark files.
Stars: ✭ 29 (-96.4%)
Mutual labels:  linter, sublime-text
Sublimelinter
The code linting framework for Sublime Text 3
Stars: ✭ 1,920 (+138.51%)
Mutual labels:  linter, sublime-text
Phpqa
PHPQA all-in-one Analyzer CLI tool
Stars: ✭ 336 (-58.26%)
Mutual labels:  linter, php-codesniffer
Xo
❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
Stars: ✭ 6,277 (+679.75%)
Mutual labels:  linter
Ls Lint
An extremely fast directory and filename linter - Bring some structure to your project directories
Stars: ✭ 745 (-7.45%)
Mutual labels:  linter
Sublime Markdown Extended
Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
Stars: ✭ 645 (-19.88%)
Mutual labels:  sublime-text
Dev Setup
macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
Stars: ✭ 5,590 (+594.41%)
Mutual labels:  sublime-text
Awesome Go Linters
A curated list of awesome Go linters. More than 60 linters and tools!
Stars: ✭ 801 (-0.5%)
Mutual labels:  linter
Sonarts
Static code analyzer for TypeScript
Stars: ✭ 776 (-3.6%)
Mutual labels:  linter
Suplemon
🍋 Console (CLI) text editor with multi cursor support. Suplemon replicates Sublime Text like functionality in the terminal. Try it out, give feedback, fork it!
Stars: ✭ 734 (-8.82%)
Mutual labels:  sublime-text
Pre Commit
A framework for managing and maintaining multi-language pre-commit hooks.
Stars: ✭ 7,024 (+772.55%)
Mutual labels:  linter
Pydocstyle
docstring style checker
Stars: ✭ 752 (-6.58%)
Mutual labels:  linter
Phplint
🐛 A tool that can speed up linting of php files by running several lint processes at once.
Stars: ✭ 646 (-19.75%)
Mutual labels:  linter
Text Pastry
Extend the power of multiple selections in Sublime Text. Modify selections, insert numeric sequences, incremental numbers, generate uuids, date ranges, insert continuously from a word list and more.
Stars: ✭ 782 (-2.86%)
Mutual labels:  sublime-text
Stylelint Processor Styled Components
Lint your styled components with stylelint!
Stars: ✭ 639 (-20.62%)
Mutual labels:  linter
Tslint
🚦 An extensible linter for the TypeScript language
Stars: ✭ 5,922 (+635.65%)
Mutual labels:  linter
A File Icon
Sublime Text File-Specific Icons for Improved Visual Grepping
Stars: ✭ 767 (-4.72%)
Mutual labels:  sublime-text
Lucario
The best flat theme for Vim, Atom, Sublime Text, Jetbrains Editors, Terminal.app, iTerm, Xcode and XTerm
Stars: ✭ 711 (-11.68%)
Mutual labels:  sublime-text

sublime-phpcs

This plugin adds PHP CodeSniffer, PHP Code Beautifier and Fixer, PHP Coding Standards Fixer, the PHP Linter, PHP Mess Detector, Scheck support to Sublime Text.

For more information about this plugin such as features, installation requirements etc, please click here

Configuration

You will need to configure this plugin to work for your setup, please view the options here

FAQ

What do I do when I get "OSError: [Errno 8] Exec format error"?

  • This seems to be an issue you may get with regards to wrapper scripts.
  • Please make sure that the application/script you are referencing has the correct shebang line, as per GH-79

What do I do when I get "OSError: [Error 2] No such file or directory"?

  • Well, first of all you need to check that you have PHP_CodeSniffer, and if being used, the phpmd application.
  • If you have these applications installed, then it sounds like those applications are not in your PATH, or cannot be found in your PATH by the Python runtime, so configure "phpcs_php_path", "phpcs_executable_path", "phpmd_executable_path" and "php_cs_fixer_executable_path" with the actual paths to those applications

What do I do when I get "OSError: [Errno 13] Permission denied"?

  • It sounds like your path settings are incorrect.
  • You need to make sure that when you specifiy the path you include the entire path including the application
$ which phpcs
/usr/local/bin/phpcs
  • That entire output is the path you need in your configs.

What if I've installed the applications using Homebrew?

If you have installed php-cs-fixer, phpmd or phpcs via homebrew then please make sure that you define the "*_executable_path" option to the .phar application and not the wrapper script that is placed in your bin folder, as this will cause odd behaviour.

What other Key Bindings can I setup?

The following is a list of commands that you can bind to a keyboard shortcut:

  • phpcs_fix_this_file
  • phpcs_clear_sniffer_marks
  • phpcs_goto_next_error
  • phpcs_show_previous_errors
  • phpcs_sniff_this_file

In order to achieve this you need to add the following to one of your key bindings settings file:

{ "keys": ["ctrl+super+t"], "command": "phpcs_clear_sniffer_marks" }

To decide which "Fixer" to use, you can do:

{ "keys": ["super+k", "super+f"], "command": "phpcs_fix_this_file", "args": {"tool": "CodeBeautifier"}},

or

{ "keys": ["super+k", "super+f"], "command": "phpcs_fix_this_file", "args": {"tool": "Fixer"}},

You can then change the ctrl+super+t combination to something of your choosing.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].