Conversation
Felalolf
approved these changes
Oct 4, 2022
Contributor
Felalolf
left a comment
There was a problem hiding this comment.
I think long term, Gobra should be able to just print statistics regarding LOC, LOS, etc.
Member
Author
|
That would indeed be very nice. Would you look at ‚ghostness‘ of statements & expressions together with their positional information to compute this or integrate similar metrics as we use externally today? For the latter one, a big question to me seems to be how we count .gobra files, i.e. as spec-only (& maybe even check this) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If
unparseis enabled,.gobrafiedfiles will be created with the gobrafied content of the input files.This is useful to count the number of lines of specification in the following way:
LOC = lines of code of a
.gofile counted by the usual toolsLOS = lines of code of a
.gobrafiedfile - LOC + hybrid linesA hybrid line is a line that contains actual code and annotations. The following command can be used to count these hybrid lines: