Tools to automatically ensure boilerplate code added
When developing a plugin, there are a number of best practices that are easily missed. I consider these to be boilerplate code. A couple of them are:
- Ensuring each folder has a Silence is golden
- Start each PHP file with a check for
ABSPATHand exit if necessary.
(Are there others I have missed?)
There are a few problems with these:
- These steps are easily forgotten and the plugin will continue to work perfectly.
- They add unnecessary noise to the codebase.
Are there any development tools that will automatically adding these items?