-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tonybaloney:master' into unittests
- Loading branch information
Showing
12 changed files
with
201 additions
and
92 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
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 |
---|---|---|
@@ -1,43 +1,55 @@ | ||
Report Command | ||
============== | ||
|
||
The report command will show a CLI table of metrics for the list of files provided. It is useful for comparing differences and trends between revisions. | ||
The report command will show a CLI table or an HTML report of metrics for the file provided. It is useful for comparing differences and trends between revisions. | ||
|
||
.. image:: ../_static/wily_report.png | ||
:align: center | ||
|
||
Examples | ||
-------- | ||
|
||
To show a report, simply give the name or path to the file you want to report on | ||
To show a report, simply give the name or path to the file you want to report on. | ||
|
||
.. code-block:: none | ||
$ wily report example.py | ||
By default, wily will show the default metrics (typically Lines-of-code, cyclomatic complexity and maintainability index) | ||
By default, wily will show the default metrics (typically Lines-of-code, cyclomatic complexity and maintainability index). | ||
|
||
To change the metrics, provide the metric names (run ``wily list-metrics`` for a list) as arguments. | ||
|
||
.. code-block:: none | ||
$ wily report example.py loc sloc comments | ||
Wily report will show all available revisions, to only show a set number, add the ``-n`` or ``--number`` flag | ||
Wily report will show all available revisions, to only show a set number, add the ``-n`` or ``--number`` flag. | ||
|
||
.. code-block:: none | ||
$ wily report example.py -n 10 | ||
Wily report will display all revisions, to only show those where metric values have changed, add the ``-c`` or ``--changes`` flag. | ||
|
||
.. code-block:: none | ||
$ wily report example.py --changes | ||
Similar to the index command, ``wily report`` will not show the commit message. To add the message to the output, add the ``--message`` flag. | ||
|
||
.. code-block:: none | ||
$ wily report example.py --message | ||
By default, wily will show a CLI table report of metrics. To create an HTML report instead, pass the ``--format HTML`` option. | ||
|
||
.. code-block:: none | ||
$ wily report example.py --format HTML | ||
Command Line Usage | ||
------------------ | ||
|
||
.. click:: wily.__main__:report | ||
:prog: wily | ||
:show-nested: | ||
:show-nested: |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.