Browse Source

La tripaille moderne

pull/13/head
Cerdic 7 months ago
parent
commit
17c5c0e59e
  1. 15
      .gitignore
  2. 27
      composer.json
  3. 14
      phpcs.xml.dist
  4. 8
      phpstan.neon.dist

15
.gitignore vendored

@ -0,0 +1,15 @@
/vendor/
/composer.phar
/composer.lock
/phpcs.xml
/phpstan.neon
/.php_cs.cache
/.php_cs.txt
/.phpunit.cache
/phpunit.xml
/var
!/var/tmp/file.unknown
!/var/tmp/test.zip
!/var/tmp/tar/test.tar
!/var/tmp/tgz/test.tar.gz
/rector.php

27
composer.json

@ -0,0 +1,27 @@
{
"autoload": {
"psr-4": {
"SPIP\\Facteur\\": "inc/Facteur/"
}
},
"autoload-dev": {
},
"require": {
"php": "^7.4 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"spip/coding-standards": "^1.2",
"phpstan/phpstan": "^1.4",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"rector/rector": "^0.12.13"
},
"config": {
"platform": {
"php": "7.4.27"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

14
phpcs.xml.dist

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<ruleset>
<file>formulaires</file>
<file>inc</file>
<rule ref="SPIP41"/>
<rule ref="PSR1"/>
<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>

8
phpstan.neon.dist

@ -0,0 +1,8 @@
includes:
- phpstan-baseline.neon
parameters:
paths:
- formulaires
- inc
level: 8
Loading…
Cancel
Save