-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## How Metrics Work | ||
|
||
Every executable file in this directory is a calculator of a few | ||
metrics. They all are expected to be executed like this: | ||
|
||
```bash | ||
./cloc.sh Foo.java log.txt | ||
``` | ||
|
||
Here, `Foo.java` is the path of the Java file to examine and | ||
`log.txt` is the path of the file where the output is supposed | ||
to be saved. | ||
|
||
It is expected, that the `log.txt` will contain the following | ||
text after the script finished successfully: | ||
|
||
``` | ||
NoBL 42 Number of Blank Lines | ||
NoCL 44 Number of Commenting Lines | ||
LoC 323 Total physical lines of source code | ||
``` | ||
|
||
There are three columns in the file. The first one should contain | ||
the name of the metric. The second one contains the value (float or integer). | ||
The third one contains the description of the metric (in general, NOT | ||
for this particular file). A space is mandatory between the first and the | ||
second column, and between the second and the third columns. |