You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, the tool alway provides output for every check it runs. This is not necessarily a bad thing because in
`--format text` mode it provides a progress indicator, and in `--format json` mode it provides information on all the
checks that are run under the current tool configuration.
However, as the number of checks grows, the amount of output has become a bit overwhelming and may make it hard to find
the information for the failed checks. So it makes sense to default to only showing information on the failed checks
while providing the option to show all checks.
Copy file name to clipboardExpand all lines: cli/cli.go
+1
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ func Root() *cobra.Command {
37
37
rootCommand.PersistentFlags().String("project-type", "all", "Only check projects of the specified type and their subprojects. Can be {sketch|library|all}.")
38
38
rootCommand.PersistentFlags().Bool("recursive", true, "Search path recursively for Arduino projects to check. Can be {true|false}.")
39
39
rootCommand.PersistentFlags().String("report-file", "", "Save a report on the checks to this file.")
40
+
rootCommand.PersistentFlags().BoolP("verbose", "v", false, "Show more information while running checks.")
40
41
rootCommand.PersistentFlags().Bool("version", false, "Print version and timestamp of the build.")
assert.Equal(t, fmt.Sprintf("%s\n%s: %s\n", checkresult.NotRun, checklevel.Notice, checkOutput), summaryText, "Non-fail result should not use message")
81
+
assert.Equal(t, fmt.Sprintf("Check %s result: %s\n%s: %s\n", checkConfiguration.ID, checkresult.NotRun, checklevel.Notice, checkOutput), summaryText, "Non-fail result should not use message")
0 commit comments