feat: mise en place des outils de développement

pull/7/head
JamesRezo 3 weeks ago
parent 0f80822961
commit 560acb8864

@ -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

54
.gitattributes vendored

@ -1,47 +1,7 @@
* text=auto !eol
action/corbeille_vider.php -text
/cestino_istruzioni.txt -text
/corbeille_fonctions.php -text
/corbeille_utiliser.txt -text
/corbeille_utiliser_ar.txt -text
/corbeille_utiliser_en.txt -text
/corbeille_utiliser_es.txt -text
formulaires/editer_corbeille.html -text
formulaires/editer_corbeille.php -text
genie/optimiser.php -text
lang/corbeille.xml -text
lang/corbeille_ar.php -text
lang/corbeille_de.php -text
lang/corbeille_en.php -text
lang/corbeille_es.php -text
lang/corbeille_fr.php -text
lang/corbeille_fr_tu.php -text
lang/corbeille_it.php -text
lang/corbeille_nl.php -text
lang/corbeille_pt_br.php -text
lang/paquet-corbeille.xml -text
lang/paquet-corbeille_ar.php -text
lang/paquet-corbeille_de.php -text
lang/paquet-corbeille_en.php -text
lang/paquet-corbeille_es.php -text
lang/paquet-corbeille_fr.php -text
lang/paquet-corbeille_it.php -text
lang/paquet-corbeille_nl.php -text
lang/paquet-corbeille_pt_br.php -text
/paquet.xml -text
prive/listes/corbeille_articles.html -text
prive/listes/corbeille_auteurs.html -text
prive/listes/corbeille_breves.html -text
prive/listes/corbeille_forums_prives.html -text
prive/listes/corbeille_forums_publics.html -text
prive/listes/corbeille_signatures.html -text
prive/listes/corbeille_sites.html -text
prive/squelettes/contenu/corbeille.html -text
prive/squelettes/navigation/corbeille.html -text
prive/style_prive_plugin_corbeille.html -text
prive/themes/spip/images/trash-16.png -text
prive/themes/spip/images/trash-32.png -text
prive/themes/spip/images/trash-empty-16.png -text
prive/themes/spip/images/trash-empty-32.png -text
prive/themes/spip/images/trash-full-16.png -text
prive/themes/spip/images/trash-full-32.png -text
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
/rector.php

7
.gitignore vendored

@ -0,0 +1,7 @@
/vendor/
/composer.phar
/composer.lock
/phpcs.xml
/phpstan.neon
/.php_cs.cache
/.php_cs.txt

@ -0,0 +1,7 @@
# Changelog
## Unreleased
### Changed
- Version compatible SPIP4.2

@ -0,0 +1,5 @@
# Calendrier Mini
## Documentation
Sur [SPIP Contrib](https://contrib.spip.net/Corbeille-2855)

@ -0,0 +1,20 @@
{
"name": "spip-contrib/corbeille",
"description": "Gestion des documents mis à la corbeille",
"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"
},
"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,91 @@
parameters:
ignoreErrors:
-
message: "#^Function charger_fonction not found\\.$#"
count: 2
path: action/corbeille_vider.php
-
message: "#^Function id_table_objet not found\\.$#"
count: 1
path: action/corbeille_vider.php
-
message: "#^Function include_spip not found\\.$#"
count: 2
path: action/corbeille_vider.php
-
message: "#^Function objet_type not found\\.$#"
count: 1
path: action/corbeille_vider.php
-
message: "#^Function pipeline not found\\.$#"
count: 1
path: action/corbeille_vider.php
-
message: "#^Function spip_log not found\\.$#"
count: 3
path: action/corbeille_vider.php
-
message: "#^Function sql_allfetsel not found\\.$#"
count: 2
path: action/corbeille_vider.php
-
message: "#^Function sql_delete not found\\.$#"
count: 3
path: action/corbeille_vider.php
-
message: "#^Function sql_in not found\\.$#"
count: 4
path: action/corbeille_vider.php
-
message: "#^Function sql_quote not found\\.$#"
count: 3
path: action/corbeille_vider.php
-
message: "#^Function table_objet_sql not found\\.$#"
count: 1
path: action/corbeille_vider.php
-
message: "#^Function chemin_image not found\\.$#"
count: 2
path: corbeille_fonctions.php
-
message: "#^Function _T not found\\.$#"
count: 3
path: formulaires/editer_corbeille.php
-
message: "#^Function _request not found\\.$#"
count: 3
path: formulaires/editer_corbeille.php
-
message: "#^Function include_spip not found\\.$#"
count: 3
path: formulaires/editer_corbeille.php
-
message: "#^Function objet_type not found\\.$#"
count: 1
path: formulaires/editer_corbeille.php
-
message: "#^Function table_objet not found\\.$#"
count: 1
path: formulaires/editer_corbeille.php
-
message: "#^Function optimiser_base_une_table not found\\.$#"
count: 1
path: genie/optimiser.php

@ -0,0 +1,11 @@
includes:
- phpstan-baseline.neon
parameters:
paths:
- .
excludePaths:
analyseAndScan:
- vendor
- lang
level: 0
Loading…
Cancel
Save