Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DeGraciaMathieu authored Jul 11, 2023
1 parent cc56d79 commit 46f86ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $ php smelly-code-detector inspect-method app --limit=5
```
You can select scanned files with `--only=` and `--ignore=` options.
```
$ php smelly-code-detector inspect app --only=Controller.php --limit=10
$ php smelly-code-detector inspect-method app --only=Controller.php --limit=10
❀ PHP Smelly Code Detector ❀
24 [============================]
+-----------------------------------------------------------+--------------------+------------+-----+-----+-----+-------+
Expand All @@ -107,7 +107,7 @@ $ php smelly-code-detector inspect app --only=Controller.php --limit=10
```
You can select the visibilities to keep with the `--public`, `--protected` and `--private` options.
```
$ php smelly-code-detector inspect app --private
$ php smelly-code-detector inspect-method app --private
❀ PHP Smelly Code Detector ❀
84 [============================]
+--------------------------------------------------+---------------------------------+------------+-----+-----+-----+-------+
Expand All @@ -122,7 +122,7 @@ $ php smelly-code-detector inspect app --private
```
By default, rows will be sorted by the smell value, you can change the sort order with `--sort-by=` option, the following values are available : loc, arg, ccl, smell.
```
$ php smelly-code-detector inspect app --sort-by=ccl --limit=3
$ php smelly-code-detector inspect-method app --sort-by=ccl --limit=3
❀ PHP Smelly Code Detector ❀
84 [============================]
+---------------------------------------------------+-----------------------+------------+-----+-----+-----+-------+
Expand Down

0 comments on commit 46f86ad

Please sign in to comment.