Skip to content

Commit 98cab36

Browse files
author
Ashley Baldwin-Hunter
authored
Merge pull request #42 from codeclimate/abh-readme
Update readme
2 parents 835b453 + e9f3ce1 commit 98cab36

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Code Climate PHP_CodeSniffer Engine
22

3+
[![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate-phpcodesniffer/badges/gpa.svg)](https://codeclimate.com/github/codeclimate/codeclimate-phpcodesniffer)
4+
35
`codeclimate-phpcodesniffer` is a Code Climate engine that wraps the [PHP_Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer) static analysis tool. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
46

57
PHP_CodeSniffer helps you detect violations of a defined coding standard.
@@ -15,7 +17,9 @@ PHP_CodeSniffer helps you detect violations of a defined coding standard.
1517
Format the values for these config options per the [PHP_CodeSniffer documentation](https://github.com/squizlabs/PHP_CodeSniffer).
1618

1719
* file_extensions - This is where you can configure the file extensions for the files that you want PHP_CodeSniffer to analyze.
18-
* standard - This is the comma delimited list of standards that you want PHP_CodeSniffer to use while analyzing your files.
20+
* standard - This is the comma delimited list of standards that you want
21+
PHP_CodeSniffer to use while analyzing your files. You may optionally include
22+
a relative path to a custom phpcs ruleset.xml file.
1923
* ignore_warnings - You can hide warnings, and only report errors with this option.
2024
* encoding - By default, PHPCS uses ISO-8859-1. Use this to change it to your encoding, e.g. UTF-8.
2125

@@ -28,7 +32,7 @@ Format the values for these config options per the [PHP_CodeSniffer documentatio
2832
enabled: true
2933
config:
3034
file_extensions: "php,inc,lib"
31-
standard: "PSR1,PSR2"
35+
standard: "PSR1,PSR2,my_custom_php_ruleset.xml"
3236
ignore_warnings: true
3337
encoding: utf-8
3438
ratings:

0 commit comments

Comments
 (0)