Closed (fixed)
Project:
JSON:API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Aug 2018 at 18:34 UTC
Updated:
1 Oct 2018 at 15:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gabesulliceWill commit if tests pass.
Comment #3
gabesulliceComment #5
gabesulliceComment #6
gabesulliceComment #7
wim leers👍
Comment #8
e0ipsoThese tend to come up from time to time. I think that we can avoid them using the right tooling.
In another issue I wrote:
Maybe we can ensure that maintainers have something like this to avoid committing code with violations.
Thoughts?
Comment #9
gabesullice@e0ipso, I never responded to that. I'm sorry. I agree that tooling would be nice. I agree that setting this up for Wim and I would be useful. When I first looked at it, I was thinking it would slow down the
git commitcommand and be frustrating. But ofc, we can just set it up ongit push, which is entirely reasonable :)Comment #10
wim leersI think the solution is not to have commit hooks on each developer's machine, but for coding standards violations to cause tests to fail on d.o.
Comment #11
e0ipso@Wim Leers to me the solution is whatever gets the job done. I can install the tooling in my local and that will get the job done, I cannot change d.o tooling that easily. I think it's reasonable to have the tooling installed in the maintainer machines (just 4 machines), which is the centralized place where code goes into the repo.
Comment #12
wim leersQuoting core's
drupalci.yml:If we change that to
halt-on-fail: truefor JSON API, we're done :) This is only possible since a few months: see https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-tes....Comment #13
wim leersCreated #3000299: Let phpcs violations fail the build on DrupalCI for #11/#12. :)