mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Use phpfmt to format .php files
This commit is contained in:
parent
2f00d673a7
commit
5c101e6750
34
.vscode/settings.json
vendored
34
.vscode/settings.json
vendored
@ -9,5 +9,37 @@
|
|||||||
"javascript.preferences.quoteStyle": "double",
|
"javascript.preferences.quoteStyle": "double",
|
||||||
"blade.format.enable": true,
|
"blade.format.enable": true,
|
||||||
"html.format.wrapAttributes": "force",
|
"html.format.wrapAttributes": "force",
|
||||||
"html.format.wrapLineLength": 0
|
"html.format.wrapLineLength": 0,
|
||||||
|
"phpfmt.passes": [
|
||||||
|
"AddMissingParentheses",
|
||||||
|
"AliasToMaster",
|
||||||
|
"AllmanStyleBraces",
|
||||||
|
"AutoSemicolon",
|
||||||
|
"ClassToSelf",
|
||||||
|
"ConvertOpenTagWithEcho",
|
||||||
|
"DoubleToSingleQuote",
|
||||||
|
"OrderAndRemoveUseClauses",
|
||||||
|
"OrganizeClass",
|
||||||
|
"ReindentSwitchBlocks",
|
||||||
|
"RemoveIncludeParentheses",
|
||||||
|
"RemoveSemicolonAfterCurly",
|
||||||
|
"RemoveUseLeadingSlash",
|
||||||
|
"ReplaceBooleanAndOr",
|
||||||
|
"ShortArray",
|
||||||
|
"SmartLnAfterCurlyOpen",
|
||||||
|
"SpaceAroundControlStructures",
|
||||||
|
"SpaceBetweenMethods",
|
||||||
|
"StripExtraCommaInArray",
|
||||||
|
"StripNewlineAfterClassOpen",
|
||||||
|
"StripNewlineAfterCurlyOpen",
|
||||||
|
"UpgradeToPreg",
|
||||||
|
"WrongConstructorName"
|
||||||
|
],
|
||||||
|
"phpfmt.exclude": [
|
||||||
|
"ReindentComments",
|
||||||
|
"StripNewlineWithinClassBody"
|
||||||
|
],
|
||||||
|
"phpfmt.psr2": false,
|
||||||
|
"phpfmt.detect_indent": true,
|
||||||
|
"phpfmt.smart_linebreak_after_curly": true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user