-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StaticClosureSniff: Work on fn() too
Bug: T328529 Change-Id: Ia8f1d8de3183e3e55af5ff88d8ce451e2fb2a9fc
- Loading branch information
Showing
10 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
21 | ERROR | [ ] Only one object structure is allowed in a file | ||
| | (Generic.Files.OneObjectStructurePerFile.MultipleFound) | ||
41 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
64 | ERROR | [x] Cannot not use static closure in class context | ||
46 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
67 | ERROR | [x] Cannot not use static closure in class context | ||
| | (MediaWiki.Usage.StaticClosure.NonStaticClosure) | ||
77 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
88 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
88 | ERROR | [x] There must not be a space before the colon in a return type declaration | ||
80 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
91 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
91 | ERROR | [x] There must not be a space before the colon in a return type declaration | ||
| | (PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon) | ||
89 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
89 | ERROR | [x] There must not be a space before the colon in a return type declaration | ||
92 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) | ||
92 | ERROR | [x] There must not be a space before the colon in a return type declaration | ||
| | (PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon) | ||
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY | ||
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY |
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
10 changes: 5 additions & 5 deletions
10
MediaWiki/Tests/files/WhiteSpace/space_after_closure.php.expect
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
13 | ERROR | [x] A single space should be after the function keyword in closures | ||
14 | ERROR | [x] A single space should be after the function keyword in closures | ||
| | (MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterClosure) | ||
17 | ERROR | [x] A single space should be after the function keyword in closures | ||
18 | ERROR | [x] A single space should be after the function keyword in closures | ||
| | (MediaWiki.WhiteSpace.SpaceAfterClosure.WrongWhitespaceAfterClosure) | ||
21 | ERROR | [x] A single space should be after the function keyword in closures | ||
22 | ERROR | [x] A single space should be after the function keyword in closures | ||
| | (MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterClosure) | ||
25 | ERROR | [x] A single space should be after the fn keyword in closures | ||
| | (MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterArrow) | ||
26 | ERROR | [x] A single space should be after the fn keyword in closures | ||
| | (MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterArrow) | ||
28 | ERROR | [x] A single space should be after the fn keyword in closures | ||
| | (MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterArrow) | ||
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY |
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