Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 81ce3f5

Browse files
Initial version
1 parent 1354208 commit 81ce3f5

18 files changed

+3237
-0
lines changed

‎.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
indent_style = tab
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{md,neon,yml}]
10+
indent_size = 2
11+
indent_style = space
12+
13+
[phpstan-baseline.neon]
14+
indent_style = tab

‎.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.editorconfig export-ignore
2+
.gitattributes export-ignore
3+
.gitignore export-ignore
4+
.github export-ignore
5+
phpstan-baseline.neon export-ignore
6+
phpstan.neon export-ignore
7+
tests/ export-ignore
8+
9+
*.php* diff=php linguist-language=PHP

‎.github/workflows/checks.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: checks
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
static_analysis:
8+
name: Static analysis
9+
10+
runs-on: ubuntu-latest
11+
12+
env:
13+
COMPOSER_NO_INTERACTION: "1"
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.4'
21+
coverage: none
22+
23+
- run: composer install --ansi --no-progress --prefer-dist
24+
25+
- name: Run parallel-lint
26+
run: composer run lint
27+
28+
- name: Run PHPStan
29+
run: composer run phpstan
30+
31+
tests:
32+
name: PHP ${{ matrix.php }} tests on ${{ matrix.os }} with ${{ matrix.deps }} deps
33+
34+
needs:
35+
- static_analysis
36+
37+
strategy:
38+
matrix:
39+
deps:
40+
- stable
41+
- lowest
42+
os:
43+
- macos-latest
44+
- ubuntu-latest
45+
- windows-latest
46+
php:
47+
- '8.4'
48+
49+
fail-fast: false
50+
51+
runs-on: ${{ matrix.os }}
52+
53+
env:
54+
COMPOSER_NO_INTERACTION: "1"
55+
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- uses: shivammathur/setup-php@v2
60+
with:
61+
php-version: ${{ matrix.php }}
62+
coverage: none
63+
64+
- run: composer install --ansi --no-progress --prefer-dist
65+
66+
- run: composer update --ansi --no-progress --prefer-lowest
67+
if: matrix.deps == 'lowest'
68+
69+
- name: Run tests
70+
run: composer run test
71+
72+
- if: failure()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
path: tests/output

‎.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
.phpunit.cache
3+
.phpunit.result.cache
4+
tests-temp
5+
vendor

‎LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2025, Vojtěch Dobeš
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

‎composer.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"authors": [
3+
{
4+
"name": "Vojtěch Dobeš",
5+
"homepage": "https://vojtechdobes.com"
6+
}
7+
],
8+
"autoload": {
9+
"psr-4": {
10+
"Vojtechdobes\\PHPStan\\": "src/"
11+
}
12+
},
13+
"autoload-dev": {
14+
"psr-4": {
15+
"Vojtechdobes\\Tests\\": "tests/"
16+
}
17+
},
18+
"config": {
19+
"sort-packages": true
20+
},
21+
"keywords": [
22+
"ci",
23+
"graphql",
24+
"integration",
25+
"nette",
26+
"phpstan",
27+
"phpstan-rules",
28+
"static-analysis",
29+
"static-code-analysis"
30+
],
31+
"license": [
32+
"BSD-3-Clause"
33+
],
34+
"name": "vojtech-dobes/phpstan-php-graphql-server-nette-integration",
35+
"require": {
36+
"php": "~8.4",
37+
"vojtech-dobes/php-graphql-server-nette-integration": "dev-master@dev"
38+
},
39+
"require-dev": {
40+
"nette/bootstrap": "^3.2.5",
41+
"nette/di": "^3.2",
42+
"php-parallel-lint/php-parallel-lint": "^1.4.0",
43+
"phpstan/phpstan": "^2.1.12",
44+
"phpstan/phpstan-strict-rules": "^2.0.4",
45+
"phpunit/phpunit": "^12.1",
46+
"spaze/phpstan-disallowed-calls": "^4.5.0",
47+
"tracy/tracy": "^2.10.9",
48+
"vojtech-dobes/php-grammar-processing": "dev-master@dev",
49+
"vojtech-dobes/php-graphql-server": "dev-master@dev",
50+
"vojtech-dobes/phpstan-php-graphql-server": "dev-master@dev"
51+
},
52+
"scripts": {
53+
"lint": "parallel-lint src tests",
54+
"phpstan": "phpstan analyse --memory-limit 256M",
55+
"test": "composer dump-autoload && phpunit tests"
56+
}
57+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /