Skip to content

Commit 135364e

Browse files
committed
Minor improvements and fixes:
* CodeClimate configuration. * Code coverage configuration. * PregHelper class made abstract. * Some badges added to README.
1 parent 7fa9c2a commit 135364e

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

.codeclimate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
engines:
3+
duplication:
4+
enabled: true
5+
config:
6+
languages:
7+
- php
8+
fixme:
9+
enabled: true
10+
phpmd:
11+
enabled: true
12+
ratings:
13+
paths:
14+
- "**.php"
15+
exclude_paths:
16+
- tests/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.idea/
2+
/build/
23
/vendor/
34
/composer.lock

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PHP JSON Pointer
22
================
33
[![Build Status](https://travis-ci.org/remorhaz/php-json-pointer.svg?branch=master)](https://travis-ci.org/remorhaz/php-json-pointer)
4+
[![Code Climate](https://codeclimate.com/github/remorhaz/php-json-pointer/badges/gpa.svg)](https://codeclimate.com/github/remorhaz/php-json-pointer)
5+
[![Test Coverage](https://codeclimate.com/github/remorhaz/php-json-pointer/badges/coverage.svg)](https://codeclimate.com/github/remorhaz/php-json-pointer/coverage)
46

57
This library allows usage of [RFC6901](https://tools.ietf.org/html/rfc6901)-compliant JSON pointers with PHP variables.
68

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"php": ">=5.6"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "@stable"
18+
"phpunit/phpunit": "@stable",
19+
"codeclimate/php-test-reporter": "dev-master"
1920
},
2021
"autoload": {
2122
"psr-4": {

phpunit.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
<testsuite name="Library Test Suite">
77
<directory>tests/</directory>
88
</testsuite>
9-
<filter>
10-
<whitelist>
11-
<directory suffix=".php">src/</directory>
12-
</whitelist>
13-
</filter>
149
</testsuites>
10+
<filter>
11+
<whitelist>
12+
<directory suffix=".php">src/</directory>
13+
</whitelist>
14+
</filter>
15+
<logging>
16+
<log type="coverage-clover" target="build/logs/clover.xml"/>
17+
</logging>
1518
</phpunit>

src/PregHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Helper to assert PREG function results.
77
* @package JSONPointer
88
*/
9-
class PregHelper
9+
abstract class PregHelper
1010
{
1111

1212

0 commit comments

Comments
 (0)