From 032a7e0c1188d3507b8d9a9571f2446a43cf775b Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 27 Oct 2023 07:08:25 -0500 Subject: apply https://github.com/42wim/matterbridge/pull/1864 --- bridge/config/config.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bridge/config') diff --git a/bridge/config/config.go b/bridge/config/config.go index 18c60920..a6cbc61a 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -32,6 +32,7 @@ const ( const ParentIDNotFound = "msg-parent-not-found" +//nolint: tagliatelle type Message struct { Text string `json:"text"` Channel string `json:"channel"` @@ -146,11 +147,15 @@ type Protocol struct { ReplaceNicks [][]string // all protocols RemoteNickFormat string // all protocols RunCommands []string // IRC + UseAppService bool // matrix + AppServiceHost string // matrix + AppServicePort uint16 // matrix + AppServiceConfigPath string // matrix Server string // IRC,mattermost,XMPP,discord,matrix SessionFile string // msteams,whatsapp ShowJoinPart bool // all protocols ShowTopicChange bool // slack - ShowUserTyping bool // slack + ShowUserTyping bool // discord, matrix, slack ShowEmbeds bool // discord SkipTLSVerify bool // IRC, mattermost SkipVersionCheck bool // mattermost @@ -269,7 +274,8 @@ func NewConfig(rootLogger *logrus.Logger, cfgfile string) Config { cfgtype := detectConfigType(cfgfile) mycfg := newConfigFromString(logger, input, cfgtype) if mycfg.cv.General.LogFile != "" { - logfile, err := os.OpenFile(mycfg.cv.General.LogFile, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600) + //nolint:nosnakecase + logfile, err := os.OpenFile(mycfg.cv.General.LogFile, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600) if err == nil { logger.Info("Opening log file ", mycfg.cv.General.LogFile) rootLogger.Out = logfile -- cgit v1.2.3