-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Docs: more help with selene.toml syntax would be welcome #609
Comments
Cf. #90:
|
The bug here is the error message is not helpful, but as far as docs go what kind of further examples would have been helpful? |
Thanks. The error message is indeed unhelpful. Re your point 2: the state of affairs at issue is documented only in the arguably attenuated sense that the relevant webpage does not mention Helpful examples would be ones that show: I) one needs braces; I presume that documentation on I-III is available via the TOML link. Yet, having the top-level configuration page show a few choice examples would work as a 'quick start guide'. It might be an idea to use as one of the examples the aforementioned Here are two further points. Each concerns the top-level configuration page. (i) It seems to be a bit confusing to count 'allow' as a level of severity. (ii) Formatting of the style I might seem to pick nits. But everything I have suggested would have helped me, for one, to get going more quickly (and I had the additional burden of having to get up to speed on regex, so I did want the other stuff made as accessible as possible). |
Existing example in https://kampfkarren.github.io/selene/usage/configuration.html#configuring-specific-lints.
I'd be fine adding a non-boolean example to https://kampfkarren.github.io/selene/usage/configuration.html#configuring-specific-lints.
I'm confused here.
This is borrowed from clippy and it won't change.
This is a valid suggestion. |
I think that the syntax that I was after was As this post of mine shows, I'm not the ideal person to take up the job of improving the documentation. |
The documentation on selene.toml syntax (here and, as it were, 'under' here) seems sparse. A greater number of examples (somewhere) would help.
Let me illustrate the problem. I created a selene.toml file the contents of which are as follows.
[EDITED.]
It took me a while to formulate that syntax, and that syntax fails thusly:
ERROR: [undefined_variable] Configuration was incorrectly formatted: invalid type: map, expected unit
The text was updated successfully, but these errors were encountered: