GrumPHP | Integrate GrumPHP into CaptainHook | Frontend Utils library
kandi X-RAY | GrumPHP Summary
kandi X-RAY | GrumPHP Summary
Integrate GrumPHP into CaptainHook. This package allows you to use GrumPHP as one of the hooks for CaptainHook.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get event listeners .
- Remove command from listener .
- Install GrumScript .
- Install the package .
- Prepare the script for the script .
- Prepare package for package .
GrumPHP Key Features
GrumPHP Examples and Code Snippets
composer require captainhook/grumphp
{
"pre-commit": {
"enabled": true,
"actions": [{
"action" : "DIFF=$(git -c diff.mnemonicprefix=false --no-pager diff -r -p -m -M --full-index --no-color --staged | cat); printf \"%
Community Discussions
Trending Discussions on GrumPHP
QUESTION
I'm using grumphp to check my code before committing and it's telling me:
F [UnexpectedValueException] Rule "symfony" does not exist.
Exception trace: () at /Users/foo/projects/bar/app/vendor/friendsofphp/php-cs-fixer/src/FixerFactory.php:181 PhpCsFixer\FixerFactory->useRuleSet() at /Users/foo/projects/bar/app/vendor/friendsofphp/php-cs-fixer/src/Console/ConfigurationResolver.php:264 PhpCsFixer\Console\ConfigurationResolver->getFixers() at /Users/foo/projects/bar/app/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php:164 PhpCsFixer\Console\Command\FixCommand->execute() at /Users/foo/projects/bar/app/vendor/symfony/console/Command/Command.php:261 Symfony\Component\Console\Command\Command->run() at /Users/foo/projects/bar/app/vendor/symfony/console/Application.php:817 Symfony\Component\Console\Application->doRunCommand() at /Users/foo/projects/bar/app/vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at /Users/foo/projects/bar/app/vendor/symfony/console/Application.php:116 Symfony\Component\Console\Application->run() at /Users/foo/projects/bar/app/vendor/friendsofphp/php-cs-fixer/php-cs-fixer:45
Tried executing it manually and it tells me the same.
So I started digging into the code
I can see there is a ruleSet and the fixer factory is calling $ruleset->getRules() but that is returning only the rule Name for symfony, instead of the 91 array keys:
...ANSWER
Answered 2017-Feb-08 at 18:15SOLUTION:
You need to Escape the arguments with another @ !
@@Symfony
It would look like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GrumPHP
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page