diff --git a/WordPress-VIP-Go/ruleset.xml b/WordPress-VIP-Go/ruleset.xml new file mode 100644 index 00000000..6753bfe7 --- /dev/null +++ b/WordPress-VIP-Go/ruleset.xml @@ -0,0 +1,86 @@ + + + WordPress VIP Go Coding Standards + + + + + + 3 + + + 1 + + + + 3 + + + + 1 + + + + 3 + + + + 2 + + + + warning + 2 + + + warning + 2 + + + warning + 2 + + + + warning + + + + warning + + + + warning + + + + warning + + + + + warning + %s() is uncached, please use wpcom_vip_get_page_by_path() instead. + + + + warning + %s() is uncached, please use wpcom_vip_get_page_by_title() instead. + + + + warning + %s() is uncached, please use wpcom_vip_url_to_postid() instead. + + + + warning + %s() is uncached. If this is being used to query a remote file please use wpcom_vip_file_get_contents() instead. + + + + warning + %s() is uncached, please use wpcom_vip_attachment_url_to_postid() instead. + + + diff --git a/WordPressVIPMinimum/ruleset.xml b/WordPressVIPMinimum/ruleset.xml index c70cd798..0f41236b 100644 --- a/WordPressVIPMinimum/ruleset.xml +++ b/WordPressVIPMinimum/ruleset.xml @@ -118,4 +118,4 @@ error `%1$s()` performs a no-LIMIT query by default, make sure to set a reasonable `posts_per_page`. `%1$s()` will do a -1 query by default, a maximum of 100 should be used. - + \ No newline at end of file