Open wenzeslaus opened 3 years ago
Hey @wenzeslaus. I would like to work on this issue. But I would need some guidance.
Welcome @ItsAdityaKSingh! This basically needs either 1) different linter (correctness checker) of XML than xmllint, 2) some configuration settings for xmllint which Super-Linter will accept, or 3) change extension of the files so it is clear to xmllint that it is a template, not are ready-to-use XML.
The third option seems like the simplest to me and perhaps the most correct. It would be nice to have some linting (checking) for the XML template as well if possible.
In any case, to address this, you need to check XML validation in Super-Linter, xmllint, and what would be appropriate file extension for these XML templates, then do what seems to be most right, and open a pull request with your reasoning for the change. It is a simple problem and likely a simple change, so you don't have to go overboard with the analysis.
The change should include VALIDATE_XML: true
on the line 31 of .github/workflows/super-linter.yml
. This will enable the XML check and the check should pass (you will see if it does once you open a PR and the check runs).
Thanks a lot @wenzeslaus for the great insight into this issue. I am grateful to you for doing so but I realise I will need a more basic idea about how things are working in this project. Could you guide me in a direction for doing so, so I could learn and come back to addressing issues such as these with ease. What requirements would I need to complete to be able to? Thanks in advance!
This issue does not require you to compile or test GRASS GIS locally, so you can leave all that for later. You just need to focus on making the change
Get Git on your computer. Learn how to use it with GitHub. (Plenty of guides online, so just pick what suits you. Official GitHub documentation is pretty good.) Get the source code of this repo. Make the change. A rough guide is here:
A rough outline is here, but it is meant for command line and larger contributions.
https://github.com/OSGeo/grass-addons/blob/grass8/CONTRIBUTING.md
If Git locally is a too big issue to start with, you can try your luck with using the GitHub web interface only. You can do all file edits and renames there as well. In that case, this would be the starting point:
https://github.com/OSGeo/grass-addons/tree/grass8/src/gui/wxpython/wx.metadata/profiles
Hit Edit (the pen icon). Make the change. Go down to Commit changes. It will ask you to create a fork, branch, pull request; you want to do all that (it will do it for you). Then you need to get to some Open pull request (or perhaps submit) button. At that point, the PR will appear in this repo and the right people will be notified. (Again, see GitHub documentation or some blog post for details.)
I am comfortable with using Git and Github both online and offline. I wanted to learn more about this project and it's codebase. Regarding that, I would need a guidance to start working on issues!
This is pretty independent on anything else in the project - hence the good first issue label :-). You are welcome to read Contribute: Development on the website. There are no specific instructions for XMLs since they are not really that prominent in the project, so submitting guidelines focus on other things, but they do contain general notes. In general, most contributors are using this project or know how to, but for this issue it is not needed. However, you can run one of the example notebooks in Binder (you may need to wait some time for it to build the image).
Name of the addon
wx.metadata
Describe the bug
xmllint reports various errors on the XML templates used by wx.metadata.
To Reproduce
Expected behavior XML files pass linting by xmllint or the templates are not stored as XML files if they can't be validated as XMLs (ideally suggest a different linter in that case).
Screenshots
From the XML check in Super-Linter:
Additional context Super-Linter check in CI introduced in #618.