Skip to content
Snippets Groups Projects
Verified Commit 71319150 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

docs: change version back to 1.2

parent 5fe78632
No related branches found
No related tags found
1 merge request!6feat: rewrite CS rules
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
# Changelog
## [2.0.0] - 2021-06-04
## [1.2.0] - 2021-06-14
### Changed
- Fully rewritten CS rules to adhere developers needs
- Enhanced .editorconfig to work seamlessly with PhpStorm
......
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WPDesk">
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WPDeskPlugin">
<description>Sniffs for WordPress WPDesk plugins</description>
......@@ -37,6 +37,11 @@
I.e. when `strict` has been explicitly set to `false` in an array comparison,
it will be allowed. -->
<exclude name="WordPress.PHP.StrictInArray.FoundNonStrictFalse"/>
<exclude name="WordPress.WP.AlternativeFunctions" />
<!-- Sometimes it's better not to use user's timezone. -->
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date" />
</rule>
<!-- Allow slash in hook name. -->
......
......@@ -6,6 +6,7 @@
"homepage": "https://gitlab.com/wpdesk/wp-code-sniffer",
"type": "phpcodesniffer-standard",
"prefer-stable": true,
"version": "1.2.0",
"authors": [
{
"name": "grola",
......@@ -26,7 +27,10 @@
"install-codestandards" : [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"post-install-cmd": [
"pre-package-install": [
"@install-codestandards"
],
"post-package-update": [
"@install-codestandards"
]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment