redhat-developer / redhat-developer/quarkus-ls
Java validation for @TemplateData member values
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
It should be nice to validate @TemplateData member values https://github.com/quarkusio/quarkus/blob/main/independent-projects/qute/core/src/main/java/io/quarkus/qute/TemplateData.java
- validate
ignorehttps://github.com/quarkusio/quarkus/blob/8f257068960b738cf04f660e963916332ebabc82/independent-projects/qute/core/src/main/java/io/quarkus/qute/TemplateData.java#L45 which expects String array with regexp (the validation should be done with Pattern.compile) - validate
namespacehttps://github.com/quarkusio/quarkus/blob/8f257068960b738cf04f660e963916332ebabc82/independent-projects/qute/core/src/main/java/io/quarkus/qute/TemplateData.java#L66 According to the JavaDocNote that a namespace can only consist of alphanumeric characters and underscores.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read independent-projects/qute/core/src/main/java/io/quarkus/qute/TemplateData.java, especially the linked ignore and namespace members, then trace where annotation metadata is validated in quarkus-ls. The work is done when invalid ignore regular expressions and namespace values are rejected according to the issue requirements, with corresponding validation coverage added where appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100