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
default rules set doesn't appear to be valid yaml #89
Comments
Hi @guykisel! Thanks for the feedback! I can see how that might be confusing. The readme has an example of the yaml structure for the config file in https://github.com/get-woke/woke#rules as well as https://github.com/get-woke/woke/blob/main/example.yaml. I'm curious where you think I can update the docs to make it clearer to hopefully save others from this confusion in the future. Thoughts? |
Hmm, instead of updating the docs, would it be possible to update the default rules set to be valid if copied into a rules set? Either that or make a separate default rules set file that does include the top level Thank you! I'm happy to create a PR for this if that would help. |
I would prefer not to update Creating a separate config file as an example with a copy of the default rules wouldn't be DRY and there would be a risk of them being out-of-sync. I think adding a note near the link to the default rules in the README should suffice, as well as this issue for anyone who might find it in the future |
#96 hopefully this will help others avoid confusion in the future! |
Perfect, thank you! |
Hi, thank you for building this tool! I'm evaluating it for use on my team's project :)
I've been testing out the configuration options, including writing my own rules yaml file. The default rules set (https://github.com/get-woke/woke/blob/main/pkg/rule/default.yaml) noted in the README (https://github.com/get-woke/woke#rules) seemed like a good starting point, since it has many of the same terms and suggested alternatives as my own team would like to use.
However, when I pasted this default rules set into my local
.woke.yaml
, woke fails with a yaml parsing error -yaml: unmarshal errors:\n line 2: cannot unmarshal !!seq into config.Config
. I was able to work around this by adding a top levelrules:
entry in the yaml, but this definitely confused me for a good 30 minutes or so :)Please include the following information:
Woke v0.9.1
Config file
Go environment
Verbose output of running
The text was updated successfully, but these errors were encountered: