Skip to content

Commit

Permalink
fix: some passes cannot be configured (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Oct 6, 2024
1 parent 1a6abee commit e14e300
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 67 deletions.
53 changes: 42 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,16 @@
"WrongConstructorName",
"YodaComparisons",
"SpaceAfterExclamationMark",
"SpaceAroundParentheses"
"SpaceAroundParentheses",
"WPResizeSpaces",
"AlignDoubleSlashComments",
"AlignGroupDoubleArrow",
"ClassToStatic",
"JoinToImplode",
"MildAutoPreincrement",
"OnlyOrderUseClauses",
"OrderMethod",
"OrderMethodAndVisibility"
],
"enumDescriptions": [
"Core pass",
Expand Down Expand Up @@ -381,7 +390,16 @@
"Update old constructor names into new ones. http://php.net/manual/en/language.oop5.decon.php",
"Execute Yoda Comparisons.",
"Add space after exclamation mark.",
"Add spaces inside parentheses."
"Add spaces inside parentheses.",
"Core pass",
"Vertically align \"//\" comments.",
"Vertically align T_DOUBLE_ARROW (=>) by line groups.",
"\"static\" is preferred within class, trait or interface.",
"Replace implode() alias (join() -> implode()).",
"Automatically convert postincrement to preincrement. (Deprecated pass. Use AutoPreincrement instead).",
"Order use block - do not remove unused imports.",
"Organize class, interface and trait structure.",
"Organize class, interface and trait structure."
]
}
},
Expand Down Expand Up @@ -491,7 +509,16 @@
"WrongConstructorName",
"YodaComparisons",
"SpaceAfterExclamationMark",
"SpaceAroundParentheses"
"SpaceAroundParentheses",
"WPResizeSpaces",
"AlignDoubleSlashComments",
"AlignGroupDoubleArrow",
"ClassToStatic",
"JoinToImplode",
"MildAutoPreincrement",
"OnlyOrderUseClauses",
"OrderMethod",
"OrderMethodAndVisibility"
],
"enumDescriptions": [
"Core pass",
Expand Down Expand Up @@ -593,7 +620,16 @@
"Update old constructor names into new ones. http://php.net/manual/en/language.oop5.decon.php",
"Execute Yoda Comparisons.",
"Add space after exclamation mark.",
"Add spaces inside parentheses."
"Add spaces inside parentheses.",
"Core pass",
"Vertically align \"//\" comments.",
"Vertically align T_DOUBLE_ARROW (=>) by line groups.",
"\"static\" is preferred within class, trait or interface.",
"Replace implode() alias (join() -> implode()).",
"Automatically convert postincrement to preincrement. (Deprecated pass. Use AutoPreincrement instead).",
"Order use block - do not remove unused imports.",
"Organize class, interface and trait structure.",
"Organize class, interface and trait structure."
]
}
},
Expand Down Expand Up @@ -662,12 +698,7 @@
"detect-indent": "^6.0.0",
"find-up": "^5.0.0",
"mem": "^8.1.1",
"phpfmt": "^0.0.7"
"phpfmt": "^0.0.8"
},
"packageManager": "pnpm@9.10.0",
"pnpm": {
"patchedDependencies": {
"phpfmt": "patches/phpfmt.patch"
}
}
"packageManager": "pnpm@9.11.0"
}
37 changes: 0 additions & 37 deletions patches/phpfmt.patch

This file was deleted.

24 changes: 5 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e14e300

Please sign in to comment.