Comments (3)
Not sure if I understand this question.
But you can work with an ignore or whitelist pattern to conditionally check them?
See https://github.com/phpro/grumphp/blob/master/doc/tasks/git_blacklist.md
from grumphp.
I wanted to keep the blacklist keyword but want to ignore the check for a particular function of a class but not the whole file.
Like I have "print_r(" or "console.log(" added as blacklisted keywords. But I want to use it in certain methods called "debug".
Can we ignore the check for that area only? Like in phpcs we can ignore a line using - "// phpcs:ignore"
from grumphp.
No that is not possible with that task.
The task is a simple string lookup and doesn't have any context of what method or class it's in.
If you want that, you probably should go for phpstan or psalm.
from grumphp.
Related Issues (20)
- PHPCS not running on grumphp HOT 5
- Support for AMPHP v3 HOT 8
- Serialization of 'WeakMap' is not allowed after update monolog to 2.9.0 HOT 6
- Uncaught Amp\Serialization\SerializationException HOT 2
- False positive - Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect HOT 2
- Support grumphp.dist.yml HOT 2
- Provide a security policy for this library HOT 4
- Allow to also ignore untracked files HOT 2
- GrumPhp is not able to validate a valid regular expression for branch name validation HOT 1
- Validating all lines of file instead of changes made to commit HOT 1
- Auto prepending commit message with JIRA ticket number HOT 4
- With GrumPHP php-cs-fixer is not able to exclude the directories as configured in .php-cs-fixer.php HOT 3
- Custom task not working when parallel option is enabled HOT 5
- Add support for PSR-4/`composer dump-autoload` testing HOT 3
- Consider adding a `composer.lock` file in the repository HOT 14
- phpcs does not detect default ruleset xml file HOT 6
- PHPMD task does not check all file extensions HOT 5
- Don't do commit message checks on merges? HOT 8
- Memory is not being released in parallel execution HOT 7
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 grumphp.