diff --git a/frontend/src/Collection/CollectionItemConnector.js b/frontend/src/Collection/CollectionItemConnector.js index 715982a9df..e3ca347729 100644 --- a/frontend/src/Collection/CollectionItemConnector.js +++ b/frontend/src/Collection/CollectionItemConnector.js @@ -9,7 +9,7 @@ function createMapStateToProps() { createCollectionSelector(), (collection) => { // If a movie is deleted this selector may fire before the parent - // selecors, which will result in an undefined movie, if that happens + // selectors, which will result in an undefined movie, if that happens // we want to return early here and again in the render function to avoid // trying to show a movie that has no information available. diff --git a/frontend/src/DiscoverMovie/DiscoverMovieItemConnector.js b/frontend/src/DiscoverMovie/DiscoverMovieItemConnector.js index bee5235df0..6ca010a90b 100644 --- a/frontend/src/DiscoverMovie/DiscoverMovieItemConnector.js +++ b/frontend/src/DiscoverMovie/DiscoverMovieItemConnector.js @@ -12,7 +12,7 @@ function createMapStateToProps() { ) => { // If a movie is deleted this selector may fire before the parent - // selecors, which will result in an undefined movie, if that happens + // selectors, which will result in an undefined movie, if that happens // we want to return early here and again in the render function to avoid // trying to show a movie that has no information available. diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css b/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css index c10bcd2002..0e8d731194 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css @@ -45,7 +45,7 @@ } .createGroupButton { - composes: buton from '~Components/Link/IconButton.css'; + composes: button from '~Components/Link/IconButton.css'; display: flex; align-items: center; diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css b/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css index 772bd9a802..8a3953fbb8 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css @@ -71,7 +71,7 @@ } .deleteGroupButton { - composes: buton from '~Components/Link/IconButton.css'; + composes: button from '~Components/Link/IconButton.css'; display: flex; align-items: center; diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js index 02a69d778d..9eae116839 100644 --- a/frontend/src/Store/Actions/releaseActions.js +++ b/frontend/src/Store/Actions/releaseActions.js @@ -326,7 +326,7 @@ export const reducers = createHandleActions({ const items = newState.items; const index = items.findIndex((item) => item.guid === guid); - // Don't try to update if there isnt a matching item (the user closed the modal) + // Don't try to update if there isn't a matching item (the user closed the modal) if (index >= 0) { const item = Object.assign({}, items[index], payload); diff --git a/frontend/src/Store/Selectors/createCommandExecutingSelector.ts b/frontend/src/Store/Selectors/createCommandExecutingSelector.ts index 6a80e172b3..9c5ae99d19 100644 --- a/frontend/src/Store/Selectors/createCommandExecutingSelector.ts +++ b/frontend/src/Store/Selectors/createCommandExecutingSelector.ts @@ -2,8 +2,8 @@ import { createSelector } from 'reselect'; import { isCommandExecuting } from 'Utilities/Command'; import createCommandSelector from './createCommandSelector'; -function createCommandExecutingSelector(name: string, contraints = {}) { - return createSelector(createCommandSelector(name, contraints), (command) => { +function createCommandExecutingSelector(name: string, constraints = {}) { + return createSelector(createCommandSelector(name, constraints), (command) => { return isCommandExecuting(command); }); } diff --git a/frontend/src/Store/Selectors/createCommandSelector.ts b/frontend/src/Store/Selectors/createCommandSelector.ts index cced7b1864..1cc34201b4 100644 --- a/frontend/src/Store/Selectors/createCommandSelector.ts +++ b/frontend/src/Store/Selectors/createCommandSelector.ts @@ -2,9 +2,9 @@ import { createSelector } from 'reselect'; import { findCommand } from 'Utilities/Command'; import createCommandsSelector from './createCommandsSelector'; -function createCommandSelector(name: string, contraints = {}) { +function createCommandSelector(name: string, constraints = {}) { return createSelector(createCommandsSelector(), (commands) => { - return findCommand(commands, { name, ...contraints }); + return findCommand(commands, { name, ...constraints }); }); } diff --git a/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs b/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs index d9e8b46223..24224c27c9 100644 --- a/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs +++ b/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs @@ -16,7 +16,7 @@ public void should_return_version() [Test] public void should_get_branch() { - BuildInfo.Branch.Should().NotBe("unknow"); + BuildInfo.Branch.Should().NotBe("unknown"); BuildInfo.Branch.Should().NotBeNullOrWhiteSpace(); } } diff --git a/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs b/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs index 1e87ba077b..61a56f17d5 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs @@ -15,7 +15,7 @@ static BuildInfo() var attributes = assembly.GetCustomAttributes(true); - Branch = "unknow"; + Branch = "unknown"; var config = attributes.OfType().FirstOrDefault(); if (config != null) diff --git a/src/NzbDrone.Common/Processes/ProcessProvider.cs b/src/NzbDrone.Common/Processes/ProcessProvider.cs index c9e4296e81..8dc5e9f836 100644 --- a/src/NzbDrone.Common/Processes/ProcessProvider.cs +++ b/src/NzbDrone.Common/Processes/ProcessProvider.cs @@ -346,7 +346,7 @@ private List GetProcessesByName(string name) } catch { - // Don't crash on gettings some log data. + // Don't crash on getting some log data. } return processes; diff --git a/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs b/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs index 2605bbd9ba..2321e631be 100644 --- a/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs +++ b/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs @@ -130,7 +130,7 @@ protected virtual Expression VisitUnary(UnaryExpression expression) } /// - /// Visits the lamda expression. + /// Visits the lambda expression. /// /// /// diff --git a/src/NzbDrone.Core/Datastore/Migration/121_update_filedate_config.cs b/src/NzbDrone.Core/Datastore/Migration/121_update_filedate_config.cs index b730c89569..19410440e9 100644 --- a/src/NzbDrone.Core/Datastore/Migration/121_update_filedate_config.cs +++ b/src/NzbDrone.Core/Datastore/Migration/121_update_filedate_config.cs @@ -58,7 +58,7 @@ public static string ToUrlSlug(string value) // Trim dashes from end value = value.Trim('-', '_'); - // Replace double occurences of - or _ + // Replace double occurrences of - or _ value = Regex.Replace(value, @"([-_]){2,}", "$1", RegexOptions.Compiled); return value; diff --git a/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs b/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs index 6d82be217a..41f3d6c7c6 100644 --- a/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs +++ b/src/NzbDrone.Core/Datastore/Migration/177_language_improvements.cs @@ -45,7 +45,7 @@ protected override void MainDbUpgrade() Execute.Sql("UPDATE \"NamingConfig\" SET \"RenameMovies\"=\"RenameEpisodes\""); Delete.Column("RenameEpisodes").FromTable("NamingConfig"); - // Manual SQL, Fluent Migrator doesn't support multi-column unique contraint on table creation, SQLite doesn't support adding it after creation + // Manual SQL, Fluent Migrator doesn't support multi-column unique constraint on table creation, SQLite doesn't support adding it after creation IfDatabase("sqlite").Execute.Sql("CREATE TABLE \"MovieTranslations\"(" + "\"Id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " + "\"MovieId\" INTEGER NOT NULL, " + diff --git a/src/NzbDrone.Core/Datastore/Migration/180_fix_invalid_profile_references.cs b/src/NzbDrone.Core/Datastore/Migration/180_fix_invalid_profile_references.cs index 8ecd155c65..113d45324f 100644 --- a/src/NzbDrone.Core/Datastore/Migration/180_fix_invalid_profile_references.cs +++ b/src/NzbDrone.Core/Datastore/Migration/180_fix_invalid_profile_references.cs @@ -47,7 +47,7 @@ private void FixMovies(IDbConnection conn, IDbTransaction tran) .FirstOrDefault(); } - // If all the movie profiles are bad or there are no movies, just use the first profile for bad movies and lsits + // If all the movie profiles are bad or there are no movies, just use the first profile for bad movies and lists if (mostCommonProfileId == 0) { mostCommonProfileId = profiles.First(); diff --git a/src/NzbDrone.Core/Download/Clients/FreeboxDownload/Responses/FreeboxDownloadTask.cs b/src/NzbDrone.Core/Download/Clients/FreeboxDownload/Responses/FreeboxDownloadTask.cs index eb4fc92b50..3e533148ec 100644 --- a/src/NzbDrone.Core/Download/Clients/FreeboxDownload/Responses/FreeboxDownloadTask.cs +++ b/src/NzbDrone.Core/Download/Clients/FreeboxDownload/Responses/FreeboxDownloadTask.cs @@ -110,7 +110,7 @@ static FreeboxDownloadTask() { "bt_file_error", "Error accessing torrent files." }, { "missing_ctx_file", "Error accessing task context file." }, { "nzb_no_group", "Cannot find the requested group on server." }, - { "nzb_not_found", "Article not fount on the server." }, + { "nzb_not_found", "Article not found on the server." }, { "nzb_invalid_crc", "Invalid article CRC." }, { "nzb_invalid_size", "Invalid article size." }, { "nzb_invalid_filename", "Invalid filename." }, diff --git a/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs b/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs index e32174cf8d..6a0df2dab2 100644 --- a/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs +++ b/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs @@ -96,7 +96,7 @@ public override IEnumerable GetItems() case FreeboxDownloadTaskStatus.Starting: // task is preparing to start download case FreeboxDownloadTaskStatus.Downloading: case FreeboxDownloadTaskStatus.Retry: // you can set a task status to ‘retry’ to restart the download task. - case FreeboxDownloadTaskStatus.Checking: // checking data before lauching download. + case FreeboxDownloadTaskStatus.Checking: // checking data before launching download. item.Status = DownloadItemStatus.Downloading; break; diff --git a/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs index 33bb15fed6..2a3bd69b0d 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs @@ -169,7 +169,7 @@ public override HealthCheck Check() } catch (Exception ex) { - _logger.Error(ex, "Unknown error occured in RemotePathMapping HealthCheck"); + _logger.Error(ex, "Unknown error occurred in RemotePathMapping HealthCheck"); } } @@ -217,7 +217,7 @@ public HealthCheck Check(IEvent message) "#remote-path-file-removed"); } - // If the previous case did not match then the failure occured in DownloadedMovieImportService, + // If the previous case did not match then the failure occurred in DownloadedMovieImportService, // while trying to locate the files reported by the download client // Only check clients not in failure status, those get another message var client = _downloadClientProvider.GetDownloadClients(true).FirstOrDefault(x => x.Definition.Name == failureMessage.DownloadClientInfo.Name); @@ -359,7 +359,7 @@ public HealthCheck Check(IEvent message) } catch (Exception ex) { - _logger.Error(ex, "Unknown error occured in RemotePathMapping HealthCheck"); + _logger.Error(ex, "Unknown error occurred in RemotePathMapping HealthCheck"); } return new HealthCheck(GetType()); diff --git a/src/NzbDrone.Core/ImportLists/Trakt/Popular/TraktPopularSettings.cs b/src/NzbDrone.Core/ImportLists/Trakt/Popular/TraktPopularSettings.cs index d26bbbfc2f..8cdf013655 100644 --- a/src/NzbDrone.Core/ImportLists/Trakt/Popular/TraktPopularSettings.cs +++ b/src/NzbDrone.Core/ImportLists/Trakt/Popular/TraktPopularSettings.cs @@ -29,7 +29,7 @@ public TraktPopularSettingsValidator() RuleFor(c => c.Certification) .Matches(@"^\bNR\b|\bG\b|\bPG\b|\bPG\-13\b|\bR\b|\bNC\-17\b$", RegexOptions.IgnoreCase) .When(c => c.Certification.IsNotNullOrWhiteSpace()) - .WithMessage("Not a valid cerification"); + .WithMessage("Not a valid certification"); // Loose validation @TODO RuleFor(c => c.Years) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/Resource/MovieResource.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/Resource/MovieResource.cs index cea0e7979d..1f041185b8 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/Resource/MovieResource.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/Resource/MovieResource.cs @@ -12,7 +12,7 @@ public class MovieResource public string OriginalTitle { get; set; } public string TitleSlug { get; set; } - // Depricated but left in place until cache fills new object (MovieRatings) + // Deprecated but left in place until cache fills new object (MovieRatings) public List Ratings { get; set; } public RatingResource MovieRatings { get; set; } public int? Runtime { get; set; } diff --git a/src/NzbDrone.Core/Qualities/QualityFinder.cs b/src/NzbDrone.Core/Qualities/QualityFinder.cs index bd2f439da7..d2432c1850 100644 --- a/src/NzbDrone.Core/Qualities/QualityFinder.cs +++ b/src/NzbDrone.Core/Qualities/QualityFinder.cs @@ -8,10 +8,10 @@ public static class QualityFinder { private static readonly Logger Logger = NzbDroneLogger.GetLogger(typeof(QualityFinder)); - public static Quality FindBySourceAndResolution(QualitySource source, int resolution, Modifier modifer) + public static Quality FindBySourceAndResolution(QualitySource source, int resolution, Modifier modifier) { // Check for a perfect 3-way match - var matchingQuality = Quality.All.SingleOrDefault(q => q.Source == source && q.Resolution == resolution && q.Modifier == modifer); + var matchingQuality = Quality.All.SingleOrDefault(q => q.Source == source && q.Resolution == resolution && q.Modifier == modifier); if (matchingQuality != null) { @@ -19,11 +19,11 @@ public static Quality FindBySourceAndResolution(QualitySource source, int resolu } // Check for Source and Modifier Match for Qualities with Unknown Resolution - var matchingQualitiesUnknownResolution = Quality.All.Where(q => q.Source == source && (q.Resolution == 0) && q.Modifier == modifer && q != Quality.Unknown); + var matchingQualitiesUnknownResolution = Quality.All.Where(q => q.Source == source && (q.Resolution == 0) && q.Modifier == modifier && q != Quality.Unknown).ToList(); if (matchingQualitiesUnknownResolution.Any()) { - if (matchingQualitiesUnknownResolution.Count() == 1) + if (matchingQualitiesUnknownResolution.Count == 1) { return matchingQualitiesUnknownResolution.First(); } @@ -32,14 +32,14 @@ public static Quality FindBySourceAndResolution(QualitySource source, int resolu { if (quality.Source >= source) { - Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifer, quality); + Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifier, quality); return quality; } } } // Check for Modifier match - var matchingModifier = Quality.All.Where(q => q.Modifier == modifer); + var matchingModifier = Quality.All.Where(q => q.Modifier == modifier); var matchingResolution = matchingModifier.Where(q => q.Resolution == resolution) .OrderBy(q => q.Source) @@ -56,7 +56,7 @@ public static Quality FindBySourceAndResolution(QualitySource source, int resolu } } - Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifer, nearestQuality); + Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifier, nearestQuality); return nearestQuality; }