Fix misspellings and enable misspell on ci (#16285)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
@@ -52,7 +52,7 @@ type AutocompleteArg struct {
|
||||
HelpText string
|
||||
// Type of the argument
|
||||
Type AutocompleteArgType
|
||||
// Required determins if argument is optional or not.
|
||||
// Required determines if argument is optional or not.
|
||||
Required bool
|
||||
// Actual data of the argument (depends on the Type)
|
||||
Data interface{}
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestAutocompleteData(t *testing.T) {
|
||||
ad := NewAutocompleteData("jira", "", "Avaliable commands:")
|
||||
ad := NewAutocompleteData("jira", "", "Available commands:")
|
||||
assert.Nil(t, ad.IsValid())
|
||||
ad.RoleID = "some_id"
|
||||
assert.NotNil(t, ad.IsValid())
|
||||
@@ -75,7 +75,7 @@ func TestAutocompleteDataJSON(t *testing.T) {
|
||||
}
|
||||
|
||||
func getAutocompleteData() *AutocompleteData {
|
||||
ad := NewAutocompleteData("jira", "", "Avaliable commands:")
|
||||
ad := NewAutocompleteData("jira", "", "Available commands:")
|
||||
ad.RoleID = SYSTEM_USER_ROLE_ID
|
||||
command := NewAutocompleteData("connect", "", "Connect to mattermost")
|
||||
command.RoleID = SYSTEM_ADMIN_ROLE_ID
|
||||
|
||||
@@ -7,7 +7,7 @@ type FeatureFlags struct {
|
||||
// Exists only for unit and manual testing.
|
||||
// When set to a value, will be returned by the ping endpoint.
|
||||
TestFeature string
|
||||
// Exists only for testing bool functionality. Boolean feature flags interprate "on" or "true" as true and
|
||||
// Exists only for testing bool functionality. Boolean feature flags interpret "on" or "true" as true and
|
||||
// all other values as false.
|
||||
TestBoolFeature bool
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ func (r *Role) MergeChannelHigherScopedPermissions(higherScopedPermissions *Role
|
||||
|
||||
_, presentOnHigherScope := higherScopedPermissionsMap[cp.Id]
|
||||
|
||||
// For the channel admin role always look to the higher scope to determine if the role has ther permission.
|
||||
// For the channel admin role always look to the higher scope to determine if the role has their permission.
|
||||
// The channel admin is a special case because they're not part of the UI to be "channel moderated", only
|
||||
// channel members and channel guests are.
|
||||
if higherScopedPermissions.RoleID == CHANNEL_ADMIN_ROLE_ID && presentOnHigherScope {
|
||||
|
||||
@@ -1207,7 +1207,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is two words seperated with : and should result in a single InChannel",
|
||||
Name: "input is two words separated with : and should result in a single InChannel",
|
||||
Input: "in:channel",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1222,7 +1222,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is two words seperated with :, prefied with - and should result in a single ExcludedChannel",
|
||||
Name: "input is two words separated with :, prefied with - and should result in a single ExcludedChannel",
|
||||
Input: "-in:channel",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1237,7 +1237,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is two words seperated with : with a prefixed word should result in a single InChannel and a term",
|
||||
Name: "input is two words separated with : with a prefixed word should result in a single InChannel and a term",
|
||||
Input: "testing in:channel",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1252,7 +1252,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is two words seperated with : with a prefixed word should result in a single ExcludedChannel and a term",
|
||||
Name: "input is two words separated with : with a prefixed word should result in a single ExcludedChannel and a term",
|
||||
Input: "testing -in:channel",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1267,7 +1267,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is two words seperated with : with a postfix word should result in a single InChannel and a term",
|
||||
Name: "input is two words separated with : with a postfix word should result in a single InChannel and a term",
|
||||
Input: "in:channel testing",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1282,7 +1282,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is four words seperated with : should result in a two InChannels",
|
||||
Name: "input is four words separated with : should result in a two InChannels",
|
||||
Input: "in:channel in:otherchannel",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1297,7 +1297,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is four words seperated with : prefixed with a word should result in two InChannels and one term",
|
||||
Name: "input is four words separated with : prefixed with a word should result in two InChannels and one term",
|
||||
Input: "testing in:channel in:otherchannel",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1312,7 +1312,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is four words seperated with : prefixed with a word should result in one InChannel, one FromUser and one term",
|
||||
Name: "input is four words separated with : prefixed with a word should result in one InChannel, one FromUser and one term",
|
||||
Input: "testing in:channel from:someone",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1327,7 +1327,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is four words seperated with : prefixed with a word should result in one InChannel, one ExcludedUser and one term",
|
||||
Name: "input is four words separated with : prefixed with a word should result in one InChannel, one ExcludedUser and one term",
|
||||
Input: "testing in:channel -from:someone",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
@@ -1342,7 +1342,7 @@ func TestParseSearchParams(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "input is six words seperated with : prefixed with a word should result in one InChannel, one FromUser, one ExcludedUser and one term",
|
||||
Name: "input is six words separated with : prefixed with a word should result in one InChannel, one FromUser, one ExcludedUser and one term",
|
||||
Input: "testing in:channel from:someone -from:someoneelse",
|
||||
Output: []*SearchParams{
|
||||
{
|
||||
|
||||
Ссылка в новой задаче
Block a user