Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit d2520e450c352b23297822ebcc384a909a5d487f Author: Joseph Crowell <joseph.w.crowell@gmail.com> Date: Thu Dec 18 12:49:35 2025 +0000 Remove unknown linters from //nolint directives diff --git a/bridge/matrix/helpers.go b/bridge/matrix/helpers.go index d3f7fd2..f61a46a 100644 --- a/bridge/matrix/helpers.go +++ b/bridge/matrix/helpers.go @@ -1278 +1276 @@ func (b *Bmatrix) cacheDisplayName(mxid id.UserID, displayName string) string {  }    // handleError converts errors into httpError. -// -//nolint:exhaustivestruct  func handleError(err error) *httpError {   var mErr mautrix.HTTPError   if !errors.As(err, &mErr) { diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go index 984707b..831a2ee 100644 --- a/matterhook/matterhook.go +++ b/matterhook/matterhook.go @@ -409 +409 @@ type IMessage struct {   Timestamp string `schema:"timestamp"`   UserID string `schema:"user_id"`   UserName string `schema:"user_name"` - PostId string `schema:"post_id"` //nolint:golint + PostId string `schema:"post_id"`   RawText string `schema:"raw_text"` - ServiceId string `schema:"service_id"` //nolint:golint + ServiceId string `schema:"service_id"`   Text string `schema:"text"`   TriggerWord string `schema:"trigger_word"`   FileIDs string `schema:"file_ids"` @@ -517 +517 @@ type IMessage struct {  // Client for Mattermost.  type Client struct {   // URL for incoming webhooks on mattermost. - Url string // nolint:golint + Url string   In chan IMessage   Out chan OMessage   httpclient *http.Client