Re: [Tiki-devel] phpcs code sniffing

Benoit Grégoire <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <2103561.tdWV9SEqCh@benoitg-xps-13>
On vendredi 31 mars 2023 07 h 58 min 16 s EDT Jonny Bradley via TikiWiki-devel wrote:
> Hi all, this is for Benoit mostly i think (hope you're here ;)
> 
> I saw a week or two ago you did some refactoring on the tracker field class
> names (thanks!) and it involved this file
> doc/devtools/codesniffer/standards/TikiIgnore/ignore_list.json which i was
> unaware of.
> 
> In my long running calendar revamp branch
> https://gitlab.com/jonnybradley/tiki/-/tree/calendar-revamp-2 it seems i
> had broken quite a few new tests, and the only way i found to fix them was
> by regenerating that file, in this commit:
> 
> https://gitlab.com/tikiwiki/tiki/-/merge_requests/2249/diffs?commit_id=7964a
> bf7cebb47ed540430790e42bf4793870f1b
> 
> There are a lot of changes in the diff, so hard to track visually, but will
> this have undone anything you or anyone else did involving it?

Ah!  I, on the other hand, was unaware of doc/devtools/codesniffer/standards/TikiIgnore/
generate_ignore_list.php, which was only added in january of this year.  It seems I and 3 
other people have been editing that file manually since ;)

I checked the two files with meld, and it seems you:
- didn't break anyone's work
- did the correct thing regenerating ignore.json with the tool.

It's too bad the ignore.json file is json, and we can't put a comment at the top.

I documented a little at  https://dev.tiki.org/PHP-Code-Sniffer[1], but it's not ideal.
-- 
Benoit Grégoire

--------
[1] https://dev.tiki.org/PHP-Code-Sniffer

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.