Comments (3)
PHPCS working in PHPStorm using Tighten's config from the vendor directory.
And now how to configure itβ¦
Enable PHPCS
- Open
composer.json
and click the settings cog next to the phpcodesniffer dependency.
- Fill in the path to phpcs and phpcbf.
Configure the CodeSniffer Inspection
- Go to
Settings > Editor > Inspections
- Open the
PHP > Quality Tools > PHP_CodeSniffer validation
inspection. - Set Coding standard to custom.
- Click the β¦ to the right of custom .
- add the path to the
.phpcs.xml.dist
within the vendor directory.
from duster.
Thanks! I'm starting to think the only good way to handle this in all editors is to either A) publish the configs to the root directory by default or B) symlink them to the root by default, even with that clever PHPStorm fix you have there.
One idea is to have Duster publish a PHPCS standard and then "publish" would just output a local file that applies that standard to all of your local directories, so we can still iterate on the PHPCS standard.
I dropped PHP-CS-Fixer and Duster's Tlint config is just Tighten's, so that doesn't need to be published at all.
I think I'm leaning in that direction right now.
from duster.
OK, latest release publishes .phpcs.xml.dist
by default, so I think this is solved.
from duster.
Related Issues (20)
- Exclude parameter in duster.json not working with GLOB pattern HOT 2
- Tighten/custom_ordered_class_elements ordering question HOT 1
- --dirty flag gets stuck HOT 5
- Tlint configuration is ignored on fix HOT 5
- Duster Tlint & PHP Code sniffer are working in Gihub action but not on terminal HOT 2
- After updating, option --dirty stopped working. HOT 2
- Custom rules? HOT 5
- Error when pre-commit checking with php-cs-fixer + lint-staged
- Add option to update stubs
- Update GitHub Actions publish command to offer two options: linting (errors if fail), and fixing (commits fixes)
- Multiple errors when running duster HOT 21
- indenting class operator and object operator(s) HOT 1
- [HELP] I don't understand how to customize and configure PhpStorm. HOT 6
- composer dump-autoload - no such file or directory HOT 1
- duster with sail ? HOT 3
- Graceful dirty linting exit HOT 4
- Duster ignring configuration added in .php-cs-fixer.dist.php HOT 1
- Failed on docblock @param HOT 2
- --dirty does not work on Windows HOT 2
- Additional script is timing out (Symfony\Component\Process\Process 60 sec. timeout) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duster.