Skip to content

Commit 000d4b5

Browse files
committed
update config
1 parent 4cf6c4a commit 000d4b5

File tree

4 files changed

+64
-1
lines changed

4 files changed

+64
-1
lines changed

.scrutinizer.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
filter:
2+
paths: [src/*]
3+
excluded_paths: [tests/*]
4+
checks:
5+
php:
6+
code_rating: true
7+
remove_extra_empty_lines: true
8+
remove_php_closing_tag: true
9+
remove_trailing_whitespace: true
10+
fix_use_statements:
11+
remove_unused: true
12+
preserve_multiple: false
13+
preserve_blanklines: true
14+
order_alphabetically: true
15+
fix_php_opening_tag: true
16+
fix_linefeed: true
17+
fix_line_ending: true
18+
fix_identation_4spaces: true
19+
fix_doc_comments: true
20+
tools:
21+
external_code_coverage: true
22+
php_code_coverage: false
23+
php_code_sniffer:
24+
config:
25+
standard: PSR2
26+
filter:
27+
paths: ['src']
28+
php_loc:
29+
enabled: true
30+
excluded_dirs: [vendor]
31+
php_cpd:
32+
enabled: true
33+
excluded_dirs: [vendor]

.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
6+
cache:
7+
directories:
8+
- $HOME/.composer/cache
9+
10+
before_install:
11+
- travis_retry composer self-update
12+
13+
install:
14+
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
15+
16+
script:
17+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
18+
19+
after_script:
20+
- wget https://scrutinizer-ci.com/ocular.phar
21+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Colour
22

33
<p align="center">
4+
<a href="https://travis-ci.org/laravel-validation-rules/colour">
5+
<img src="https://img.shields.io/travis/laravel-validation-rules/colour.svg?style=flat-square">
6+
</a>
7+
<a href="https://scrutinizer-ci.com/g/laravel-validation-rules/colour/code-structure/master/code-coverage">
8+
<img src="https://img.shields.io/scrutinizer/coverage/g/laravel-validation-rules/colour.svg?style=flat-square">
9+
</a>
10+
<a href="https://scrutinizer-ci.com/g/laravel-validation-rules/colour">
11+
<img src="https://img.shields.io/scrutinizer/g/laravel-validation-rules/colour.svg?style=flat-square">
12+
</a>
413
<a href="https://github.com/laravel-validation-rules/colour/blob/master/LICENSE">
514
<img src="https://img.shields.io/github/license/laravel-validation-rules/colour.svg?style=flat-square">
615
</a>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "laravel-validation-rules/colour",
33
"descrption": "validate colours",
44
"type": "library",
5-
"keywords": [ "laravel", "validation" ],
5+
"keywords": [ "laravel", "validation", "colour" ],
66
"require": {
77
"illuminate/contracts": "^5.5"
88
},

0 commit comments

Comments
 (0)