Skip to content

Commit f3b3d11

Browse files
authored
Merge pull request #2368 from flow-php/mago-static-analyze
Mago static analyze
2 parents 28482c5 + 7d654c2 commit f3b3d11

2,033 files changed

Lines changed: 24950 additions & 14572 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/job-static-analyze.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
restore-keys: |
3939
php-${{ matrix.php-version }}-cache-phpstan-
4040
41+
- name: "Static Analyze (Mago)"
42+
run: "just analyze-mago"
43+
4144
- name: "Lint"
4245
run: "just lint"
4346

Justfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ lint-links:
4949
analyze *args:
5050
tools/phpstan/vendor/bin/phpstan analyze -c phpstan.neon --memory-limit=-1 {{args}}
5151

52+
# Run Mago static analyzer, scoped to packages we've finished migrating (add package paths below).
53+
analyze-mago *args:
54+
tools/mago/vendor/bin/mago analyze {{args}} \
55+
src/lib/types \
56+
src/lib/telemetry \
57+
src/lib/postgresql \
58+
src/lib/filesystem \
59+
src/lib/array-dot \
60+
src/lib/azure-sdk \
61+
src/lib/doctrine-dbal-bulk \
62+
src/lib/snappy \
63+
src/lib/parquet
64+
5265
# Auto-fix code style with Mago (format + lint --fix).
5366
fix:
5467
tools/mago/vendor/bin/mago format

composer.lock

Lines changed: 48 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)