Skip to content

Commit 4384dc1

Browse files
committed
added CI - phplint, code-checker & phpstan
1 parent b571f14 commit 4384dc1

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,29 @@
1515
"nette/di": "^3.0",
1616
"nette/http": "^3.0"
1717
},
18+
"require-dev": {
19+
"jakub-onderka/php-parallel-lint": "^1.0",
20+
"jakub-onderka/php-console-highlighter": "^0.4.0",
21+
"nette/code-checker": "^3.1",
22+
"phpstan/phpstan": "^0.12",
23+
"phpstan/extension-installer": "^1.0",
24+
"phpstan/phpstan-strict-rules": "^0.12",
25+
"phpstan/phpstan-deprecation-rules": "^0.12",
26+
"phpstan/phpstan-nette": "^0.12"
27+
},
1828
"autoload": {
1929
"psr-0": {
2030
"HttpAuthExtension": "src/"
2131
}
32+
},
33+
"scripts": {
34+
"ci": [
35+
"@phplint",
36+
"@code-checker",
37+
"@phpstan"
38+
],
39+
"phplint": "parallel-lint --colors src/",
40+
"code-checker": "code-checker --eol --fix --strict-types -d src/",
41+
"phpstan": "phpstan analyse"
2242
}
2343
}

phpstan.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src/
5+
fileExtensions:
6+
- php
7+
autoload_directories:
8+
- src

0 commit comments

Comments
 (0)