Skip to content

Instantly share code, notes, and snippets.

@DuaelFr
Created October 19, 2023 11:08
Show Gist options
  • Save DuaelFr/61677dd6f2274d7c292c578ec1538e43 to your computer and use it in GitHub Desktop.
Save DuaelFr/61677dd6f2274d7c292c578ec1538e43 to your computer and use it in GitHub Desktop.
GrumPHP git blacklist example for Drupal
grumphp:
tasks:
git_blacklist_twig:
metadata:
task: git_blacklist
keywords:
- "dump("
- "kint("
- "|raw"
- "autoescape"
- "devel_breakpoint("
triggered_by:
- twig
git_blacklist_js:
metadata:
task: git_blacklist
keywords:
- "console.log("
- "console.debug("
triggered_by:
- js
git_blacklist_php:
metadata:
task: git_blacklist
keywords:
# PHP Native functions.
- "var_dump("
- "var_export("
- "print_r("
- "die("
- "debug_backtrace("
- "debug_print_backtrace("
# Devel debug functions.
- "devel_dump("
- "devel_export("
- "devel_message("
- "devel_debug("
- "dfb("
- "dfbt("
- "dd("
- "ddm("
- "kint("
- "ksm("
- "dpm("
- "dvm("
- "dsm("
- "dpr("
- "kpr("
- "dvr("
- "dargs("
- "dpq("
- "devel_render("
- "ddebug_backtrace("
triggered_by:
- php
- module
- inc
- install
- test
- profile
- theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment