Commit 14f1d905 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Déplacement des sources PHP dans src/php.

parent c8d285d6
......@@ -30,11 +30,11 @@ install-vendors:
phploc:
<<: *test
script: vendor/bin/phploc src tests
script: vendor/bin/phploc src/php tests
lint:
<<: *test
script: vendor/bin/parallel-lint -j $(nproc) src tests
script: vendor/bin/parallel-lint -j $(nproc) src/php tests
php-cs-fixer:
<<: *test
......@@ -42,7 +42,7 @@ php-cs-fixer:
phpcpd:
<<: *test
script: vendor/bin/phpcpd --fuzzy src tests
script: vendor/bin/phpcpd --fuzzy src/php tests
allow_failure: true
phpunit:
......@@ -55,7 +55,7 @@ composer-require-checker:
phpmd:
<<: *test
script: vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml --suffixes=php
script: vendor/bin/phpmd src/php,tests text ./phpmd-ruleset.xml --suffixes=php
psalm:
<<: *test
......
......@@ -3,7 +3,7 @@
$finder = PhpCsFixer\Finder::create()
->files()
->name('*.php')
->in('src');
->in('src/php');
return Irstea\CS\Config::create()
->setIndent(' ')
......
......@@ -43,7 +43,7 @@
"vimeo/psalm": "^2.0"
},
"autoload": {
"psr-4": { "Irstea\\NgModelGeneratorBundle\\": "src/" }
"psr-4": { "Irstea\\NgModelGeneratorBundle\\": "src/php/" }
},
"autoload-dev": {
"psr-4": { "Irstea\\NgModelGeneratorBundle\\Tests\\": "tests/" }
......
devtools/php/phpmd-ruleset.xml
\ No newline at end of file
<?xml version="1.0"?>
<ruleset name="Irstea PHPMD ruleset"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd">
<rule ref="devtools/php/phpmd-ruleset.xml"/>
</ruleset>
......@@ -14,7 +14,7 @@
<filter>
<whitelist>
<directory>src</directory>
<directory>src/php</directory>
</whitelist>
</filter>
</phpunit>
......@@ -6,10 +6,7 @@
xsi:schemaLocation="https://getpsalm.org/schema/config file:///home/guillaume.perreal/projets/gitlab/pole-is/deepomics/backend/vendor/irstea/ng-model-generator-bundle/vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
<directory name="src/php/" />
</projectFiles>
<issueHandlers>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment