Browse Source

fix(cs): no snake_case variables +some SPIP zip archive

fix-api
JamesRezo 1 year ago
parent
commit
dda91c630c
  1. 24
      composer.lock
  2. 112
      data/releases.json
  3. 5
      phpcs.xml.dist

24
composer.lock generated

@ -2109,29 +2109,39 @@
},
{
"name": "spip/coding-standards",
"version": "1.1.0",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/JamesRezo/spip-coding-standards.git",
"reference": "ab08936dbd3ecc039de84fd7aeeddf2a508c347e"
"reference": "6411c6e0978cc339a15dc0680be22e6722e5a5b3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/JamesRezo/spip-coding-standards/zipball/ab08936dbd3ecc039de84fd7aeeddf2a508c347e",
"reference": "ab08936dbd3ecc039de84fd7aeeddf2a508c347e",
"url": "https://api.github.com/repos/JamesRezo/spip-coding-standards/zipball/6411c6e0978cc339a15dc0680be22e6722e5a5b3",
"reference": "6411c6e0978cc339a15dc0680be22e6722e5a5b3",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"php": ">=7.0",
"phpcompatibility/php-compatibility": "^9.3",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
},
"type": "phpcodesniffer-standard",
"extra": {
"branch-alias": {
"dev-main": "1.1.x-dev"
"dev-main": "1.2.x-dev"
}
},
"autoload": {
"psr-4": {
"Spip\\CodingStandards\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@ -2151,9 +2161,9 @@
],
"support": {
"issues": "https://github.com/JamesRezo/spip-coding-standards/issues",
"source": "https://github.com/JamesRezo/spip-coding-standards/tree/1.1.0"
"source": "https://github.com/JamesRezo/spip-coding-standards/tree/1.2.0"
},
"time": "2021-08-21T12:37:50+00:00"
"time": "2021-08-24T17:18:38+00:00"
},
{
"name": "squizlabs/php_codesniffer",

112
data/releases.json

@ -1707,7 +1707,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.28.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.28.zip",
"size": 9175348
}
]
@ -1723,7 +1723,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.27.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.27.zip",
"size": 9174014
}
]
@ -1739,7 +1739,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.26.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.26.zip",
"size": 9171830
}
]
@ -1755,7 +1755,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.25.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.25.zip",
"size": 9170482
}
]
@ -1771,7 +1771,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.24.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.24.zip",
"size": 9116812
}
]
@ -1787,7 +1787,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.23.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.23.zip",
"size": 9114853
}
]
@ -1803,7 +1803,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.22.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.22.zip",
"size": 9111037
}
]
@ -1829,7 +1829,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.20.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.20.zip",
"size": 9098909
}
]
@ -1845,7 +1845,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.19.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.19.zip",
"size": 9094750
}
]
@ -1865,7 +1865,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.17.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.17.zip",
"size": 9029817
}
]
@ -1881,7 +1881,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.16.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.16.zip",
"size": 9019743
}
]
@ -1898,7 +1898,7 @@
"changelog": "https://www.spip.net/fr_article5686.html",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.15.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.15.zip",
"size": 9169821
}
]
@ -1915,7 +1915,7 @@
"changelog": "https://www.spip.net/fr_article5663.html",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.14.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.14.zip",
"size": 8857457
}
]
@ -1932,7 +1932,7 @@
"changelog": "http://www.spip.net/fr_article5648.html",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.13.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.13.zip",
"size": 9156375
}
]
@ -1942,7 +1942,7 @@
"released_at": "2013-11-09 14:29:18",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.12.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.12.zip",
"size": 9156275
}
]
@ -1959,7 +1959,7 @@
"changelog": "https://www.spip.net/fr_article5630.html",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.11.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.11.zip",
"size": 9233987
}
]
@ -1976,7 +1976,7 @@
"changelog": "https://www.spip.net/fr_article5622.html",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.10.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.10.zip",
"size": 9654736
}
]
@ -1993,7 +1993,7 @@
"changelog": "https://www.spip.net/fr_article5619.html",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.9.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.9.zip",
"size": 9653848
}
]
@ -2009,7 +2009,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.8.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.8.zip",
"size": 9633488
}
]
@ -2025,7 +2025,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.7.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.7.zip",
"size": 9702964
}
]
@ -2041,7 +2041,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.6.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.6.zip",
"size": 9702030
}
]
@ -2057,7 +2057,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.5.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.5.zip",
"size": 9614804
}
]
@ -2073,7 +2073,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.4.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.4.zip",
"size": 9572725
}
]
@ -2089,7 +2089,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.3.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.3.zip",
"size": 9537979
}
]
@ -2105,7 +2105,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.2.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.2.zip",
"size": 9528594
}
]
@ -2115,7 +2115,7 @@
"released_at": "2012-05-20 14:17:04",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.1.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.1.zip",
"size": 9503965
}
]
@ -2131,7 +2131,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.0.0.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.0.0.zip",
"size": 9503781
}
]
@ -2250,7 +2250,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.12.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.12.zip",
"size": 10114919
}
]
@ -2266,7 +2266,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.11.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.11.zip",
"size": 10114104
}
]
@ -2282,7 +2282,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.10.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.10.zip",
"size": 10113368
}
]
@ -2298,7 +2298,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.9.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.9.zip",
"size": 10081776
}
]
@ -2314,7 +2314,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.8.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.8.zip",
"size": 10076868
}
]
@ -2324,7 +2324,7 @@
"released_at": "2017-10-12 08:28:27",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.7.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.7.zip",
"size": 10073664
}
]
@ -2340,7 +2340,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.6.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.6.zip",
"size": 10069602
}
]
@ -2356,7 +2356,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.5.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.5.zip",
"size": 10069183
}
]
@ -2372,7 +2372,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.4.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.4.zip",
"size": 10064071
}
]
@ -2388,23 +2388,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.3.zip",
"size": 10006538
}
]
},
{
"version": "3.1.3",
"released_at": "2016-09-30 21:22:19",
"announce": [
{
"lang": "fr",
"url": "https://blog.spip.net/Nouvelle-alerte-de-securite-sortie-de-SPIP-3-1-3-et-SPIP-3-0-24.html"
}
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.3.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.3.zip",
"size": 10006538
}
]
@ -2420,7 +2404,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.2.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.2.zip",
"size": 10004291
}
]
@ -2436,7 +2420,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.1.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.1.zip",
"size": 9986600
}
]
@ -2452,7 +2436,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.1.0.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.1.0.zip",
"size": 9976585
}
]
@ -2587,7 +2571,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.7.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.7.zip",
"size": 11405086
}
]
@ -2597,7 +2581,7 @@
"released_at": "2019-12-12 08:29:45",
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.6.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.6.zip",
"size": 11405048
}
]
@ -2613,7 +2597,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.5.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.5.zip",
"size": 11403399
}
]
@ -2629,7 +2613,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.4.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.4.zip",
"size": 11399819
}
]
@ -2645,7 +2629,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.3.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.3.zip",
"size": 11396609
}
]
@ -2661,7 +2645,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.2.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.2.zip",
"size": 11314445
}
]
@ -2677,7 +2661,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.1.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.1.zip",
"size": 11304232
}
]
@ -2693,7 +2677,7 @@
],
"download": [
{
"url": "https://files.spip.net/spip/archives/spip-v3.2.0.zip",
"url": "https://files.spip.net/spip/archives/SPIP-v3.2.0.zip",
"size": 11175728
}
]

5
phpcs.xml.dist

@ -7,6 +7,11 @@
<rule ref="SPIP40" />
<rule ref="SCS1.NamingConventions.SnakeCaseVariableName">
<type>warning</type>
<severity>0</severity>
</rule>
<arg name="cache" value=".php_cs.cache"/>
<arg name="report-checkstyle" value="php_cs.xml"/>
<arg name="report-full" value="php_cs.txt"/>

Loading…
Cancel
Save