Skip to content

Commit 5a09564

Browse files
gwleclercclaude
andcommitted
style: wrap two over-long lines to satisfy the lll linter
The --init-mocks flag usage string and the mutual-exclusivity error message each exceeded the 150-char limit; split them across lines. No behavior change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d469220 commit 5a09564

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ func parseConfig() (c config.Config) {
4040
fs.StringVar(&c.StaticFiles, "static-files", "client", "Location of the static files to serve (index.html, etc.)")
4141
fs.IntVar(&c.HistoryMaxRetention, "history-retention", 0, "Maximum number of calls to keep in the history per session (0 = no limit)")
4242
fs.StringVar(&c.PersistenceDirectory, "persistence-directory", "", "If defined, the directory where the sessions will be synchronized")
43-
fs.StringVar(&c.InitMocks, "init-mocks", "", "If defined, a YAML file of mocks (same format as POST /mocks) loaded into a session at startup; mutually exclusive with --persistence-directory")
43+
fs.StringVar(&c.InitMocks, "init-mocks", "",
44+
"If set, load mocks from a YAML file (POST /mocks format) into a session at startup; "+
45+
"mutually exclusive with --persistence-directory")
4446
fs.BoolVar(&c.TLSEnable, "tls-enable", false, "Enable TLS using the provided certificate")
4547
fs.StringVar(&c.TLSCertFile, "tls-cert-file", "/etc/smocker/tls/certs/cert.pem", "Path to TLS certificate file ")
4648
fs.StringVar(&c.TLSKeyFile, "tls-private-key-file", "/etc/smocker/tls/private/key.pem", "Path to TLS key file")
@@ -110,7 +112,8 @@ func main() {
110112
// fixed, read-only starting point, while persistence resumes (and rewrites) whatever state it
111113
// last held. Both define the boot state, so allowing both would be ambiguous on restart.
112114
if c.InitMocks != "" && c.PersistenceDirectory != "" {
113-
slog.Error("--init-mocks and --persistence-directory are mutually exclusive: seed mocks from a file (ephemeral) or persist sessions to a directory, not both")
115+
slog.Error("--init-mocks and --persistence-directory are mutually exclusive: " +
116+
"seed mocks from a file (ephemeral) or persist sessions to a directory, not both")
114117
os.Exit(1)
115118
}
116119

0 commit comments

Comments
 (0)