akalongman / akalongman/sublimetext-codeformatter

SmartLnAfterCurlyOpen doesn't work as exclude

Open
#257 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
772
Forks
128
PR merge metrics
No merged PRs in 30d

Description

When using:
`"passes": ["AlignDoubleSlashComments", "AlignGroupDoubleArrow", "AlignDoubleArrow", "AllmanStyleBraces", "GeneratePHPDoc", "PrettyPrintDocBlocks", "ReindentAndAlignObjOps", "ShortArray", "SpaceAroundExclamationMark"],`

and

`"exclude": ["SmartLnAfterCurlyOpen"]`

my one line if statements are still being formatted to multiple lines. So this still happens:
`if($a) echo array();`
becomes
`if($a) {`
`echo array();`
`}`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.