Skip to content

Conversation

@paulbalandan
Copy link
Contributor

I found the SCA workflow here using PHPMD very useful and applied it in one of my projects. However, I noted that the actual fixing part with PHPMD is never run. I checked with the actions runs here and it seems the same is true. So after a lot of trial and error fixing the syntax, I found a solution at least working for me and wished to share here.

The problems are:

@SpacePossum
Copy link
Contributor

thanks for the research 👍
lets see what happens when we run the checks :)

@coveralls
Copy link

coveralls commented Aug 2, 2021

Coverage Status

Coverage remained the same at 92.192% when pulling e18682a on paulbalandan:phpmd-sca into a10bf1c on FriendsOfPHP:3.0.

@keradus keradus changed the base branch from 2.19 to 3.0 August 2, 2021 18:02
@paulbalandan paulbalandan force-pushed the phpmd-sca branch 2 times, most recently from e8641c8 to 55d5511 Compare August 3, 2021 04:33
@paulbalandan
Copy link
Contributor Author

The 2nd commit shows that phpmd is now being called whenever there are changed PHP files, so the added sample file can now be deleted.

@keradus
Copy link
Member

keradus commented Aug 4, 2021

can you re-add the test file again to show how phpmd is kicking off now?

@paulbalandan paulbalandan force-pushed the phpmd-sca branch 2 times, most recently from 59441f0 to 7617921 Compare August 4, 2021 10:09
@paulbalandan
Copy link
Contributor Author

I think the failing CI is unrelated, or not?

@keradus
Copy link
Member

keradus commented Aug 5, 2021

i think we are ready to merge @paulbalandan ? if so, pls drop the test file and if CI still green, let's merge

@keradus keradus added this to the 3.0.2 milestone Aug 5, 2021
@keradus
Copy link
Member

keradus commented Aug 5, 2021

Thank you @paulbalandan.

@keradus keradus merged commit af20021 into PHP-CS-Fixer:3.0 Aug 5, 2021
@paulbalandan paulbalandan deleted the phpmd-sca branch August 5, 2021 18:00
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.

4 participants