-
Notifications
You must be signed in to change notification settings - Fork 863
New WPCS rule (ValidVariableName.NotSnakeCase) causing build error #643
Comments
Hmmm. That's interesting. There are actually A TON of checks that we omit in the codesniffer.xml file. Perhaps we should consider not omitting any checks. I mean if it's a WordPress standard. I don't see why we would want to go around certain rules. I think the only reason was at the time we implemented the checks the theme we were using as reference also omitted those tests. |
@josh-rathke unless there is a good reason for the WordPress specific excludes in In the meantime we should either add the @olefredrik please give your opinion when you get a chance. Thanks! |
I would think that upon install composer should be pulling down the latest But I agree, I think we should lose any exceptions and go entirely WP On Wednesday, December 23, 2015, Colin Marshall notifications@github.com
Josh Rathke |
The codesniffer rules were more strict in the beginning when @josh-rathke added them in 7acc16c as part of make FoundationPress follow WP Coding Standards but then excludes were added because they were deemed "non-sense", like f4c3c95 and 43033bb. Some WordPress specific excludes where added as well, but without further explanation in 47d28f2. Then even more in 7c2d673 and 24c5fcb. I can't find it right now but I remembered @olefredrik saying he did not see the need for too strict rules. |
Hi guys! I think it makes sense to follow the standards 100%, if possible and if it provides value for developers. Since we introduced WP Coding Standards in this project, I've added some new exclude statements in project rule set. The maintainers of the WP Coding Standards repo have on a few occasions added new rules. One of these was relevant only for VIP sites hosted on the wordpress.com domain. It goes without saying that these rules are not relevant for us. Other rules have been excluded because they have been a pain to fix (automatic fix of build errors on localhost has not been possible until recently) and because they have not had a great impact on the quality of the application. I see that certain rules are excluded in the sample file for WP Coding Standards.
A review of the rule set would have been useful. If any of you have time to have a look at it, please go for it :). If not, no worries, I'll fix it after the holidays. Merry Christmas! :) |
New rule was added to WPCS that causes build errors. Here is the log:
It wants the first letter to be lowercase.
The text was updated successfully, but these errors were encountered: