Skip to content

Commit 32ec17c

Browse files
committed
initial
0 parents  commit 32ec17c

File tree

7 files changed

+120
-0
lines changed

7 files changed

+120
-0
lines changed

.php_cs.dist

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in('lib')
5+
->in('tests')
6+
;
7+
8+
return PhpCsFixer\Config::create()
9+
->setRules([
10+
'@PSR2' => true,
11+
'no_unused_imports' => true,
12+
'array_syntax' => ['syntax' => 'short'],
13+
])
14+
->setFinder($finder)
15+
;

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: php
2+
3+
sudo: false
4+
5+
php:
6+
- 7.1
7+
- 7.2
8+
9+
cache:
10+
directories:
11+
- $HOME/.composer/cache
12+
13+
before_script:
14+
- composer install
15+
16+
script:
17+
- ./vendor/bin/php-cs-fixer fix --dry-run
18+
- ./vendor/bin/phpstan analyse --level=7 lib
19+
- ./vendor/bin/phpunit

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2019 Daniel Leech
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fink
2+
====================
3+
4+
[![Build Status](https://travis-ci.org/dantleech/fink.svg?branch=master)](https://travis-ci.org/dantleech/fink)

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "dantleech/fink",
3+
"description": "Checks Links",
4+
"license": "MIT",
5+
"type": "phpactor-extension",
6+
"authors": [
7+
{
8+
"name": "Daniel Leech",
9+
"email": "[email protected]"
10+
}
11+
],
12+
13+
"require": {
14+
"phpactor/container": "^1.0"
15+
},
16+
"require-dev": {
17+
"phpstan/phpstan": "^0.10.8",
18+
"phpunit/phpunit": "^7.5",
19+
"friendsofphp/php-cs-fixer": "^2.14"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Phpactor\\Extension\\Fink\\": "lib/"
24+
}
25+
},
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Phpactor\\Extension\\Fink\\Tests\\": "tests/"
29+
}
30+
},
31+
"extra": {
32+
"phpactor.extension_class": "Phpactor\\Extension\\Fink\\FinkExtension",
33+
"branch-alias": {
34+
"dev-master": "0.1.x-dev"
35+
}
36+
}
37+
}

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
paths: [ lib ]

phpunit.xml.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
4+
<phpunit
5+
colors="true"
6+
bootstrap="vendor/autoload.php"
7+
>
8+
9+
<testsuites>
10+
<testsuite name="Fink">
11+
<directory>./tests</directory>
12+
</testsuite>
13+
</testsuites>
14+
15+
<filter>
16+
<whitelist addUncoveredFilesFromWhitelist="true">
17+
<directory>.</directory>
18+
<exclude>
19+
<directory>vendor/</directory>
20+
</exclude>
21+
</whitelist>
22+
</filter>
23+
24+
</phpunit>

0 commit comments

Comments
 (0)