Skip to content

Commit

Permalink
VCI-128: Fix codesmells (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro authored Aug 19, 2021
1 parent 72d9ac3 commit 860e7c3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion PlatformTools/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PlatformTools
{
internal class AppSettings
internal static class AppSettings
{
private static IConfiguration _configuration;

Expand Down
1 change: 1 addition & 0 deletions PlatformTools/Build.PackageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ private bool NeedToInstallPlatform(string version)
if (externalModule == null)
{
ControlFlow.Fail($"No module {module.Id} found");
return;
}

if (alreadyInstalledModules.Any(installedModule => installedModule.ModuleName == module.Id && installedModule.Version.ToString() == module.Version))
Expand Down
2 changes: 1 addition & 1 deletion PlatformTools/ExtModuleCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace PlatformTools
{
internal class ExtModuleCatalog
internal static class ExtModuleCatalog
{
private static ExternalModuleCatalog _catalog;

Expand Down
2 changes: 1 addition & 1 deletion PlatformTools/GithubManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace PlatformTools
{
internal class GithubManager
internal static class GithubManager
{
private static readonly string _githubUser = "virtocommerce";
private static readonly string _platformRepo = "vc-platform";
Expand Down
7 changes: 1 addition & 6 deletions PlatformTools/LocalCatalog.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -184,11 +184,6 @@ private bool IsAssemblyRelatedFile(string path)
return _options.AssemblyFileExtensions.Union(_options.AssemblyServiceFileExtensions).Any(x => path.EndsWith(x, StringComparison.OrdinalIgnoreCase));
}

private bool IsAssemblyFile(string path)
{
return _options.AssemblyFileExtensions.Any(x => path.EndsWith(x, StringComparison.OrdinalIgnoreCase));
}

private bool IsLocalizationFile(string path)
{
return _options.LocalizationFileExtensions.Any(x => path.EndsWith(x, StringComparison.OrdinalIgnoreCase));
Expand Down
2 changes: 1 addition & 1 deletion PlatformTools/LocalModuleCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace PlatformTools
{
internal class LocalModuleCatalog
internal static class LocalModuleCatalog
{
private static LocalCatalog _catalog;

Expand Down
2 changes: 1 addition & 1 deletion PlatformTools/ModuleInstallerFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace PlatformTools
{
internal class ModuleInstallerFacade
internal static class ModuleInstallerFacade
{
private static ModuleInstaller _moduleInstaller;

Expand Down
2 changes: 1 addition & 1 deletion PlatformTools/PackageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PlatformTools
{
internal class PackageManager
internal static class PackageManager
{
private static readonly string _defaultModuleManifest = "https://raw.githubusercontent.com/VirtoCommerce/vc-modules/master/modules_v3.json";

Expand Down

0 comments on commit 860e7c3

Please sign in to comment.