tomaustin700 / YAML-Pipeline-Validator-VS-Code-Extension

Azure DevOps YAML Pipeline Validator Extension for VS Code
https://marketplace.visualstudio.com/items?itemName=TomAustin.azure-devops-yaml-pipeline-validator
2 stars 5 forks source link

Usage documentation improvements #14

Open zioalex opened 3 years ago

zioalex commented 3 years ago

Describe the bug Not clear how to configure it. What I should write in the yamlpipelinesvalidator.builddefinitionid setting? Do I need to change it for every project?

To Reproduce After I configured the PAT and the project URL and builddefinitionid I try to validate the pipeline code. I got the builddefinitionid from the URL of my pipeline: https://dev.azure.com/XXXXXXX/YYYYYYYYYYYYYYYYYYYYYY/_build?definitionId=12345

Is this the correct definition id? After change this and writing a random number I try to validate the pipeline code.

Expected behavior I expect to get a failure with a clear wrong code but I get a positive feedback.

tomaustin700 commented 3 years ago

Hi @zioalex, is there a specific reason you are setting the configuration settings? For most people you shouldn't need to set anything. What issue are you seeing when you are setting the settings?

Thanks

zioalex commented 3 years ago

Hi @tomaustin700, yes without the configuration setting set VSC continue to complain that a configuration was missed.

Without the configuration the check doesn't run at all. With the configuration set the check run but in reality it doesn't complain id the YAML is wrong.

tomaustin700 commented 3 years ago

Hi @zioalex, can you try again and see if things are better now? I did detect an issue where invalid YAML was incorrectly being marked as valid which is now resolved.

Thanks

zioalex commented 3 years ago

Hi @tomaustin700 the check ran but it doesn't report back any syntax or formatting error.