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 удалений

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

@@ -361,7 +361,7 @@ func (s SqlChannelStore) completePopulatingCategoryChannels(category *model.Side
return result, nil
}
func (s SqlChannelStore) completePopulatingCategoryChannelsT(transation *gorp.Transaction, category *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error) {
func (s SqlChannelStore) completePopulatingCategoryChannelsT(transaction *gorp.Transaction, category *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error) {
if category.Type == model.SidebarCategoryCustom || category.Type == model.SidebarCategoryFavorites {
return category, nil
}
@@ -406,7 +406,7 @@ func (s SqlChannelStore) completePopulatingCategoryChannelsT(transation *gorp.Tr
return nil, errors.Wrap(err, "channel_tosql")
}
if _, err = transation.Select(&channels, sql, args...); err != nil {
if _, err = transaction.Select(&channels, sql, args...); err != nil {
return nil, store.NewErrNotFound("ChannelMembers", "<too many fields>")
}

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

@@ -32,7 +32,7 @@ func TestMysqlStopWords(t *testing.T) {
Expected: []string{"my car", "so real", "test this-and-that awesome"},
},
{
Name: "Should not remove part of a word containg stop words",
Name: "Should not remove part of a word containing stop words",
Args: []string{"whereabouts", "wherein", "tothis", "thisorthat", "waswhen", "whowas", "inthe", "whowill", "thewww"},
Expected: []string{"whereabouts", "wherein", "tothis", "thisorthat", "waswhen", "whowas", "inthe", "whowill", "thewww"},
},
@@ -42,7 +42,7 @@ func TestMysqlStopWords(t *testing.T) {
Empty: true,
},
{
Name: "Should not remove part of a word containg stop words separated by hyphens",
Name: "Should not remove part of a word containing stop words separated by hyphens",
Args: []string{"where-about", "where-in", "to-this", "this-or-that", "was-when", "who-was", "in-the", "who-will", "the-www"},
Expected: []string{"where-about", "where-in", "to-this", "this-or-that", "was-when", "who-was", "in-the", "who-will", "the-www"},
},