-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authoring tools: templates & template packages validation #2623
Comments
How does this fit in with @sayedihashimi 's tool? |
One of the things we should validate for is the use of parens around complex conditions as discussed in #2209 |
I think the idea is to have some similar validation, but it's built into
This is good, but in addition to this I think that when a folder path is specified, the tool should search the folder recursively for all templates. If a user is authoring a template pack (i.e. AWS/Uno/etc) they can pass the root folder to the validator and then it will discover all the templates that the folder contains. |
I am cool with your thought process, @KathleenDollard . Seems worth the story points vs the other discussion. |
The following was already done:
The following tasks remain:
|
As a template author, I want a way to validate the templates, so that I can validate template before the publish.
Audience: template authors
Background
The template configuration requires manual editing in of JSON configuration which is source of authoring mistakes.
The configuration involves a lot of conditions, which are not validated in any way until the template is being generated.
When grouping the templates the configuration is manually, and requires careful combination of the fields across multiple JSON files. The grouping errors are shown only when the template is being run (not when the package containing it is installed)
Planned validation checks:
(note: though some of the issues are closed, their comments contain suggested validation check)
sourceName
. #5671 - the template doesn't definename
parameter/symbolJustification
Technical details
We plan to expose 2 ways:
Both MSBuild task and CLI tool already exist.
As part of this task, the validation in template engine and
dotnet new
should be improved as well.host.json
file.Feedback from @sayedihashimi
The text was updated successfully, but these errors were encountered: