nextcloud / cookbook

🍲 A library for all your recipes
https://apps.nextcloud.com/apps/cookbook
GNU Affero General Public License v3.0
522 stars 90 forks source link

Create linting scripts and integrate in CI #531

Open christianlupus opened 3 years ago

christianlupus commented 3 years ago

PHP and Vue/JS needs static checking

PHP tasks

Vue tasks

seyfeb commented 3 years ago

any experience with mega-linter? It supports PHP and probably/maybe Vue

christianlupus commented 3 years ago

I have no experience with it. I suggested psalm as some examples in the NC doc is given as php linter.

For vue I found something related to eslint in combination with webpack. Not completely done yet but it could be managed.

If we wanted to use multiple checks, that should be possible as well as I think we long as these are not working against each other.

christianlupus commented 3 years ago

I found this suggestion. It uses prettier, styelint and eslint together. They combine it with automatic git hooks to lint upon commit. (These links serve as a reminder for myself as well :smile:)

seyfeb commented 3 years ago

I can‘t read the article since it‘s behind a paywall, but why not try it, if he had good experiences with this 🤷‍♂️

christianlupus commented 2 years ago

There are a few more tools mentioned here: https://thevaluable.dev/code-quality-check-tools-php/