Tools to automatically ensure boilerplate code added
Question
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
index.php
. - Start each PHP file with a check for
ABSPATH
and 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?
0
4 months
0 Answers
10 views
0
Leave an answer
You must login or register to add a new answer .