Execute command line validations
bdovaz opened this issue · comments
I see that there are a number of validations that are represented in the UI:
- Missing translations
- Inconsistent punctuation marks
- ...
I would like to be able to run these validations by command line to be able to introduce it in the CI process (PR, nightlies, ...).
Is there any way?
@tom-englert but I see that the script that comes with it only works with Excel files? I want it to scan the resx files I have in the repository for errors based on the rules it has defined.
No, you can script anything
Can you give me an example or at least what classes do I need?
Thanks
It's just exposing the model, e.g.
ResXResourceManager/src/ResXManager.Scripting/Sample.ps1
Lines 23 to 26 in de9161d
will get you here:
ResXResourceManager/src/ResXManager.Model/ResourceManager.cs
Lines 82 to 85 in de9161d
so you can iterate over all items, checking the information you want
Thanks but I mean how can I import the resx files in order to get that table entries
In the sample ps1 there is only a importExcel reference
ResXResourceManager/src/ResXManager.Scripting/Sample.ps1
Lines 7 to 13 in de9161d