-
Notifications
You must be signed in to change notification settings - Fork 7
Wrong error message #30
Comments
I think it will be good to make "nut generate" - just generate sample nuts.json |
Yes, first line is wrong. |
doc.go is a convention. I case of simple one-file 📦 it is simpler to add documentation to code file itself.
Sure. Except for the first line. :P Other formats look alien in godoc HTML output.
godoc uses first sentence as package summary. See link above.
Well,
It's more about good practices and to prevent WTFs for nut users. |
Is there any chance what "nut generate" will generate ready to use nut.json ? Its convenient to call automatically "nut check" before "nut pack", but not after "nut generate" |
nut generate
and got error message:
Now you should edit nut.json to fix following errors:
Package summary in code should be in form "Package php_session_decoder ... ."
Its completely wrong, because in turn this message is not related to nut.json file at all.
Instead this message should clearly say what you should add doc.go file to your package.
The second question - why do you push everyone to write package doc exactly in this form:
"Package php_session_decoder ... ."
I dont understand this. I think its my right to document my package as I want.
And its not clear at all what I must have dot at the end of the sentence. I understand what accordingly to english grammar rules I should do it, but run config generation tool - not english spell checker and I expect what it will generate nuts.json and nothing more.
The text was updated successfully, but these errors were encountered: