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
The initial design of the tool was based on the idea of simply enforcing the Arduino project specifications. It soon
became clear that, due to the legacy of not strictly enforcing specification compliance on Library Manager libraries
where the non-compliance doesn't result in a significant problem, there was a need for a "permissive" mode. In addition,
the need was found for a "strict" mode, in which the tool will advocate best practices above and beyond the
specifications.
For this purpose, the `--permissive` flag was added. However, along the way the original concept of enforcing the
specifications was lost. Permissive mode is an unfortunate necessity. Strict mode is great, but may not be to some
people's taste. So a configuration mode where the tool simply check specification compliance remains useful, and is a
reasonable default.
Copy file name to clipboardExpand all lines: cli/cli.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,11 @@ func Root() *cobra.Command {
31
31
Run: command.ArduinoCheck,
32
32
}
33
33
34
+
rootCommand.PersistentFlags().String("compliance", "specification", "Configure how strict the tool is. Can be {strict|specification|permissive}")
34
35
rootCommand.PersistentFlags().String("format", "text", "The output format can be {text|json}.")
35
36
rootCommand.PersistentFlags().String("library-manager", "", "Configure the checks for libraries in the Arduino Library Manager index. Can be {submit|update|false}.\nsubmit: Also run additional checks required to pass before a library is accepted for inclusion in the index.\nupdate: Also run additional checks required to pass before new releases of a library already in the index are accepted.\nfalse: Don't run any Library Manager-specific checks.")
36
37
rootCommand.PersistentFlags().String("log-format", "text", "The output format for the logs, can be {text|json}.")
37
38
rootCommand.PersistentFlags().String("log-level", "panic", "Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic")
38
-
rootCommand.PersistentFlags().Bool("permissive", false, "Only fail when critical issues are detected.")
39
39
rootCommand.PersistentFlags().String("project-type", "all", "Only check projects of the specified type and their subprojects. Can be {sketch|library|all}.")
40
40
rootCommand.PersistentFlags().Bool("recursive", true, "Search path recursively for Arduino projects to check. Can be {true|false}.")
41
41
rootCommand.PersistentFlags().String("report-file", "", "Save a report on the checks to this file.")
0 commit comments