Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max-warnings to codechecker and grunt eslint #111

Merged
merged 2 commits into from
May 19, 2020
Merged

Add max-warnings to codechecker and grunt eslint #111

merged 2 commits into from
May 19, 2020

Conversation

marinaglancy
Copy link
Contributor

@marinaglancy marinaglancy commented Apr 20, 2020

I want to be more strict with the checks and fail on both code and eslint warnings. Therefore I propose the max-warning options.

  1. Add option moodle-plugin-ci codechecker --max-warnings 0, this means that codechecker will return non-zero status if there are any warnings, even when there are no errors.

  2. Add option moodle-plugin-ci grunt --max-lint-warnings 0, this is the same setting as you can pass to grunt itself added in https://tracker.moodle.org/browse/MDL-68323 . It is already integrated and will be available in 3.7.6, 3.8.3 and above. This will tell grunt to fail if there are any eslint warnings.

  3. Add option moodle-plugin-ci grunt --show-lint-warnings, again, the same setting as you can pass to grunt in moodle, this already existed in moodle. It shows eslint warnings but does not fail if there are warnings, only fails on errors.

This PR should replace #89 because the approach there was incorrect (and I can't do anything to that PR because I did not create it)

Additionally this PR contains a local_codechecker version bump to 2.9.5, this can replace #105

@dvdcastro dvdcastro merged commit ead2ea4 into open-lms-open-source:master May 19, 2020
marinaglancy pushed a commit to moodleworkplace/moodle-plugin-ci that referenced this pull request Jun 15, 2020
Note that these changes, and also the previous open-lms-open-source#111 are for nothing
unless packagist is refreshed with a new release of moodle-plugin-ci.

Without that everybody continues getting old outdated, components,
like local_codechecker 2.9.3, for example, that is the one corresponding
to the latest version (2.5.0) released @ packagist of moodle-plugin-ci.

Current one is really aging (Feb 2019)!

Link: https://packagist.org/packages/blackboard-open-source/moodle-plugin-ci

And only solution for developers is to use custom repositories and other
non-ideal tricks to get the actual versions installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants