Skip to content

[TASK] Also check Build/ with static code analysis#1609

Merged
oliverklee merged 1 commit intomainfrom
task/check-build
Apr 15, 2026
Merged

[TASK] Also check Build/ with static code analysis#1609
oliverklee merged 1 commit intomainfrom
task/check-build

Conversation

@oliverklee
Copy link
Copy Markdown
Collaborator

We now have PHP files in Build/, and we should check and autofix those as well.

We omit these two tools:

  • PHPStan (as it cannot find the PHP-CS-Fixer classes from the PHAR)
  • PHPMD (as it only can check one directory)

@oliverklee oliverklee self-assigned this Apr 15, 2026
@oliverklee oliverklee added the developer-specific Issues that only affect maintainers, contributors, and people submitting PRs label Apr 15, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 15, 2026

Coverage Status

coverage: 96.445%. remained the same — task/check-build into main

@oliverklee oliverklee requested a review from JakeQZ April 15, 2026 11:50
@oliverklee oliverklee force-pushed the task/check-build branch 2 times, most recently from 6f78d3b to 4d09f45 Compare April 15, 2026 12:10
We now have PHP files in `Build/`, and we should check
and autofix those as well.

We omit these two tools:

- PHPStan (as it cannot find the PHP-CS-Fixer classes from the
  PHAR)
- PHPMD (as it only can check one directory)
Copy link
Copy Markdown
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • PHPMD (as it only can check one directory)

Actually it can check multiple directories, from a comma-separated list on the command line, e.g. phpmd src,tests text config/phpmd.xml. We were previously only checking src; expanding the checking should be the scope of a separate PR.

@oliverklee
Copy link
Copy Markdown
Collaborator Author

expanding the checking should be the scope of a separate PR.

Ah, I see. Thanks!

I think we don't need to - as far as code metrics are concerned, I think those are only relevant for the production code.

@oliverklee oliverklee merged commit 995d989 into main Apr 15, 2026
64 of 65 checks passed
@oliverklee oliverklee deleted the task/check-build branch April 15, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developer-specific Issues that only affect maintainers, contributors, and people submitting PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants