Nova

Extensions


Readme

phpcs for Nova

This issues extension for Nova provides an interface to phpcs. It will be used with files that have the “PHP” language mode.

Linter Installation

Before using this extension, you must ensure that phpcs is installed on your system. The preferred method is using composer for both system-wide and project-wide installations.

Once phpcs is installed, you can proceed to install the phpcs extension if it is not yet installed.

System-wide Installation

The phpcs linter can be installed globally using the Composer Dependency Manager for PHP.

  1. Install composer.
  2. Require phpcs package by typing the following in a terminal:

    bash composer global require squizlabs/php_codesniffer

Project-wide Installation

The phpcs linter can be installed in your project using the Composer Dependency Manager for PHP.

  1. Install composer.
  2. Require phpcs package by typing the following at the root of your project in a terminal:

    bash composer require --dev squizlabs/php_codesniffer

Installation

  1. Open Nova.
  2. Choose menu Extensions > Extension Library...
  3. Search extension phpcs
  4. Click Install.

Basic Configuration

You can set the executable_path and standard in Extensions > Extension Library... > phpcs > Preferences.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


Changelog

Version 1.3.0

  • Re-structure extension
  • Add support per-workspace config

Version 1.2.0

  • Prevent remote document

Version 1.1.0

  • Optimized codes

Version 1.0

  • Initial release

License

The MIT License (MIT)

Copyright (c) Dinh Quoc Han contact@dinhquochan.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.