Lexicon checker: cross-topic duplicate reports and element label cleanup - #13
Open
Ibochkarev wants to merge 4 commits into
Open
Lexicon checker: cross-topic duplicate reports and element label cleanup#13Ibochkarev wants to merge 4 commits into
Ibochkarev wants to merge 4 commits into
Conversation
…dupes Extend the core lexicon checker with identical/conflict topic reports and remove English chunk/snippet/plugin/template type labels that already live in default (manager always loads core:default). Refs modxcms#14512.
Place the build checker under MODX\Revolution\Build for PSR compliance and switch the CLI PDO errmode away from deprecated WARNING.
Wrap long CheckLexicon messages for the 120-char rule and point modLexiconTest at default for chunk type labels moved out of the chunk topic.
Avoid file-level require_once so phpcs PSR1 side-effects sniff stays clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Первый срез modxcms#14512. Базовый лексикон-чекер теперь сообщает ключи, которые встречаются больше чем в одном топике (одинаковое значение vs конфликтующее). Английские element-топики больше не повторяют метки типов (
chunk/chunks,snippet/snippets,plugin/plugins,template/templates), уже существующие вdefault, который менеджер грузит всегда.CheckLexiconживёт вMODX\Revolution\Build, с тонким CLI-входом и коротким README для мейнтейнеров.Как проверить
На работающей установке менеджера подтвердите, что метки дерева Elements по-прежнему резолвятся при
cultureKey=en(зависит отcore:default).Связанные
Refs modxcms#14512
Развивает чекер из modxcms#14979
Совместимость
default. Менеджер и коннекторы уже грузятcore:default.defaultбольше не даёт те восемь меток типа (задокументированный компромисс)._superfluousключи (экстра могут их использовать).Совместимость
Без изменения публичного PHP API. Доступность восьми меток работает при загруженном
default. Загрузка только топика безdefaultтеряет эти метки.Оригинал: modxcms#16997