Skip to content

Commit c8c4e1e

Browse files
committed
ci(config): Update CI config files
1 parent a3adec4 commit c8c4e1e

29 files changed

Lines changed: 229 additions & 147 deletions

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end_of_line = crlf
2727
trim_trailing_whitespace = false
2828
max_line_length = 80
2929

30-
[*.{yml,yml.dist,yaml,yaml.dist,xml,xml.dist}]
30+
[*.{yml,yml.dist,yaml,yaml.dist,xml,xml.dist,toml}]
3131
indent_size = 2
3232

3333
[*.{html,css,scss,js,ts,vue,jsx,tsx}]

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# Ignore all test and documentation with "export-ignore".
3636
/.*/ export-ignore
3737
/baselines/ export-ignore
38-
/benchmarks/ export-ignore
38+
#/benchmarks/ export-ignore
3939
#/docs/ export-ignore
4040
#/examples/ export-ignore
4141
/tests/ export-ignore
@@ -57,5 +57,6 @@
5757
/phpunit.xml.dist export-ignore
5858
/rector-*.php export-ignore
5959
/rector.php export-ignore
60+
/rule-doc-generator export-ignore
6061
/testbench.yaml export-ignore
6162
/tests.* export-ignore

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ body:
4545
attributes:
4646
label: Laravel Version
4747
description: What version of Laravel are you running? Please be as specific as possible
48-
placeholder: 9.0.0
48+
placeholder: 10.0.0
4949
validations:
5050
required: true
5151
- type: dropdown

.github/workflows/php-cs-fixer.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ jobs:
3737
- name: Run composer install
3838
run: composer install --no-interaction --ansi -v
3939

40+
- name: Run php-cs-fixer with annotate-pull-request format
41+
continue-on-error: true
42+
run: composer php-cs-fixer:fix-dry-run-format-annotate-pull-request
43+
4044
- name: Run php-cs-fixer
4145
run: composer php-cs-fixer:fix-dry-run

.github/workflows/phpstan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@ jobs:
4747
sarif_file: .build/phpstan/results.sarif
4848
wait-for-processing: true
4949

50+
- name: Run phpstan with annotate-pull-request error format
51+
continue-on-error: true
52+
run: composer phpstan:analyse-error-format-annotate-pull-request
53+
5054
- name: Run phpstan
5155
run: composer phpstan:analyse

.github/workflows/rector.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ jobs:
3737
- name: Run composer install
3838
run: composer install --no-interaction --ansi -v
3939

40+
- name: Run rector with github output format
41+
continue-on-error: true
42+
run: composer rector:process-dry-run-output-format-github
43+
4044
- name: Run rector
4145
run: composer rector:process-dry-run

.php-cs-fixer-custom.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@
109109
])
110110
->name($fixers->extensionPatterns())
111111
->notName([
112+
'/\.gif$/',
113+
'/\.ico$/',
114+
'/\.jpeg$/',
115+
'/\.jpg$/',
116+
'/\.mp4$/',
117+
'/\.phar$/',
118+
'/\.png$/',
119+
'/\.svg$/',
112120
'/\-overview\.md$/',
113121
'/\.lock$/',
114122
'/\-lock\.json$/',

.php-cs-fixer.dist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
->withRules(Rules::fromArray(require __DIR__.'/vendor/guanguans/php-cs-fixer-custom-fixers/config/rules.php'))
4848
->withRules(Rules::fromArray([
4949
'@autoPHPUnitMigration:risky' => true,
50-
'PhpCsFixerCustomFixers/comment_surrounded_by_spaces' => false,
5150
'final_public_method_for_abstract_class' => false,
5251
])))
5352
->setUsingCache(true)

.typos.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
2+
# https://github.com/crate-ci/typos/wiki
3+
# https://github.com/GitoxideLabs/gitoxide/blob/main/_typos.toml
4+
# https://github.com/letsencrypt/boulder/blob/main/.typos.toml
5+
# https://github.com/nushell/nushell/blob/main/typos.toml
6+
[files]
7+
ignore-hidden = false
8+
extend-exclude = [
9+
".git/",
10+
# "CHANGELOG.md",
11+
]
12+
13+
[default]
14+
extend-ignore-re = [
15+
# https://github.com/sirwart/ripsecrets/blob/main/src/lib.rs
16+
# '\b[0-9A-Za-z+/_-]{36,}\b', # Anything base64 or base64url longer than 36 chars is probably encoded.
17+
]
18+
extend-ignore-identifiers-re = [
19+
"[0-9a-f]{7,}", # Git commit hash
20+
]
21+
extend-ignore-words-re = [
22+
# "Symplify",
23+
]
24+
25+
[default.extend-words]
26+
"Symplify" = "Symplify"
27+
"reguard" = "reguard"
28+
29+
[default.extend-identifiers]
30+
# "Symplify" = "Symplify"

baselines/loader.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# total 6 errors
1+
# total 7 errors
22

33
includes:
44
- method.notFound.neon
55
- offsetAccess.nonArray.neon
66
- offsetAccess.notFound.neon
7+
- shipmonk.publicPropertyNotReadonly.neon
78
- staticMethod.dynamicCall.neon

0 commit comments

Comments
 (0)