mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Move files to clean up project root directory
This commit is contained in:
@@ -4,11 +4,6 @@
|
||||
.travis.yml export-ignore
|
||||
docs/ export-ignore
|
||||
phpcs.xml.dist export-ignore
|
||||
phpstan-tests.neon export-ignore
|
||||
phpstan.neon export-ignore
|
||||
phpunit.xml.dist export-ignore
|
||||
psalm-baseline.xml export-ignore
|
||||
psalm.xml export-ignore
|
||||
resources/ export-ignore
|
||||
static-analysis/ export-ignore
|
||||
tests/ export-ignore
|
||||
|
||||
+4
-3
@@ -65,6 +65,7 @@
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Ramsey\\Uuid\\StaticAnalysis\\": "tests/static-analysis/",
|
||||
"Ramsey\\Uuid\\Test\\": "tests/"
|
||||
}
|
||||
},
|
||||
@@ -73,10 +74,10 @@
|
||||
"phpcbf": "phpcbf -vpw",
|
||||
"phpcs": "phpcs",
|
||||
"phpstan": [
|
||||
"phpstan analyse -c phpstan.neon src --level max --no-progress",
|
||||
"phpstan analyse -c phpstan-tests.neon tests --level max --no-progress"
|
||||
"phpstan analyse -c tests/phpstan.neon src --level max --no-progress",
|
||||
"phpstan analyse -c tests/phpstan-tests.neon tests --level max --no-progress"
|
||||
],
|
||||
"psalm": "psalm --show-info=false",
|
||||
"psalm": "psalm --show-info=false --config=tests/psalm.xml",
|
||||
"phpunit": "phpunit --verbose --colors=always",
|
||||
"phpunit-coverage": "phpunit --verbose --colors=always --coverage-html build/coverage",
|
||||
"test": [
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
<!-- Source and tests must follow the coding standard. -->
|
||||
<file>./src</file>
|
||||
<file>./static-analysis</file>
|
||||
<file>./tests</file>
|
||||
|
||||
<!-- Arguments for the command line runner. -->
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
errorBaseline="psalm-baseline.xml"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="static-analysis" />
|
||||
|
||||
<!-- At time of writing Psalm reports 65 errors in src, but these are suppressed by being listed in the errorBaseline file
|
||||
referenced above. Any new errors will cause a build failure. It might be a good project for someone to go through the errorBaseline
|
||||
and delete as many issues as possible, updating the code as they go to top producing the errors.
|
||||
|
||||
To see the errors in Psalm output, run psalm with the `<double-hyphen> ignore-baseline` option (literal double-hypen is not permitted in XML comment)
|
||||
-->
|
||||
<directory name="src" />
|
||||
</projectFiles>
|
||||
</psalm>
|
||||
@@ -1,28 +1,24 @@
|
||||
parameters:
|
||||
autoload_files:
|
||||
- tests/phpstan-bootstrap.php
|
||||
- ./phpstan-bootstrap.php
|
||||
checkMissingIterableValueType: false
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
excludes_analyse:
|
||||
- tests/ExpectedBehaviorTest.php
|
||||
- ./ExpectedBehaviorTest.php
|
||||
ignoreErrors:
|
||||
-
|
||||
message: "#^Function uuid_create\\(\\) has no return typehint specified\\.$#"
|
||||
count: 1
|
||||
path: tests/phpstan-bootstrap.php
|
||||
path: phpstan-bootstrap.php
|
||||
-
|
||||
message: "#^Function uuid_create\\(\\) has parameter \\$uuid_type with no typehint specified\\.$#"
|
||||
count: 1
|
||||
path: tests/phpstan-bootstrap.php
|
||||
path: phpstan-bootstrap.php
|
||||
-
|
||||
message: "#^Function uuid_parse\\(\\) has no return typehint specified\\.$#"
|
||||
count: 1
|
||||
path: tests/phpstan-bootstrap.php
|
||||
path: phpstan-bootstrap.php
|
||||
-
|
||||
message: "#^Function uuid_parse\\(\\) has parameter \\$uuid with no typehint specified\\.$#"
|
||||
count: 1
|
||||
path: tests/phpstan-bootstrap.php
|
||||
-
|
||||
message: "#^Unreachable statement - code above always terminates\\.$#"
|
||||
count: 3
|
||||
path: tests/UuidTest.php
|
||||
path: phpstan-bootstrap.php
|
||||
@@ -2,21 +2,21 @@ parameters:
|
||||
checkMissingIterableValueType: false
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
autoload_files:
|
||||
- tests/phpstan-bootstrap.php
|
||||
- ./phpstan-bootstrap.php
|
||||
ignoreErrors:
|
||||
-
|
||||
message: '#^Call to function is_int\(\) with float will always evaluate to false\.$#'
|
||||
count: 2
|
||||
path: src/Converter/Time/PhpTimeConverter.php
|
||||
count: 1
|
||||
path: ../src/Converter/Time/PhpTimeConverter.php
|
||||
-
|
||||
message: '#^Unreachable statement - code above always terminates\.$#'
|
||||
count: 2
|
||||
path: src/Converter/Time/PhpTimeConverter.php
|
||||
count: 1
|
||||
path: ../src/Converter/Time/PhpTimeConverter.php
|
||||
-
|
||||
message: '#^Comparison operation "<" between int<6, max> and 0 is always false\.$#'
|
||||
count: 1
|
||||
path: src/Generator/CombGenerator.php
|
||||
path: ../src/Generator/CombGenerator.php
|
||||
-
|
||||
message: '#^Comparison operation ">" between 6 and 0 is always true\.$#'
|
||||
count: 1
|
||||
path: src/Generator/CombGenerator.php
|
||||
path: ../src/Generator/CombGenerator.php
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="vendor/vimeo/psalm/config.xsd"
|
||||
errorBaseline="tests/psalm-baseline.xml"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<directory name="tests/static-analysis" />
|
||||
</projectFiles>
|
||||
</psalm>
|
||||
Reference in New Issue
Block a user