-
Notifications
You must be signed in to change notification settings - Fork 126
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
mandatory comments for all abstract objects #921
Comments
@mximp please, take care of this (or delegate) |
@kerelape can you please have a look at this? |
@mximp what's up with this? |
@yegor256 It's in work queue. |
@yegor256 we don't save comments into XMIR, so we can't check their presence through XSL.
As for me, comment looks a bit strange here
WDYT? |
@maxonfjvipon maybe we can prohibit comments for anonymous formations ( |
@maxonfjvipon can we check that each comment is a valid Markdown? |
So even if named abstract object is used as argument for application - it must have comment?
|
@maxonfjvipon yes, correct (such a case will be extremely rare) |
I'm afraid we can't do it while parsing itself. But I think we can do it while listening in |
@yegor256 what about horizontal abstract object that may contain inner horizontal abstract objects?
It's the same as:
|
@maxonfjvipon in this case we may let them skip the comment |
@yegor256 I think we should not check the length of the comment before abstract object. Why:
So I suggest not to check the length of the comment at all. WDYT? |
@maxonfjvipon you mean, we should not require the comments to have at least 64 symbols, as originally suggested? |
@yegor256 oh, there is "at least" (>= 64). Then it's ok, sorry |
@yegor256 maybe reduce this rule to "at least 32 chars"? 64 seems to be quite many |
@maxonfjvipon it's better to start with as strict requirement as we can. If we start with 32, it will be impossible to make it larger later, since many programs will be written already. |
…or-abstract-objects
@maxonfjvipon I believe it's fixed |
Let's add a new XSL check into
eo-parser
that will verify whether all abstract objects have comments prepending them. The severity level should bewarning
.Also, let's make sure the comment:
0x20-0x7f
)The text was updated successfully, but these errors were encountered: