Lexicon check for the core#14940
Lexicon check for the core#14940Jako wants to merge 11 commits intomodxcms:2.xfrom Jako:check-lexicon
Conversation
|
At the moment the variable object type errors of the core processors are not cross checked i.e. created by |
|
The check is currently created on 2.x. It should be valid for 3.x too with a few changes. |
|
If connecting to the database fails the script will continue to execute. I don't think this is supposed to happen.
It's a bit unclear to me what the content of each file means. The syntax of the generated content of |
|
The script crosschecks only files, so there is no need for a DB connection. The three files are containing missing and superfluous entries and the third one collects usages of the lexicon with variable generated keys (not all are currently collected - only the ones starting with a single/double quote key). The lexicon with variable generated keys can't be copied to a lexicon, so this generated code does not have to be valid - the other ones could be copied. |
|
It would be nice to have this documented in the script and/or files it generates. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
What does it do?
Add a lexicon check for the core. Cross check the core files with the existing lexicon entries for the usage of a lexicon entry.
Why is it needed?
To detect easier, which lexicon entries are used.
The script creates 3 files in the _build/lexicon folder. The files are containing missing and superfluous entries and the third one collects usages of the lexicon with variable generated keys (not all are currently collected - only the ones starting with a single/double quote key). The lexicon with variable generated keys can't be copied to a lexicon, so this generated code does not have to be valid - the other ones could be copied.
Related issue(s)/PR(s)
#14512