Skip to content

backdrop-ops/phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Backdrop Coding Standards

See the official documentation for Backdrop PHP coding standards.

Installation

Work in progress, see backdrop/backdrop-issues#5245

For now you can simply download the zip file or clone it locally. Put it somewhere outside your Backdrop install.

Usage

There are several ways to install the phpcs commandline tool in your dev environment. Some Linux distributions provide a package (e.g. Debian php-codesniffer). Make sure, the version is at least 3.5. If you want to run it on PHP 8.1, it has to be at least 3.7.1.

But you can also download phpcs from Github and put it in your $PATH.

With the "standard" parameter you can now tell phpcs, where the standard is located. Point it to the directory that contains the ruleset.xml file.

Example usage to run checks in the current directory.

phpcs --standard=/path/to/phpcs/Backdrop .

See full phpcs documentation in their Wiki: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki

Or run phpcs --help for a short overview.

Issues

Bugs and feature requests should be reported in the Issue Queue.

Maintainers

Credits

Created for Backdrop by Indigoxela.

PHP_CodeSniffer is a project formerly maintained by Squiz Labs, now by the PHPCSStandards organization. It's licensed under BSD-3-Clause.

Several sniffs for the Backdrop ruleset have been forked from Drupal Coder, which is licensed under GPL-2.0-or-later.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Backdrop PHP coding standards.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy