File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -998,7 +998,7 @@ public function validateStandard($standards)
998
998
// They did not supply a standard to use.
999
999
// Looks for a ruleset in the current directory.
1000
1000
if (empty ($ this ->values ['files ' ]) === true ) {
1001
- $ default = getcwd ().DIRECTORY_SEPARATOR .'ruleset .xml ' ;
1001
+ $ default = getcwd ().DIRECTORY_SEPARATOR .'phpcs .xml ' ;
1002
1002
if (is_file ($ default ) === true ) {
1003
1003
return array ($ default );
1004
1004
}
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
34
34
-- Use the --report-width=auto command line argument to auto-size the reports
35
35
-- Use the command "phpcs --config-set report_width auto" to use auto-sizing by default
36
36
- Reports will now size to fit inside the report width setting instead of always using padding to fill the space
37
- - If no files or standards are specified, PHPCS will now look for a ruleset .xml file in the current directory
37
+ - If no files or standards are specified, PHPCS will now look for a phpcs .xml file in the current directory
38
38
-- This file has the same format as a standard ruleset.xml file
39
- -- The ruleset .xml file should specify (at least) files to process and a standard/sniffs to use
39
+ -- The phpcs .xml file should specify (at least) files to process and a standard/sniffs to use
40
40
-- Useful for running the phpcs and phpcbf commands without any arguments at the top of a repository
41
41
- Default file paths can now be specified in a ruleset.xml file using the "file" tag
42
42
-- File paths are only processed if no files were specified on the command line
Original file line number Diff line number Diff line change 4
4
5
5
<file >CodeSniffer.php</file >
6
6
<file >CodeSniffer</file >
7
+ <file >scripts</file >
8
+
9
+ <exclude-pattern >*/Tests/*</exclude-pattern >
7
10
8
11
<arg name =" report" value =" summary" />
9
12
<arg value =" np" />
You can’t perform that action at this time.
0 commit comments