feat: mise en place des outils de développement pour SPIP4.2
parent
87066d7269
commit
00bb1b8412
@ -0,0 +1,18 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[composer.json]
|
||||
indent_style = space
|
||||
|
||||
[CHANGELOG, *.md]
|
||||
indent_size = 2
|
@ -0,0 +1,6 @@
|
||||
/.editorconfig export-ignore
|
||||
/.gitattributes export-ignore
|
||||
/.gitignore export-ignore
|
||||
/phpcs.xml.dist export-ignore
|
||||
/phpstan.neon.dist export-ignore
|
||||
/phpstan-baseline.neon export-ignore
|
@ -0,0 +1,8 @@
|
||||
/vendor/
|
||||
/composer.phar
|
||||
/composer.lock
|
||||
/phpcs.xml
|
||||
/phpstan.neon
|
||||
/.php_cs.cache
|
||||
/.php_cs.txt
|
||||
/rector.php
|
@ -0,0 +1,5 @@
|
||||
# Autorité
|
||||
|
||||
## Documentation
|
||||
|
||||
Sur [SPIP Contrib](https://contrib.spip.net/Le-plugin-Autorite)
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "spip-contrib/autorite",
|
||||
"description": "Quelques réglages d'autorisations",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"type": "spip-plugin",
|
||||
"require": {
|
||||
"php": ">=7.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
||||
"phpcompatibility/php-compatibility": "^10.x-dev",
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"spip/coding-standards": "^1.3",
|
||||
"rector/rector": "^0.16.0"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<file>.</file>
|
||||
<exclude-pattern>vendor/*</exclude-pattern>
|
||||
<exclude-pattern>lang/*</exclude-pattern>
|
||||
|
||||
<rule ref="SPIP42"/>
|
||||
|
||||
<config name="ignore_warnings_on_exit" value="1"/>
|
||||
<arg name="cache" value=".php_cs.cache"/>
|
||||
<arg name="report-full" value=".php_cs.txt"/>
|
||||
<arg name="report-summary"/>
|
||||
<arg value="s"/>
|
||||
</ruleset>
|
@ -0,0 +1,161 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
-
|
||||
message: "#^Function ecrire_config not found\\.$#"
|
||||
count: 2
|
||||
path: autorite_administrations.php
|
||||
|
||||
-
|
||||
message: "#^Function ecrire_meta not found\\.$#"
|
||||
count: 1
|
||||
path: autorite_administrations.php
|
||||
|
||||
-
|
||||
message: "#^Function effacer_meta not found\\.$#"
|
||||
count: 2
|
||||
path: autorite_administrations.php
|
||||
|
||||
-
|
||||
message: "#^Function include_spip not found\\.$#"
|
||||
count: 1
|
||||
path: autorite_administrations.php
|
||||
|
||||
-
|
||||
message: "#^Function lire_config not found\\.$#"
|
||||
count: 1
|
||||
path: autorite_administrations.php
|
||||
|
||||
-
|
||||
message: "#^Function test_plugin_actif not found\\.$#"
|
||||
count: 1
|
||||
path: autorite_options.php
|
||||
|
||||
-
|
||||
message: "#^Function include_spip not found\\.$#"
|
||||
count: 1
|
||||
path: formulaires/configurer_autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function _q not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function _request not found\\.$#"
|
||||
count: 2
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser not found\\.$#"
|
||||
count: 13
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser_auteur_modifier_dist not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser_forum_modifier_dist not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser_rubrique_creerrubriquedans_dist not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser_rubrique_publierdans_dist not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser_signature_modifier_dist not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser_voir_dist not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function id_table_objet not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function include_spip not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function sql_allfetsel not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function sql_countsel not found\\.$#"
|
||||
count: 5
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function sql_fetsel not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function sql_getfetsel not found\\.$#"
|
||||
count: 12
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function sql_quote not found\\.$#"
|
||||
count: 2
|
||||
path: inc/autoriser.php
|
||||
|
||||
-
|
||||
message: "#^Function autoriser not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function ecrire_meta not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function effacer_meta not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function include_spip not found\\.$#"
|
||||
count: 5
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function spip_log not found\\.$#"
|
||||
count: 2
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function sql_allfetsel not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function typo not found\\.$#"
|
||||
count: 1
|
||||
path: inc/autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function include_spip not found\\.$#"
|
||||
count: 1
|
||||
path: prive/squelettes/contenu/configurer_autorite_fonctions.php
|
||||
|
||||
-
|
||||
message: "#^Function include_spip not found\\.$#"
|
||||
count: 1
|
||||
path: prive/squelettes/navigation/configurer_autorite_fonctions.php
|
@ -0,0 +1,11 @@
|
||||
includes:
|
||||
- phpstan-baseline.neon
|
||||
|
||||
parameters:
|
||||
paths:
|
||||
- .
|
||||
excludePaths:
|
||||
analyseAndScan:
|
||||
- vendor
|
||||
- lang
|
||||
level: 0
|
Loading…
Reference in New Issue