Skip to content

Commit 10ea321

Browse files
committed
init
0 parents  commit 10ea321

File tree

6 files changed

+642
-0
lines changed

6 files changed

+642
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
composer.lock
2+
vendor/
3+
phpcs.xml
4+
phpcs.log

LICENSE

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Patchlevel Coding Standard
2+
3+
The Patchlevel Coding Standard is a set of [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules applied to all Patchlevel projects. Patchlevel Coding Standard is heavily based on [Slevomat Coding Standard](https://github.com/slevomat/coding-standard).

composer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "patchlevel/coding-standard",
3+
"type": "phpcodesniffer-standard",
4+
"description": "The Patchlevel Coding Standard is a set of PHPCS rules applied to all Patchlevel projects.",
5+
"keywords": [
6+
"patchlevel",
7+
"coding",
8+
"standard",
9+
"cs",
10+
"code",
11+
"style",
12+
"sniffer",
13+
"rules",
14+
"sniffs",
15+
"checks"
16+
],
17+
"license": "MIT",
18+
"authors": [
19+
{"name": "Daniel Badura", "email": "d.m.badura@googlemail.com"},
20+
{"name": "David Badura", "email": "d.a.badura@googlemail.com"}
21+
],
22+
"require": {
23+
"php": "^7.4 || ^8.0",
24+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
25+
"slevomat/coding-standard": "^6.4.1",
26+
"squizlabs/php_codesniffer": "^3.5.8"
27+
},
28+
"config": {
29+
"sort-packages": true
30+
}
31+
}

phpcs.xml.dist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<ruleset
3+
name="PHPCS Coding Standards for patchlevel/coding-standard"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
6+
>
7+
<description>Check the code of the sniffs in patchlevel/coding-standard.</description>
8+
9+
<arg name="basepath" value="."/>
10+
<arg name="extensions" value="php"/>
11+
<arg name="colors"/>
12+
13+
<!-- Show progress of the run -->
14+
<arg value="p"/>
15+
<file>src</file>
16+
17+
<rule ref="Patchlevel"/>
18+
</ruleset>

0 commit comments

Comments
 (0)