boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.57k stars 262 forks source link

verbose flag does not work if files argument is passed too #434

Closed f-zl closed 5 months ago

f-zl commented 7 months ago

Describe the bug scc --verbose <files> doesn't print verbose information

To Reproduce

scc --verbose <files>

Expected behavior Verbose information is printed

Desktop (please complete the following information):

scc 3.2.0, installed in msys2 mingw64

boyter commented 7 months ago

That is an interesting one.

boyter commented 5 months ago

So I am unable to replicate this.

$ scc -v .git/refs/heads/filewalker
 WARN 2024-04-30T07:18:01Z: possible #! file: .git/refs/heads/filewalker
 WARN 2024-04-30T07:18:01Z: unable to determine #! language for .git/refs/heads/filewalker
───────────────────────────────────────────────────────────────────────────────
Language                 Files     Lines   Blanks  Comments     Code Complexity
───────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────
Total                        0         0        0         0        0          0
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) $0
Estimated Schedule Effort (organic) 0.00 months
Estimated People Required 1 Grandparent
───────────────────────────────────────────────────────────────────────────────
Processed 0 bytes, 0.000 megabytes (SI)
───────────────────────────────────────────────────────────────────────────────

In this case I point at a file I know will generate a warning which uses the verbose flags and I do get the warnings as expected.