Skip to content

chore: Move tools to vendor-bin, add cs-fixer and psalm#1271

Merged
come-nc merged 7 commits intomasterfrom
chore/setup-psalm-and-friends
Mar 3, 2026
Merged

chore: Move tools to vendor-bin, add cs-fixer and psalm#1271
come-nc merged 7 commits intomasterfrom
chore/setup-psalm-and-friends

Conversation

@come-nc
Copy link
Copy Markdown
Contributor

@come-nc come-nc commented Mar 3, 2026

  • Move tools to vendor-bin

  • Install psalm

  • Install cs-fixer

  • Add workflow for those

  • Run the fixers

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc self-assigned this Mar 3, 2026
@come-nc come-nc linked an issue Mar 3, 2026 that may be closed by this pull request
come-nc added 5 commits March 3, 2026 08:50
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
Copy link
Copy Markdown
Contributor Author

come-nc commented Mar 3, 2026

I may try to add rector but in another PR.

@come-nc come-nc marked this pull request as ready for review March 3, 2026 08:37
@come-nc come-nc requested review from provokateurin and susnux March 3, 2026 08:41
Comment thread vendor-bin/psalm/composer.json Outdated
@@ -0,0 +1,5 @@
{
"require-dev": {
"vimeo/psalm": "^6.15"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe use PHPStan from the start?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I’m not familiar with PHPStan yet.
There is no template in https://github.com/nextcloud/.github/tree/master/workflow-templates for it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See https://github.com/nextcloud/groupfolders/pull/4344/changes#diff-73a1d6ddd0eabb7e1349cdb83b76ff10f29f9e4fe316c0cd29495174181f4546. It's almost the same, only slight changes (and requires icewind1991/nextcloud-version-matrix v1.3.2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe move that to the templates?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'll do that once it is merged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I spent enough time on this already, merging as-is.
I’m okay with migrating apps to phpstan but ideally it should be planned and done in batch.

Comment thread composer.json Outdated
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
@come-nc come-nc merged commit 5134789 into master Mar 3, 2026
43 checks passed
@come-nc come-nc deleted the chore/setup-psalm-and-friends branch March 3, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup psalm

4 participants