Skip to content
Snippets Groups Projects
Commit 733ae949 authored by George Tsiolis's avatar George Tsiolis
Browse files

Fix typos in comments and specs

parent c71c1f03
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 26 deletions
Loading
Loading
@@ -15,7 +15,7 @@ import CommitComponent from '../../vue_shared/components/commit.vue';
import eventHub from '../event_hub';
 
/**
* Envrionment Item Component
* Environment Item Component
*
* Renders a table row for each environment.
*/
Loading
Loading
@@ -60,7 +60,7 @@ export default {
 
computed: {
/**
* Verifies if `last_deployment` key exists in the current Envrionment.
* Verifies if `last_deployment` key exists in the current Environment.
* This key is required to render most of the html - this method works has
* an helper.
*
Loading
Loading
Loading
Loading
@@ -85,7 +85,7 @@ export default class FilteredSearchDropdown {
}
 
dispatchInputEvent() {
// Propogate input change to FilteredSearchDropdownManager
// Propagate input change to FilteredSearchDropdownManager
// so that it can determine which dropdowns to open
this.input.dispatchEvent(
new CustomEvent('input', {
Loading
Loading
Loading
Loading
@@ -28,7 +28,7 @@ export default class GlFieldErrors {
this.form.on('submit', GlFieldErrors.catchInvalidFormSubmit);
}
 
/* Neccessary to prevent intercept and override invalid form submit
/* Necessary to prevent intercept and override invalid form submit
* because Safari & iOS quietly allow form submission when form is invalid
* and prevents disabling of invalid submit button by application.js */
 
Loading
Loading
Loading
Loading
@@ -110,7 +110,7 @@ export default {
// Get the remaining list to use in `and x more` text.
const remainingAwardList = awardList.slice(TOOLTIP_NAME_COUNT, awardList.length);
 
// Add myself to the begining of the list so title will start with You.
// Add myself to the beginning of the list so title will start with You.
if (hasReactionByCurrentUser) {
namesToShow.unshift('You');
}
Loading
Loading
Loading
Loading
@@ -70,7 +70,7 @@ export const collapseSystemNotes = notes => {
} else if (lastDescriptionSystemNote) {
const timeDifferenceMinutes = getTimeDifferenceMinutes(lastDescriptionSystemNote, note);
 
// are they less than 10 minutes appart?
// are they less than 10 minutes apart?
if (timeDifferenceMinutes > 10) {
// reset counter
descriptionChangedTimes = 1;
Loading
Loading
Loading
Loading
@@ -13,7 +13,7 @@ export default {
},
props: {
/**
* Indicates the existance of a tag.
* Indicates the existence of a tag.
* Used to render the correct icon, if true will render `fa-tag` icon,
* if false will render a svg sprite fork icon
*/
Loading
Loading
Loading
Loading
@@ -158,7 +158,7 @@
color: $gl-text-color;
outline: 0;
 
// make sure the text color is not overriden
// make sure the text color is not overridden
&.text-danger {
color: $brand-danger;
}
Loading
Loading
@@ -184,7 +184,7 @@
text-align: left;
width: 100%;
 
// make sure the text color is not overriden
// make sure the text color is not overridden
&.text-danger {
color: $brand-danger;
}
Loading
Loading
Loading
Loading
@@ -33,21 +33,21 @@ class Admin::AppearancesController < Admin::ApplicationController
 
@appearance.save
 
redirect_to admin_appearances_path, notice: 'Logo was succesfully removed.'
redirect_to admin_appearances_path, notice: 'Logo was successfully removed.'
end
 
def header_logos
@appearance.remove_header_logo!
@appearance.save
 
redirect_to admin_appearances_path, notice: 'Header logo was succesfully removed.'
redirect_to admin_appearances_path, notice: 'Header logo was successfully removed.'
end
 
def favicon
@appearance.remove_favicon!
@appearance.save
 
redirect_to admin_appearances_path, notice: 'Favicon was succesfully removed.'
redirect_to admin_appearances_path, notice: 'Favicon was successfully removed.'
end
 
private
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@ class Import::GiteaController < Import::GithubController
:"#{provider}_host_url"
end
 
# Overriden methods
# Overridden methods
def provider
:gitea
end
Loading
Loading
Loading
Loading
@@ -103,7 +103,7 @@ class Import::GithubController < Import::BaseController
{ github_access_token: session[access_token_key] }
end
 
# The following methods are overriden in subclasses
# The following methods are overridden in subclasses
def provider
:github
end
Loading
Loading
Loading
Loading
@@ -3,7 +3,7 @@
class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
layout 'profile'
 
# Overriden from Doorkeeper::AuthorizationsController to
# Overridden from Doorkeeper::AuthorizationsController to
# include the call to session.delete
def new
if pre_auth.authorizable?
Loading
Loading
Loading
Loading
@@ -276,7 +276,7 @@ class ProjectsController < Projects::ApplicationController
# rubocop: enable CodeReuse/ActiveRecord
 
# Render project landing depending of which features are available
# So if page is not availble in the list it renders the next page
# So if page is not available in the list it renders the next page
#
# pages list order: repository readme, wiki home, issues list, customize workflow
def render_landing_page
Loading
Loading
Loading
Loading
@@ -10,7 +10,7 @@ module PageLayoutHelper
@breadcrumb_title = @page_title.last
end
 
# Segments are seperated by middot
# Segments are separated by middot
@page_title.join(" · ")
end
 
Loading
Loading
Loading
Loading
@@ -167,12 +167,12 @@ class CommitStatus < ActiveRecord::Base
false
end
 
# To be overriden when inherrited from
# To be overridden when inherrited from
def retryable?
false
end
 
# To be overriden when inherrited from
# To be overridden when inherrited from
def cancelable?
false
end
Loading
Loading
Loading
Loading
@@ -12,12 +12,12 @@ module CacheableAttributes
"#{name}:#{Gitlab::VERSION}:#{Rails.version}".freeze
end
 
# Can be overriden
# Can be overridden
def current_without_cache
last
end
 
# Can be overriden
# Can be overridden
def defaults
{}
end
Loading
Loading
Loading
Loading
@@ -7,7 +7,7 @@
# `delete_all` is efficient as it deletes all rows with a single `DELETE` query.
#
# It's better to use `delete_all` as our best practice, however,
# if external data (e.g. ObjectStorage, FileStorage or Redis) are assosiated with database records,
# if external data (e.g. ObjectStorage, FileStorage or Redis) are associated with database records,
# it is difficult to accomplish it.
#
# This module defines a format to use `delete_all` and delete associated external data.
Loading
Loading
Loading
Loading
@@ -363,7 +363,7 @@ module Issuable
end
 
##
# Overriden in MergeRequest
# Overridden in MergeRequest
#
def wipless_title_changed(old_title)
old_title != title
Loading
Loading
Loading
Loading
@@ -94,7 +94,7 @@ module Storage
if gitlab_shell.mv_namespace(repository_storage, full_path, new_path)
Gitlab::AppLogger.info %Q(Namespace directory "#{full_path}" moved to "#{new_path}")
 
# Remove namespace directroy async with delay so
# Remove namespace directory async with delay so
# GitLab has time to remove all projects first
run_after_commit do
GitlabShellWorker.perform_in(5.minutes, :rm_namespace, repository_storage, new_path)
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
 
# Mounted uploaders are destroyed by carrierwave's after_commit
# hook. This hook fetches upload location (local vs remote) from
# Upload model. So it's neccessary to make sure that during that
# Upload model. So it's necessary to make sure that during that
# after_commit hook model's associated uploads are not deleted yet.
# IOW we can not use dependent: :destroy :
# has_many :uploads, as: :model, dependent: :destroy
Loading
Loading
Loading
Loading
@@ -83,7 +83,7 @@ class Namespace < ActiveRecord::Base
find_by('lower(path) = :value', value: path.downcase)
end
 
# Case insensetive search for namespace by path or name
# Case insensitive search for namespace by path or name
def find_by_path_or_name(path)
find_by("lower(path) = :path OR lower(name) = :path", path: path.downcase)
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment