Skip to content

Commit

Permalink
Add support of dist file name phpcs.dist.xml
Browse files Browse the repository at this point in the history
To achieve a better editor experience, XML files should have a
corresponding extension, as this is often used to recognize the file
type and derive corresponding features such as highlighting.
  • Loading branch information
olivervogel committed Feb 29, 2024
1 parent df26a1f commit 4d0a8e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ public function __construct(array $cliArgs=[], $dieOnUnknownArg=true)
'phpcs.xml',
'.phpcs.xml.dist',
'phpcs.xml.dist',
'.phpcs.dist.xml',
'phpcs.dist.xml',
];

do {
Expand Down

0 comments on commit 4d0a8e5

Please # to comment.