-
Notifications
You must be signed in to change notification settings - Fork 8
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
Simple specification style checker #799
Labels
small
Effort of one person-day or less
specification
Related to specification package (e.g., specification parsing)
Comments
treiher
added
specification
Related to specification package (e.g., specification parsing)
small
Effort of one person-day or less
labels
Oct 6, 2021
There are conflicts with the planned checks, which are not that simple to solve.
Cannot be applied for multiline constructs. type E is
(A => 1,
B => 2,
C => 3)
with Size => 8; if Message'Valid = False
or (Message.Tag = A
and Message.Length = 0) Response := Create_Message (Tag,
Message.Data); with function Create_Message
(Tag : E;
Value : Opaque)
return M;
Prevents alignment of arrow in enumerations. type E is
(A => 1,
AB => 12,
ABC => 123)
with Size => 8;
The style rules should not apply in strings. X := Fun (Y, "Foo Bar+Baz"); |
treiher
added a commit
that referenced
this issue
Oct 22, 2021
treiher
added a commit
that referenced
this issue
Oct 22, 2021
treiher
added a commit
that referenced
this issue
Oct 22, 2021
treiher
added a commit
that referenced
this issue
Oct 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
small
Effort of one person-day or less
specification
Related to specification package (e.g., specification parsing)
A simple specification style checker based on regular expressions could ensure:
Indentation level is multiple of three spaces--
--
--
No double blanksA + B
vs.A+B
)message
)Options for handling of style errors:
=> Option 3 - always treat as errors.
The text was updated successfully, but these errors were encountered: