build: future version pour SPIP 5.0+ (suite)

pull/4851/head
JamesRezo 3 months ago
parent 877e09385e
commit f0b5181ff8

@ -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,6 +1,14 @@
# Changelog
## Unreleased
## [Unreleased]
### Added
- Installable en tant que package Composer
### Changed
- Compatible SPIP 5.0.0-dev
### Security

@ -1,18 +1,36 @@
{
"name": "spip/revisions",
"description": "Suivi des modifications des objets éditoriaux",
"license": "GPL-3.0-or-later",
"type": "spip-plugin",
"authors": [
{
"name": "Matthieu Marcillaud",
"homepage": "https://discuter.spip.net/c/spip-dev/5",
"role": "Maintainer"
}
],
"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",
"phpcompatibility/php-compatibility": "dev-develop",
"phpstan/phpstan": "^1.10",
"rector/rector": "^0.15.23",
"spip/coding-standards": "^1.3"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.4.27"
"php": "8.1.17"
}
},
"extra": {
"branch-alias": {
"dev-master": "3.2.x-dev"
}
}
}

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

@ -2,10 +2,11 @@ includes:
- phpstan-baseline.neon
parameters:
paths:
- .
excludePaths:
analyseAndScan:
- vendor
- lang
level: 0
phpVersion: 080100
paths:
- .
excludePaths:
analyseAndScan:
- vendor
- lang
level: 0

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