diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/avatar/identicon/identicon.go | 2 | ||||
-rw-r--r-- | modules/csv/csv_test.go | 12 | ||||
-rw-r--r-- | modules/doctor/fix16961.go | 2 | ||||
-rw-r--r-- | modules/git/repo_branch.go | 2 | ||||
-rw-r--r-- | modules/migration/null_downloader.go | 2 | ||||
-rw-r--r-- | modules/process/manager.go | 2 | ||||
-rw-r--r-- | modules/public/static.go | 2 | ||||
-rw-r--r-- | modules/structs/org.go | 2 | ||||
-rw-r--r-- | modules/structs/repo.go | 2 | ||||
-rw-r--r-- | modules/templates/static.go | 2 | ||||
-rw-r--r-- | modules/updatechecker/update_checker.go | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/modules/avatar/identicon/identicon.go b/modules/avatar/identicon/identicon.go index 8589c59289..cc7e2a791d 100644 --- a/modules/avatar/identicon/identicon.go +++ b/modules/avatar/identicon/identicon.go @@ -84,7 +84,7 @@ Origin: An image is splitted into 9 areas Area 1/3/9/7 use a 90-degree rotating pattern. Area 1/3/9/7 use another 90-degree rotating pattern. -Area 5 uses a random patter. +Area 5 uses a random pattern. The Patched Fix: make the image left-right mirrored to get rid of something like "swastika" */ diff --git a/modules/csv/csv_test.go b/modules/csv/csv_test.go index 1612a66953..41c4ddaee2 100644 --- a/modules/csv/csv_test.go +++ b/modules/csv/csv_test.go @@ -223,7 +223,7 @@ c;d;#`, // case 13 - tab delimited with commas in values { csv: `name email note -John Doe john@doe.com This,note,had,a,lot,of,commas,to,test,delimters`, +John Doe john@doe.com This,note,had,a,lot,of,commas,to,test,delimiters`, filename: "", expectedDelimiter: '\t', }, @@ -240,7 +240,7 @@ func TestRemoveQuotedString(t *testing.T) { text string expectedText string }{ - // case 0 - quoted text with escpaed quotes in 1st column + // case 0 - quoted text with escaped quotes in 1st column { text: `col1,col2,col3 "quoted ""text"" with @@ -249,7 +249,7 @@ in first column",b,c`, expectedText: `col1,col2,col3 ,b,c`, }, - // case 1 - quoted text with escpaed quotes in 2nd column + // case 1 - quoted text with escaped quotes in 2nd column { text: `col1,col2,col3 a,"quoted ""text"" with @@ -258,7 +258,7 @@ in second column",c`, expectedText: `col1,col2,col3 a,,c`, }, - // case 2 - quoted text with escpaed quotes in last column + // case 2 - quoted text with escaped quotes in last column { text: `col1,col2,col3 a,b,"quoted ""text"" with @@ -351,7 +351,7 @@ c;d`, // case 8 - tab delimited with commas in value { csv: `name email note -John Doe john@doe.com This,note,had,a,lot,of,commas,to,test,delimters`, +John Doe john@doe.com This,note,had,a,lot,of,commas,to,test,delimiters`, expectedDelimiter: '\t', }, // case 9 - tab delimited with new lines in values, commas in values @@ -431,7 +431,7 @@ skxg,t,vay,d,wug,d,xg,sexc rt g,ag,mjq,fjnyji,iwa,m,ml,b,ua,b,qjxeoc be,s,sh,n,j csv: "col1@col2@col3\na@b@" + strings.Repeat("c", 6000) + "\nd,e," + strings.Repeat("f", 4000), expectedDelimiter: '@', }, - // case 16 - has all delimters so should return comma + // case 16 - has all delimiters so should return comma { csv: `col1,col2;col3@col4|col5 col6 a b|c@d;e,f`, diff --git a/modules/doctor/fix16961.go b/modules/doctor/fix16961.go index 4797c97ef3..56d02ae92e 100644 --- a/modules/doctor/fix16961.go +++ b/modules/doctor/fix16961.go @@ -297,7 +297,7 @@ func fixBrokenRepoUnits16961(logger log.Logger, autofix bool) error { ) if err != nil { - logger.Critical("Unable to iterate acrosss repounits to fix the broken units: Error %v", err) + logger.Critical("Unable to iterate across repounits to fix the broken units: Error %v", err) return err } diff --git a/modules/git/repo_branch.go b/modules/git/repo_branch.go index 01933d7ade..71a81935d6 100644 --- a/modules/git/repo_branch.go +++ b/modules/git/repo_branch.go @@ -16,7 +16,7 @@ const BranchPrefix = "refs/heads/" // AGit Flow -// PullRequestPrefix sepcial ref to create a pull request: refs/for/<targe-branch>/<topic-branch> +// PullRequestPrefix special ref to create a pull request: refs/for/<targe-branch>/<topic-branch> // or refs/for/<targe-branch> -o topic='<topic-branch>' const PullRequestPrefix = "refs/for/" diff --git a/modules/migration/null_downloader.go b/modules/migration/null_downloader.go index 05daf72108..69d5ac7b56 100644 --- a/modules/migration/null_downloader.go +++ b/modules/migration/null_downloader.go @@ -65,7 +65,7 @@ func (n NullDownloader) GetReviews(pullRequestContext IssueContext) ([]*Review, return nil, &ErrNotSupported{Entity: "Reviews"} } -// FormatCloneURL add authentification into remote URLs +// FormatCloneURL add authentication into remote URLs func (n NullDownloader) FormatCloneURL(opts MigrateOptions, remoteAddr string) (string, error) { if len(opts.AuthToken) > 0 || len(opts.AuthUsername) > 0 { u, err := url.Parse(remoteAddr) diff --git a/modules/process/manager.go b/modules/process/manager.go index 10a89d04dd..7cde9f9451 100644 --- a/modules/process/manager.go +++ b/modules/process/manager.go @@ -79,7 +79,7 @@ func (pm *Manager) AddContext(parent context.Context, description string) (ctx c } // AddContextTimeout creates a new context and add it as a process. Once the process is finished, finished must be called -// to remove the process from the process table. It should not be called until the process is finsihed but must always be called. +// to remove the process from the process table. It should not be called until the process is finished but must always be called. // // cancel should be used to cancel the returned context, however it will not remove the process from the process table. // finished will cancel the returned context and remove it from the process table. diff --git a/modules/public/static.go b/modules/public/static.go index 2e35329a07..a81efacfa4 100644 --- a/modules/public/static.go +++ b/modules/public/static.go @@ -21,7 +21,7 @@ import ( "code.gitea.io/gitea/modules/timeutil" ) -// GlobalModTime provide a gloabl mod time for embedded asset files +// GlobalModTime provide a global mod time for embedded asset files func GlobalModTime(filename string) time.Time { return timeutil.GetExecutableModTime() } diff --git a/modules/structs/org.go b/modules/structs/org.go index 4ae0ca8b6f..d8bd59e1ec 100644 --- a/modules/structs/org.go +++ b/modules/structs/org.go @@ -17,7 +17,7 @@ type Organization struct { RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` } -// OrganizationPermissions list differents users permissions on an organization +// OrganizationPermissions list different users permissions on an organization type OrganizationPermissions struct { IsOwner bool `json:"is_owner"` IsAdmin bool `json:"is_admin"` diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 38d80db704..852af1f891 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -110,7 +110,7 @@ type CreateRepoOption struct { Private bool `json:"private"` // Label-Set to use IssueLabels string `json:"issue_labels"` - // Whether the repository should be auto-intialized? + // Whether the repository should be auto-initialized? AutoInit bool `json:"auto_init"` // Whether the repository is template Template bool `json:"template"` diff --git a/modules/templates/static.go b/modules/templates/static.go index c2295b2bd8..5b06aaad8f 100644 --- a/modules/templates/static.go +++ b/modules/templates/static.go @@ -28,7 +28,7 @@ var ( bodyTemplates = template.New("") ) -// GlobalModTime provide a gloabl mod time for embedded asset files +// GlobalModTime provide a global mod time for embedded asset files func GlobalModTime(filename string) time.Time { return timeutil.GetExecutableModTime() } diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go index 149a8462f6..b144166ee9 100644 --- a/modules/updatechecker/update_checker.go +++ b/modules/updatechecker/update_checker.go @@ -68,7 +68,7 @@ func UpdateRemoteVersion(version string) (err error) { return appstate.AppState.Set(&CheckerState{LatestVersion: version}) } -// GetRemoteVersion returns the current remote version (or currently installed verson if fail to fetch from DB) +// GetRemoteVersion returns the current remote version (or currently installed version if fail to fetch from DB) func GetRemoteVersion() string { item := new(CheckerState) if err := appstate.AppState.Get(item); err != nil { |