Title says it all.

CommentFileSizeAuthor
#2 2996576-2.patch6.05 KBgabesullice

Comments

gabesullice created an issue. See original summary.

gabesullice’s picture

StatusFileSize
new6.05 KB

Will commit if tests pass.

gabesullice’s picture

Status: Active » Needs review

  • gabesullice committed 6982918 on 8.x-2.x
    Issue #2996576 by gabesullice: Coding Standards: Back to 0 violations
    
gabesullice’s picture

Status: Needs review » Fixed
gabesullice’s picture

Assigned: gabesullice » Unassigned
wim leers’s picture

👍

e0ipso’s picture

These tend to come up from time to time. I think that we can avoid them using the right tooling.

In another issue I wrote:

I use git hooks to make sure DCS don't go to d.o https://asciinema.org/a/pqa3uRQwf9Uq6d4I7iaQf1WxZ

If you are interested on that I can share the setup for contrib development.

Maybe we can ensure that maintainers have something like this to avoid committing code with violations.

Thoughts?

gabesullice’s picture

@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 commit command and be frustrating. But ofc, we can just set it up on git push, which is entirely reasonable :)

wim leers’s picture

Maybe we can ensure that maintainers have something like this to avoid committing code with violations.

I 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.

e0ipso’s picture

@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.

wim leers’s picture

Quoting core's drupalci.yml:

      phpcs:
        # phpcs will use core's specified version of Coder.
        sniff-all-files: false
        halt-on-fail: false

If we change that to halt-on-fail: true for 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....

wim leers’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.