mirror of
https://github.com/chinayin/ip2region-sdk-php.git
synced 2025-04-06 04:15:48 +08:00
更新项目基础配置文件
This commit is contained in:
parent
69c3bb11ee
commit
813f71871c
@ -1,11 +1,15 @@
|
|||||||
# EditorConfig is awesome: http://EditorConfig.org
|
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
|
|
||||||
[**.{php,md}]
|
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = 80
|
||||||
|
|
||||||
|
[*.{json,yml}]
|
||||||
|
indent_size = 2
|
||||||
|
8
.gitattributes
vendored
8
.gitattributes
vendored
@ -1,9 +1,11 @@
|
|||||||
|
/.github export-ignore
|
||||||
|
/.gitlab export-ignore
|
||||||
/.gitattributes export-ignore
|
/.gitattributes export-ignore
|
||||||
/.gitignore export-ignore
|
/.gitignore export-ignore
|
||||||
/.github export-ignore
|
|
||||||
/.php-cs-fixer.php export-ignore
|
|
||||||
/.editorconfig export-ignore
|
/.editorconfig export-ignore
|
||||||
|
/.php-cs-fixer.php export-ignore
|
||||||
|
/phpstan.neon export-ignore
|
||||||
|
/phpstan-baseline.neon export-ignore
|
||||||
/phpunit.xml export-ignore
|
/phpunit.xml export-ignore
|
||||||
/phpunit.xml.dist export-ignore
|
/phpunit.xml.dist export-ignore
|
||||||
/phpstan.neon export-ignore
|
|
||||||
/tests export-ignore
|
/tests export-ignore
|
||||||
|
@ -21,9 +21,9 @@ return (new PhpCsFixer\Config())
|
|||||||
->setUsingCache(true)
|
->setUsingCache(true)
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setRules([
|
->setRules([
|
||||||
|
'@PSR12' => true,
|
||||||
'@PHP71Migration' => true,
|
'@PHP71Migration' => true,
|
||||||
'@PHPUnit75Migration:risky' => true,
|
'@PHPUnit75Migration:risky' => true,
|
||||||
'@PSR12' => true,
|
|
||||||
'header_comment' => ['header' => $fileHeaderComment],
|
'header_comment' => ['header' => $fileHeaderComment],
|
||||||
])
|
])
|
||||||
->setFinder(
|
->setFinder(
|
||||||
|
0
phpstan-baseline.neon
Normal file
0
phpstan-baseline.neon
Normal file
@ -1,3 +1,6 @@
|
|||||||
|
includes:
|
||||||
|
- phpstan-baseline.neon
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
level: 5
|
level: 5
|
||||||
checkMissingIterableValueType: false
|
checkMissingIterableValueType: false
|
||||||
@ -11,3 +14,4 @@ parameters:
|
|||||||
- tests
|
- tests
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#PHPDoc tag .* has invalid value.*#'
|
- '#PHPDoc tag .* has invalid value.*#'
|
||||||
|
- '#Unsafe usage of new static\(\).#'
|
||||||
|
@ -1,24 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit backupGlobals="false"
|
<phpunit backupGlobals="false"
|
||||||
backupStaticAttributes="false"
|
|
||||||
bootstrap="./tests/bootstrap.php"
|
bootstrap="./tests/bootstrap.php"
|
||||||
colors="true"
|
colors="true"
|
||||||
convertErrorsToExceptions="true"
|
failOnRisky="true"
|
||||||
convertNoticesToExceptions="true"
|
failOnWarning="true"
|
||||||
convertWarningsToExceptions="true"
|
|
||||||
processIsolation="false"
|
|
||||||
stopOnFailure="false"
|
|
||||||
>
|
>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="All">
|
<testsuite name="All">
|
||||||
<directory>./tests/</directory>
|
<directory>tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
<filter>
|
<coverage>
|
||||||
<whitelist>
|
<include>
|
||||||
<directory suffix=".php">src/</directory>
|
<directory suffix=".php">src</directory>
|
||||||
</whitelist>
|
</include>
|
||||||
</filter>
|
<exclude>
|
||||||
|
<directory>src/data</directory>
|
||||||
|
</exclude>
|
||||||
|
<report>
|
||||||
|
<clover outputFile="clover.xml"/>
|
||||||
|
</report>
|
||||||
|
</coverage>
|
||||||
<php>
|
<php>
|
||||||
<env name="XDB_PATH" value="../assets/ip2region.xdb"/>
|
<env name="XDB_PATH" value="../assets/ip2region.xdb"/>
|
||||||
</php>
|
</php>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user