Skip to content

1.2.0

Compare
Choose a tag to compare
@moorscode moorscode released this 21 Dec 13:22
· 666 commits to develop since this release
3c9bed0

Added

  • PHPCS: New Yoast.Commenting.FileComment sniff.
    This sniff is a wrapper around the FileComment sniff used in WordPressCS and manages the slightly different requirements for file comments set for the Yoast organisation, in particular:
    • If a file is namespaced, no file comment is needed (and having one is discouraged).
  • PHPCS: New Yoast.Namespaces.NamespaceDeclaration sniff.
    This sniff forbids the use of:
    • Namespace declarations without a namespace name, i.e. namespace; which in effect means "global namespace".
    • Scoped namespace declarations.
    • Multiple namespace declarations in one file.