nanch / phpfmt_stable

This is a stable snapshot (version 6125cf9) of the phpfmt plugin for Sublime Text
143 stars 34 forks source link

SortUseNameSpace deleting 'use' statements #45

Open cjaoude opened 6 years ago

cjaoude commented 6 years ago

annoying as hell...

SortUseNameSpace is deleting use statements, that's not part of its description. It's doing so even though i've excluded OrderAndRemoveUseClauses. I've tried n-th variations on of the related settings, and it just keeps doing it. :/

Latest Sublime Text (3143) The entire user settings config...

{
    "excludes":
    [
        "OrderAndRemoveUseClauses"
    ],
    "format_on_save": false,
    "option": "value",
    "passes":
    [
        "SortUseNameSpace",
        "OnlyOrderUseClauses"
    ],
    "php_bin": "/usr/local/bin/php",
    "psr2": true,
    "version": 4
}
HilayPatel commented 5 years ago

After year, but excludes OrderAndRemoveUseClauses is working fine. this is my phpfmt.sublime-settings

{
    "excludes":
    [
        "OrderAndRemoveUseClauses",
    ],
    "autocomplete": true,
    "autoimport": true,
    "enable_auto_align": false,
    "format_on_save": true,
    "ignore": "Parent",
    "indent_with_space": 4,
    "passes":
    [
        "ReindentSwitchBlocks",
        "PSR2EmptyFunction",
        "StripSpaceWithinControlStructures",
        "ShortArray",
        "SpaceBetweenMethods",
        "AutoSemicolon"
    ],
    "psr2": true,
    "smart_linebreak_after_curly": true,
    "version": 4,
    "visibility_order": true,
    "yoda": true
}