borisguery / git-keywords-checker Goto Github PK
View Code? Open in Web Editor NEWGit pre-commit hook to check for common mistakes (var_dump(), console.log(), etc.)
License: Other
Git pre-commit hook to check for common mistakes (var_dump(), console.log(), etc.)
License: Other
I have noticed that this only works with new files.
Modifying an existing file with the debug commands does not detect and shows All files are clean
Unfortunately this does no work on Mac OSX (Yosemite).
´´´
./git-pre-commit.sh: line 58: syntax error near unexpected token <' ./git-pre-commit.sh: line 58:
done < <(grep -sEnH $KEYWORDS_REGEX $FILE)'
´´´
https://github.com/borisguery/git-keywords-checker/blob/master/pre-commit#L58
I've never used that syntax and don't know what it should to, so I'm not able to change it :-/
We may need to add a configuration to determine if we want to strictly match commented keywords.
// var_dump($dummy);
It may not be matched based on flag.
SED_EXTENDED_CMD should be $SED_EXTENDED_CMD
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.