-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* introduces new linter for PHP-CS-Fixer (see feature report #3550) * changes after running build.py * fix cspell dict for missing words related to #3550 * wrong filename used for testing new linter PHP_PHPCSFIXER (see #3550) * automation about php-cs-fixer * quick fix for PHP-CS-Fixer util unit tests * ugly quick fix for new PHP-CS-Fixer linter * docs and automation files * clean-up code * [MegaLinter] Apply linters fixes * Workaround for test case names * [MegaLinter] Apply linters fixes * Fix --------- Co-authored-by: llaville <llaville@users.noreply.github.com> Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
- Loading branch information
1 parent
178d6a8
commit 219bdab
Showing
20 changed files
with
419 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Results of php-cs-fixer linter (version 3.58.1) | ||
See documentation on https://megalinter.io/latest/descriptors/php_php_cs_fixer/ | ||
----------------------------------------------- | ||
|
||
❌ [ERROR] for workspace /tmp/lint | ||
Linter raw log: | ||
PHP CS Fixer 3.58.1 7th Gear by Fabien Potencier, Dariusz Ruminski and contributors. | ||
PHP runtime: 8.3.7 | ||
Running analysis on 1 core sequentially. | ||
You can enable parallel runner and speed up the analysis! Please see https://cs.symfony.com/doc/usage.html for more information. | ||
Loaded config default from "/action/lib/.automation/.php-cs-fixer.dist.php". | ||
Using cache file ".php-cs-fixer.cache". | ||
|
||
Files that were not fixed due to errors reported during linting before fixing: | ||
1) ./php_bad_1.php | ||
2) ./php_bad_2.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in('.') | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PER-CS' => true, | ||
]) | ||
->setFinder($finder) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.