Closed timotei-litespeed closed 1 week ago
I think this is not the GHA setup you want. May I contribute an improved strategy after this one gets merged?
Contribute now, before merge
Contribute now, before merge
I have to inform you that I am struggling with
@szepeviktor Ok, No problem. Do you have any suggested changes to Github CI actions?
For us current script is almost enought, we added Code Sniffer as a code check, no to correct or fix the code.
Do you have any suggested changes to Github CI actions?
Yes. All the above tools. e.g. #696
Moved to https://github.com/litespeedtech/lscache_wp/pull/744
@szepeviktor thank you for the code and iddeeas We are not really using WP code style and we are not adding Code Beautify(at least for now there are no plans)
@timotei-litespeed Without the above tools, or without a coding standard you are theoretically cut off from bug-free code. That is very sad to see.
We are not really using WP code style
You could have a custom coding standard!!
I agree that withput a coding standard there is posibility for bugs to appear. For now this automation will help us make the code cleaner.
Thank you for suggestions but for NOW the changes are enought for the time allocated for this change.
👍
Added PHP Code sniffer integration
For local:
Auto detect
set to Checkedon save
Prerequirement: Node 16, Composer, PHP 7.2 Install: make sure there is a empty folder:
.cache
in root of plugin folder open terminal run:npm install
run:composer install
to run sniffer manually:composer run sniff-check