包详细信息

@phoenix-plugin-registry/mikaeljorhult.brackets-php-lint-tools

mikaeljorhult35MIT0.1.11

Analyze and lint PHP using several code analysis tools. Please note that this extension needs PHP to be installed on your machine to work properly.

php, codequality, phpcs, phpcpd

自述文件

Brackets PHP Code Quality Tools

Brackets/Edge Code extension that lint PHP files using several code analysis tools.

Requirements

Please note that this extension uses the PHP executable to run its analysis tools so PHP must be installed on your machine and available globally.

Installation

You may download and install this extension in one of three ways. Using Extension Manager to find it through the extension registry you always find the latest stable release conveniently within Brackets.

You can also get the latest work-in-progress version by downloading or installing the extension directly from the repository. This allows you to try new features that might not have been tested properly yet.

Install using Extension Manager

  1. Open the the Extension Manager from the File menu.
  2. Click the Available tab i upper left corner.
  3. Find PHP Code Quality Tools in list of extensions (use the search field to filter the list).
  4. Click Install.

Install from URL

  1. Open the the Extension Manager from the File menu.
  2. Click on Install form URL...
  3. Copy and paste following URL in the text field: https://github.com/mikaeljorhult/brackets-php-code-quality-tools
  4. Click Install.

Install from file system

  1. Download this extension using the ZIP button and unzip it.
  2. Copy it in Brackets' /extensions/user folder by selecting Show Extension Folder in the Help menu.
  3. Reload Brackets.

Usage

Whenever a PHP file is opened or saved the selected tools will automatically analyze it and give you a list of detected errors and warnings through Brackets own lint pane.

What tools are used and settings for these may be set in the extension settings by going to View > PHP Code Quality Tools.

Available tools

更新日志

Brackets PHP Code Quality Tools Changelog

All notable changes to this project will be documented in this file.

0.1.11 - 2016-04-23

  • Update Mess Detector to version 2.4.2.

0.1.10 - 2016-02-23

  • Symfony2 coding standards. Thanks to João Campos (@samura).
  • Portuguese translation. Thanks to João Campos (@samura).

0.1.9 - 2016-01-24

  • Update WordPress coding standards.
  • Update Copy/Paste Detector to version 2.0.2.
  • Update Mess Detector to version 2.3.2.
  • Update CodeSniffer to version 2.5.1.

0.1.8 - 2016-01-22

  • MediaWiki coding standards.
  • Update Drupal coding standards.
  • Update Mess Detector to version 2.1.3.
  • Support all WordPress' coding standards. Thanks to Chris Zarate (@chriszarate).
  • Update CodeSniffer to version 2.3.3. Thanks to Chris Zarate (@chriszarate).

0.1.7 - 2014-09-16

  • WordPress and Drupal coding standards.

0.1.6 - 2014-09-14

  • Update Mess Detector to version 2.1.1.
  • Support for dark themes. Thanks to Andrew MacKenzie (@mackenza).
  • French translation. Thanks to rainje (@rainje).
  • Italian translation. Thanks to Christopher Pecoraro (@chrispecoraro).

0.1.5

  • Retrieve errors when preferences are updated.
  • Better structure for parser modules.

0.1.4

  • Show longer error messages from CodeSniffer.

0.1.3

  • Add Mess Detector to available tools.
  • Retrieve errors from on file on startup.
  • Fix issue with CodeSniffer errors not showing up on Windows.

0.1.2

  • Only collect errors in PHP files.

0.1.1

  • Fix issue with loading order of modules on Windows.

0.1.0

  • Initial release.