What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello, is there a recommendation to use some of PHPstorm’s built-in codequality checkers (CodeSniffe
Hello,
is there a recommendation to use some of PHPstorm’s built-in codequality checkers (CodeSniffer, Mess Detector, CS Fixer) with matching rulesets?
Or are there maybe even some config-profiles for PHPstorm (Preferences > Editor > Code Style > PHP), or PHP Inspections Plugins?
An “official” IDE ruleset could help to get bad things directly highlighted while development 😉
Comments
-
there is no “official recommendation” - it’s totally up to you. Inside of the team, we have completely different degree of using phpStorm features from member to member. Some one prefers console more, someone likes using phpstorm features as much as it can give.
0 -
we do plan to collect and release some tips and tricks for phpstorm in the future!
0 -
Thank you, Andriy. We are looking forward to it.
0 -
but so far yes, you can use existing config files for phpcs, md and also configure shortcuts for custom checks, like f.e. phpstan or so. I can’t remember exactly where/what it is.. maybe @ULMK1EG9Z could you pls share what are you using?
0 -
I use the external tool feature in phpstorm, so that I can run phpstan and phpcs/phpcbf on the file I am looking at (saves time, running on project takes forever on some project). You can also use that to run a single test.
But this is not "official" Spryker.0 -
Thank you Sylvain. We will evaluate this for our project 👌
0 -
then you can assign each tool to a keyboard shortcut.
or you can find it inctrl+shift+a
. I recommand you use a keyword (zelf
here) to find them quickly.0 -
Never tried it on this level 😄 Thanks for the hints
0 -
thanks Sylvain 👍
0 -
One more thing, just to be sure:
The demoshop-bundled phpcs and the ./config/ruleset.xml are meant to be used for core-development (e.g. /vendor/spryker) or for the project itself (/src/Pyz)0 -
In that folder, it is meant to be used for your project with your alterations.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 921 Developer Corner
- 781 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random