plugin-GoogleAnalyticsImporter icon indicating copy to clipboard operation
plugin-GoogleAnalyticsImporter copied to clipboard

Adds test for phpcs using Matomo coding standards, #PG-3751

Open AltamashShaikh opened this issue 1 year ago • 7 comments

Description:

Adds test for phpcs using Matomo coding standards Fixes: #PG-3751

Review

AltamashShaikh avatar Aug 19 '24 03:08 AltamashShaikh

Looking really good 👍 The only concern I have is the code sniffer dependency (vendor/) being committed. That doesn't seem like something that should be included in production.

@snake14 Slevomat requires phpcodensiffer

AltamashShaikh avatar Aug 22 '24 01:08 AltamashShaikh

@snake14 Slevomat requires phpcodensiffer

@AltamashShaikh Shouldn't Slevomat be require-dev too?

snake14 avatar Aug 22 '24 02:08 snake14

@snake14 As discussed I gitignored all those libraries

AltamashShaikh avatar Aug 22 '24 04:08 AltamashShaikh

@snake14 As discussed I gitignored all those libraries

Thank you. That looks a lot better. You could probably ignore the two new files in vendor/bin/ as well, but it's not a big deal.

snake14 avatar Aug 22 '24 04:08 snake14

@snake14 As discussed I gitignored all those libraries

Thank you. That looks a lot better. You could probably ignore the two new files in vendor/bin/ as well, but it's not a big deal.

@snake14 Done :)

AltamashShaikh avatar Aug 22 '24 05:08 AltamashShaikh

I think it would be great to split this PR into two - one where we add the config and any necessary dependencies, and leave the reformatting for a separate one. Together it makes it harder to review.

michalkleiner avatar Sep 04 '24 09:09 michalkleiner

@sgiehl @michalkleiner Can you guys please check this PR ? If all looks good we can add the similar changes to other plugins.

AltamashShaikh avatar Sep 24 '24 04:09 AltamashShaikh

I think that looks fine now. :+1:

sgiehl avatar Sep 25 '24 08:09 sgiehl