ennosuke / php-codebeautifier Goto Github PK
View Code? Open in Web Editor NEWThis is a plugin for Sublime Text 3 that gives the option to run the phpcbf
License: MIT License
This is a plugin for Sublime Text 3 that gives the option to run the phpcbf
License: MIT License
It looks like it can find problems, but it can't fix it by default. Here is the output from console:
Changing into directory /home/---/Projects/magento2/app/etc
Processing config.php [PHP => 816 tokens in 105 lines]... DONE in 16ms (1 fixable violations)
=> Fixing file: 1/1 violations remaining
=> Fixing file: 1/1 violations remaining [made 1 pass]...
=> Fixing file: 0/1 violations remaining [made 2 passes]... �[32mDONE�[0m in 35ms
Array
(
[0] => Ignoring potentially dangerous file name /home/---/Projects/magento2/app/etc/config.php
[1] => can't find file to patch at input line 3
[2] => Perhaps you used the wrong -p or --strip option?
[3] => The text leading up to this was:
[4] => --------------------------
[5] => |--- /home/---/Projects/magento2/app/etc/config.php
[6] => |+++ PHP_CodeSniffer
[7] => --------------------------
[8] => File to patch:
[9] => Skip this patch? [y]
[10] => Skipping patch.
[11] => 1 out of 1 hunk ignored
)
Returned: 1
Time: 82ms; Memory: 5.5Mb
I know it's a phpcbf problem, it somehow can't create the patch file, so after adding this to to the user configuration file, it's working:
"patch": 0
Not an issue as such but took me some hair pulling to figure out, maybe someone else will
By default the supported syntaxes setting is an array containing only Packages/PHP/PHP.sublime-syntax
. For some reason my ST3 uses Packages/PHP/PHP.tmLanguage
instead, which was causing the run command to fail silently. Adding
"syntaxes": [
"Packages/PHP/PHP.tmLanguage",
"Packages/PHP/PHP.sublime-syntax"
]
to my user settings fixed the problem!
Thanks for this great plugin! How do I set the lineLimit
property?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.