bashate summary mode
Bug #1474116 reported by
Matt Taggart
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash8 |
New
|
Undecided
|
Unassigned |
Bug Description
It would be nice if bashate had a summary mode. Here is a shell one liner (and example output) I came up with for a tree I was scanning:
=======
$ bashate |perl -p -e 's/\n//
awk -F: '{print $1 $2}'|sort -n |uniq -c |sort -nr
236 E003 Indent not multiple of 4
153 E002 Tab indents
32 E011 Then keyword is not on same line as if keyword
18 E001 Trailing Whitespace
2 E010 Do not on same line as while
2 E010 Do not on same line as for
1 E004 file did not end with a newline
=======
I'm sure it could be done much cleaner if it was being done within bashate itself.
To post a comment you must log in.