adael / SublimePhpCsFixer

Run php-cs-fixer code formatter to format php code from your favorite text editor
MIT License
71 stars 14 forks source link

Added setting to exclude paths from php-cs-fixer #28

Closed asccc closed 5 years ago

asccc commented 5 years ago

Since php-cs-fixer ignores a configured Finder object if a path is directly passed as an argument, i added a "exclude" setting to exclude files/paths based on regular-expressions.

The "exclude" setting accepts a string or a list-of-strings which are passed directly to re.match() for each view (file-name). Some examples are available in the README.md file.

adael commented 5 years ago

Hey! this is awesome and very requested. Thank you!!!