Skip to content

Commit

Permalink
infra: streamline config (#178)
Browse files Browse the repository at this point in the history
* infra: streamline config

* infra: streamline config

* infra: streamline config

* infra: streamline config

* infra: streamline config
  • Loading branch information
dkarlovi authored May 8, 2023
1 parent 8329d2e commit 82545ec
Show file tree
Hide file tree
Showing 24 changed files with 117 additions and 27 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = UTF-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[{Makefile, *.mk}]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/docs export-ignore
/resources export-ignore
/src/Xezilaires/Bridge/*/Test export-ignore
/src/Xezilaires/Test export-ignore
/.* export-ignore
/*dist export-ignore
/*baseline* export-ignore
/composer.lock export-ignore
/Makefile export-ignore
*.xls binary
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var
vendor
composer.lock
/var/
/vendor/
/composer.lock
7 changes: 5 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="./src/bootstrap.php"
cacheResultFile="var/phpqa/phpunit.cache"
cacheResultFile="var/phpqa/phpunit.result.cache"
colors="true"
convertDeprecationsToExceptions="true"
enforceTimeLimit="true"
executionOrder="random"
failOnEmptyTestSuite="true"
failOnRisky="true"
failOnWarning="true"
forceCoversAnnotation="true"
Expand Down
17 changes: 13 additions & 4 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config"
cacheDirectory="var/phpqa/psalm"
checkForThrowsInGlobalScope="false"
ensureArrayIntOffsetsExist="false"
ensureArrayStringOffsetsExist="false"
errorLevel="1"
findUnusedVariablesAndParams="true">
findUnusedBaselineEntry="false"
findUnusedCode="false"
findUnusedPsalmSuppress="false"
findUnusedVariablesAndParams="true"
limitMethodComplexity="true"
restrictReturnTypes="false"
strictBinaryOperands="false">
<projectFiles>
<directory name="."/>
<directory name="./"/>
<ignoreFiles allowMissingFiles="true">
<file name=".php-cs-fixer.dist.php"/>
<file name="src/Xezilaires/Test/ExampleBundle/XezilairesExampleBundle.php"/>
<directory name="src/Bridge/*/var/"/>
<directory name="src/Bridge/*/vendor/"/>
<directory name="src/Xezilaires/var/"/>
<directory name="src/Xezilaires/vendor/"/>
<directory name="vendor/"/>
<directory name="var/"/>
<directory name="vendor/"/>
</ignoreFiles>
</projectFiles>

Expand Down Expand Up @@ -50,7 +59,7 @@
</issueHandlers>

<plugins>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
</plugins>
</psalm>
3 changes: 3 additions & 0 deletions src/Bridge/PhpSpreadsheet/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/Test export-ignore
/.* export-ignore
/*dist export-ignore
/*baseline* export-ignore
/composer.lock export-ignore
/Makefile export-ignore
2 changes: 1 addition & 1 deletion src/Bridge/PhpSpreadsheet/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/vendor/
/var/
/vendor/
/composer.lock
1 change: 1 addition & 0 deletions src/Bridge/PhpSpreadsheet/phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ includes:
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-symfony/extension.neon
parameters:
tmpDir: %currentWorkingDirectory%/var/phpqa/phpstan
level: max
Expand Down
7 changes: 5 additions & 2 deletions src/Bridge/PhpSpreadsheet/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="./vendor/autoload.php"
cacheResultFile="var/phpqa/phpunit.cache"
cacheResultFile="var/phpqa/phpunit.result.cache"
colors="true"
convertDeprecationsToExceptions="true"
enforceTimeLimit="true"
executionOrder="random"
failOnEmptyTestSuite="true"
failOnRisky="true"
failOnWarning="true"
forceCoversAnnotation="true"
Expand Down
11 changes: 10 additions & 1 deletion src/Bridge/PhpSpreadsheet/psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config"
cacheDirectory="var/phpqa/psalm"
checkForThrowsInGlobalScope="true"
ensureArrayIntOffsetsExist="true"
ensureArrayStringOffsetsExist="false"
errorLevel="1"
findUnusedVariablesAndParams="true">
findUnusedBaselineEntry="false"
findUnusedCode="false"
findUnusedPsalmSuppress="true"
findUnusedVariablesAndParams="true"
limitMethodComplexity="true"
restrictReturnTypes="false"
strictBinaryOperands="false">
<projectFiles>
<directory name="."/>
<ignoreFiles>
Expand Down
3 changes: 3 additions & 0 deletions src/Bridge/Spout/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/Test export-ignore
/.* export-ignore
/*dist export-ignore
/*baseline* export-ignore
/composer.lock export-ignore
/Makefile export-ignore
2 changes: 1 addition & 1 deletion src/Bridge/Spout/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/vendor/
/var/
/vendor/
/composer.lock
1 change: 1 addition & 0 deletions src/Bridge/Spout/phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ includes:
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-symfony/extension.neon
parameters:
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
Expand Down
7 changes: 5 additions & 2 deletions src/Bridge/Spout/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="./vendor/autoload.php"
cacheResultFile="var/phpqa/phpunit.cache"
cacheResultFile="var/phpqa/phpunit.result.cache"
colors="true"
convertDeprecationsToExceptions="true"
enforceTimeLimit="true"
executionOrder="random"
failOnEmptyTestSuite="true"
failOnRisky="true"
failOnWarning="true"
forceCoversAnnotation="true"
Expand Down
11 changes: 10 additions & 1 deletion src/Bridge/Spout/psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config"
cacheDirectory="var/phpqa/psalm"
checkForThrowsInGlobalScope="true"
ensureArrayIntOffsetsExist="true"
ensureArrayStringOffsetsExist="false"
errorLevel="1"
findUnusedVariablesAndParams="true">
findUnusedBaselineEntry="false"
findUnusedCode="false"
findUnusedPsalmSuppress="false"
findUnusedVariablesAndParams="true"
limitMethodComplexity="true"
restrictReturnTypes="false"
strictBinaryOperands="false">
<projectFiles>
<directory name="."/>
<ignoreFiles>
Expand Down
3 changes: 3 additions & 0 deletions src/Bridge/Symfony/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/Test export-ignore
/.* export-ignore
/*dist export-ignore
/*baseline* export-ignore
/composer.lock export-ignore
/Makefile export-ignore
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/vendor/
/var/
/vendor/
/composer.lock
1 change: 1 addition & 0 deletions src/Bridge/Symfony/phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ includes:
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-symfony/extension.neon
parameters:
checkMissingIterableValueType: false
tmpDir: %currentWorkingDirectory%/var/phpqa/phpstan
Expand Down
7 changes: 5 additions & 2 deletions src/Bridge/Symfony/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="./vendor/autoload.php"
cacheResultFile="var/phpqa/phpunit.cache"
cacheResultFile="var/phpqa/phpunit.result.cache"
colors="true"
convertDeprecationsToExceptions="true"
enforceTimeLimit="true"
executionOrder="random"
failOnEmptyTestSuite="true"
failOnRisky="true"
failOnWarning="true"
forceCoversAnnotation="true"
Expand Down
11 changes: 10 additions & 1 deletion src/Bridge/Symfony/psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config"
cacheDirectory="var/phpqa/psalm"
checkForThrowsInGlobalScope="true"
ensureArrayIntOffsetsExist="false"
ensureArrayStringOffsetsExist="true"
errorLevel="1"
findUnusedVariablesAndParams="true">
findUnusedBaselineEntry="true"
findUnusedCode="false"
findUnusedPsalmSuppress="false"
findUnusedVariablesAndParams="true"
limitMethodComplexity="true"
restrictReturnTypes="true"
strictBinaryOperands="false">
<projectFiles>
<directory name="."/>
<ignoreFiles>
Expand Down
3 changes: 3 additions & 0 deletions src/Xezilaires/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/Test export-ignore
/.* export-ignore
/*dist export-ignore
/*baseline* export-ignore
/composer.lock export-ignore
/Makefile export-ignore
2 changes: 1 addition & 1 deletion src/Xezilaires/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/vendor/
/var/
/vendor/
/composer.lock
7 changes: 5 additions & 2 deletions src/Xezilaires/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="./vendor/autoload.php"
cacheResultFile="var/phpqa/phpunit.cache"
cacheResultFile="var/phpqa/phpunit.result.cache"
colors="true"
convertDeprecationsToExceptions="true"
enforceTimeLimit="true"
executionOrder="random"
failOnEmptyTestSuite="true"
failOnRisky="true"
failOnWarning="true"
forceCoversAnnotation="true"
Expand Down
11 changes: 10 additions & 1 deletion src/Xezilaires/psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config"
cacheDirectory="var/phpqa/psalm"
checkForThrowsInGlobalScope="true"
ensureArrayIntOffsetsExist="true"
ensureArrayStringOffsetsExist="false"
errorLevel="1"
findUnusedVariablesAndParams="true">
findUnusedBaselineEntry="false"
findUnusedCode="false"
findUnusedPsalmSuppress="false"
findUnusedVariablesAndParams="false"
limitMethodComplexity="true"
restrictReturnTypes="false"
strictBinaryOperands="false">
<projectFiles>
<directory name="."/>
<ignoreFiles>
Expand Down

0 comments on commit 82545ec

Please sign in to comment.