Fix misspellings and enable misspell on ci (#16285)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
John Tzikas
2020-12-01 17:27:05 +02:00
коммит произвёл GitHub
родитель c2036f614e
Коммит 3fdc6cb531
20 изменённых файлов: 42 добавлений и 37 удалений

Просмотреть файл

@@ -228,7 +228,7 @@ type AppIface interface {
// belong to users in the specified team, linking them to their users
MentionsToTeamMembers(message, teamId string) model.UserMentionMap
// MoveChannel method is prone to data races if someone joins to channel during the move process. However this
// function is only exposed to sysadmins and the possibility of this edge case is realtively small.
// function is only exposed to sysadmins and the possibility of this edge case is relatively small.
MoveChannel(team *model.Team, channel *model.Channel, user *model.User) *model.AppError
// NewWebConn returns a new WebConn instance.
NewWebConn(ws *websocket.Conn, session model.Session, t goi18n.TranslateFunc, locale string) *WebConn

Просмотреть файл

@@ -2614,7 +2614,7 @@ func (a *App) RemoveAllDeactivatedMembersFromChannel(channel *model.Channel) *mo
}
// MoveChannel method is prone to data races if someone joins to channel during the move process. However this
// function is only exposed to sysadmins and the possibility of this edge case is realtively small.
// function is only exposed to sysadmins and the possibility of this edge case is relatively small.
func (a *App) MoveChannel(team *model.Team, channel *model.Channel, user *model.User) *model.AppError {
// Check that all channel members are in the destination team.
channelMembers, err := a.GetChannelMembersPage(channel.Id, 0, 10000000)

Просмотреть файл

@@ -223,7 +223,7 @@ func (s *Server) GetSanitizedClientLicense() map[string]string {
return sanitizedLicense
}
// RequestTrialLicense request a trial license from the mattermost offical license server
// RequestTrialLicense request a trial license from the mattermost official license server
func (s *Server) RequestTrialLicense(trialRequest *model.TrialLicenseRequest) *model.AppError {
resp, err := http.Post(requestTrialURL, "application/json", bytes.NewBuffer([]byte(trialRequest.ToJson())))
if err != nil {

Просмотреть файл

@@ -1252,7 +1252,7 @@ func TestSendAckToPushProxy(t *testing.T) {
assert.Equal(t, ack.NotificationType, handler.notificationAcks()[0].NotificationType)
}
// TestAllPushNotifications is a master test which sends all verious types
// TestAllPushNotifications is a master test which sends all various types
// of notifications and verifies they have been properly sent.
func TestAllPushNotifications(t *testing.T) {
if testing.Short() {

Просмотреть файл

@@ -847,7 +847,7 @@ func TestGetExplicitMentions(t *testing.T) {
OtherPotentialMentions: nil,
},
},
"matching group with preceeding @": {
"matching group with preceding @": {
Message: "@engineering",
Groups: map[string]*model.Group{"engineering": {Name: model.NewString("engineering")}},
Expected: &ExplicitMentions{
@@ -858,7 +858,7 @@ func TestGetExplicitMentions(t *testing.T) {
OtherPotentialMentions: []string{"engineering"},
},
},
"matching upper case group with preceeding @": {
"matching upper case group with preceding @": {
Message: "@Engineering",
Groups: map[string]*model.Group{"engineering": {Name: model.NewString("engineering")}},
Expected: &ExplicitMentions{
@@ -2092,12 +2092,12 @@ func TestAddGroupMention(t *testing.T) {
Groups: map[string]*model.Group{"engineering": {Name: model.NewString("engineering")}, "developers": {Name: model.NewString("developers")}},
Expected: false,
},
"matching group with preceeding @": {
"matching group with preceding @": {
Word: "@engineering",
Groups: map[string]*model.Group{"engineering": {Name: model.NewString("engineering")}, "developers": {Name: model.NewString("developers")}},
Expected: true,
},
"matching upper case group with preceeding @": {
"matching upper case group with preceding @": {
Word: "@Engineering",
Groups: map[string]*model.Group{"engineering": {Name: model.NewString("engineering")}, "developers": {Name: model.NewString("developers")}},
Expected: true,