Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears committed Dec 31, 2019
1 parent 14827db commit 4593fc8
Show file tree
Hide file tree
Showing 83 changed files with 5,808 additions and 6,609 deletions.
3 changes: 3 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: "2"
exclude_patterns:
- "vendor"
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
!vendor
# Deps
vendor

# Unit
tmp
*.cache
20 changes: 9 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@
"description": "Internal configuration helper for roots/bedrock projects",
"license": "MIT",
"require": {
"php": ">=7.1",
"oscarotero/env": "^1.2.0",
"roots/wp-config": "1.0.0",
"vlucas/phpdotenv": "^3.4.0"
"vlucas/phpdotenv": "^4.1.0"
},
"require-dev": {
"roave/security-advisories": "dev-master"
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.5",
"phpunit/phpunit": "^8.5"
},
"autoload": {
"psr-4": {
"\\TinyPixel\\Config\\": "src"
"TinyPixel\\Config\\": "src"
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": ["phpcs"]
"lint": [
"phpcs"
]
}
}
}
1,982 changes: 1,749 additions & 233 deletions composer.lock

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<ruleset name="Roots">
<description>Roots Coding Standards</description>

<!-- Scan all files in directory -->
<file>.</file>

<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>

<!-- Ignore WordPress and Composer dependencies -->
<exclude-pattern>vendor/</exclude-pattern>

<!-- Show colors in console -->
<arg value="-colors"/>

<!-- Show sniff codes in all reports -->
<arg value="ns"/>

<!-- Use PSR-2 as a base -->
<rule ref="PSR2"/>
</ruleset>
26 changes: 26 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">

<logging>
<log type="coverage-html" target="tmp/report" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="tmp/clover.xml"/>
</logging>
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
Loading

0 comments on commit 4593fc8

Please sign in to comment.