build: future version pour SPIP 5.0+ (suite)

pull/4875/head
JamesRezo 2 months ago
parent 949444239d
commit f6a6e76779

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

7
.gitattributes vendored

@ -0,0 +1,7 @@
/.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

@ -1,8 +1,15 @@
# Changelog
## Unreleased
## [Unreleased]
## Added
- Installable en tant que package Composer
## Changed
- Compatible SPIP 5.0.0-dev
### Security
- spip-team/securite#4841 Limiter lusage de `#ENV**` dans les formulaires.

@ -1,18 +1,36 @@
{
"name": "spip/bigup",
"type": "spip-plugin",
"description": "Téléverser des gros fichiers",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Matthieu Marcillaud",
"role": "Maintainer",
"homepage": "https://discuter.spip.net/c/spip-dev/5"
}
],
"require": {
"php": "^7.4 || ^8.0"
"php": "^8.1"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpstan/phpstan": "^1.4",
"spip/coding-standards": "^1.2"
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpstan/phpstan": "^1.10",
"spip/coding-standards": "^1.3",
"phpcompatibility/php-compatibility": "dev-develop",
"rector/rector": "^0.15.23"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.4.27"
"php": "8.1.17"
}
},
"extra": {
"branch-alias": {
"dev-master": "3.3.x-dev"
}
}
}

@ -34,7 +34,6 @@
<pipeline nom="affiche_milieu" inclure="bigup_pipelines.php" />
<utilise nom="saisies" compatibilite="[2.17.1;]" />
<necessite nom="php" compatibilite="[5.4.0;[" />
<genie nom="nettoyer_repertoire_upload" periode="86400" />

@ -5,7 +5,7 @@
<exclude-pattern>lang/*</exclude-pattern>
<exclude-pattern>lib/*</exclude-pattern>
<rule ref="SPIP41"/>
<rule ref="SPIP50"/>
<config name="ignore_warnings_on_exit" value="1"/>
<arg name="cache" value=".php_cs.cache"/>

@ -2,12 +2,13 @@ includes:
- phpstan-baseline.neon
parameters:
paths:
- .
excludePaths:
analyseAndScan:
- vendor
- lang
analyse:
- lib
level: 0
phpVersion: 80100
paths:
- .
excludePaths:
analyseAndScan:
- vendor
- lang
analyse:
- lib
level: 0

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/action',
__DIR__ . '/balise',
__DIR__ . '/formulaires',
__DIR__ . '/genie',
__DIR__ . '/inc',
]);
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81
]);
};
Loading…
Cancel
Save