Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 19, 2024
1 parent a302057 commit b7f7c57
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions metrics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## How Metrics Work

Check failure on line 1 in metrics/README.md

View workflow job for this annotation

GitHub Actions / markdown-lint

First line in a file should be a top-level heading [Context: "## 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:

```

Check failure on line 17 in metrics/README.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Fenced code blocks should have a language specified [Context: "```"]
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.

0 comments on commit b7f7c57

Please sign in to comment.