Skip to content

Commit

Permalink
Add new upstream sniffs
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo-d committed Nov 17, 2019
1 parent 6f24b97 commit 58a1a89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WPThemeReview/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,10 @@
<type>error</type>
</rule>

<!-- The short ternary operator must not be used. -->
<rule ref="WordPress.PHP.DisallowShortTernary"/>

<!-- Warn when a text string is escaped for output but not translated (in the case where it has to be translated). -->
<rule ref="WordPress.CodeAnalysis.EscapedNotTranslated"/>

</ruleset>

0 comments on commit 58a1a89

Please sign in to comment.