Closed (fixed)
Project:
Typed Data API enhancements
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2020 at 13:23 UTC
Updated:
2 Nov 2021 at 13:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jonathan1055 commentedHere's a patch to exclude all files which have
interdifin the filename. I also noticed that we are being to strong when excluding_ignore. This should only exclude files which start with _ignore. The patch makes this change too, but allows any number of _ at the start of the file name before the 'ignore'Comment #3
jonathan1055 commentedMinor typo in patch #2.
<exclude-pattern>\/_*ignore</exclude-pattern>should be<exclude-pattern>\/_+ignore</exclude-pattern>The * was a complete wildcard but it should be + to mean any number of the previous character (i.e. underscore only)Comment #4
tree2009 commentedComment #5
jonathan1055 commented@TR If you don't want to commit this, it can be solved another way. I have created a command alias for phpcs which contains
--ignore=interdiffand the key thing is that any ignore value given in the command (or alias) will be used in addition to the exclusions already contained in phpcs.xml.diff. The full alias I have isalias pcs='phpcs -s --colors --ignore=interdif'Comment #7
tr commentedI think the ultimate goal is to do away with the phpcs.xml.dist entirely, and use the core defaults. Also, I don't see this file as something designed for local development where you might have interdiff files and other things lying around - rather it is primarily for the testbot. I would not ever expect a vendor directory or interdiff files in either the repository or the patch being tested, so we really shouldn't have to declare anything as ignored.
But it doesn't hurt either, so committed.
Comment #8
jonathan1055 commentedThanks.