diff --git a/TeamCity.MSBuild.Logger.Tests/TeamCityHierarchicalMessageWriterTests.cs b/TeamCity.MSBuild.Logger.Tests/TeamCityHierarchicalMessageWriterTests.cs index eba693d..6d84be9 100644 --- a/TeamCity.MSBuild.Logger.Tests/TeamCityHierarchicalMessageWriterTests.cs +++ b/TeamCity.MSBuild.Logger.Tests/TeamCityHierarchicalMessageWriterTests.cs @@ -1,4 +1,5 @@ -namespace TeamCity.MSBuild.Logger.Tests +// ReSharper disable StringLiteralTypo +namespace TeamCity.MSBuild.Logger.Tests { using System.Linq; using JetBrains.Annotations; diff --git a/TeamCity.MSBuild.Logger/DefaultConsole.cs b/TeamCity.MSBuild.Logger/DefaultConsole.cs index 5918d93..51bb823 100644 --- a/TeamCity.MSBuild.Logger/DefaultConsole.cs +++ b/TeamCity.MSBuild.Logger/DefaultConsole.cs @@ -20,8 +20,6 @@ public DefaultConsole([NotNull] IDiagnostics diagnostics) _out = Console.Out; } - public void Initialize() { } - public void Write(string text) { if (string.IsNullOrEmpty(text)) diff --git a/TeamCity.MSBuild.Logger/Disposable.cs b/TeamCity.MSBuild.Logger/Disposable.cs index f57ac82..79885e1 100644 --- a/TeamCity.MSBuild.Logger/Disposable.cs +++ b/TeamCity.MSBuild.Logger/Disposable.cs @@ -1,4 +1,5 @@ // ReSharper disable RedundantUsingDirective +// ReSharper disable UnusedMember.Global namespace TeamCity.MSBuild.Logger { using System; diff --git a/TeamCity.MSBuild.Logger/IInitializable.cs b/TeamCity.MSBuild.Logger/IInitializable.cs index 8e35cd4..89edc3b 100644 --- a/TeamCity.MSBuild.Logger/IInitializable.cs +++ b/TeamCity.MSBuild.Logger/IInitializable.cs @@ -1,8 +1,5 @@ namespace TeamCity.MSBuild.Logger { // ReSharper disable once IdentifierTypo - interface IInitializable - { - void Initialize(); - } + internal interface IInitializable { } } \ No newline at end of file diff --git a/TeamCity.MSBuild.Logger/TeamCityHierarchicalMessageWriter.cs b/TeamCity.MSBuild.Logger/TeamCityHierarchicalMessageWriter.cs index 7a8dd50..37b94a6 100644 --- a/TeamCity.MSBuild.Logger/TeamCityHierarchicalMessageWriter.cs +++ b/TeamCity.MSBuild.Logger/TeamCityHierarchicalMessageWriter.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; using System.IO; - using System.Linq; using System.Text; using JetBrains.Annotations; using JetBrains.TeamCity.ServiceMessages; @@ -303,6 +302,7 @@ [NotNull] private static string GetFileName([CanBeNull] string file) return Path.GetFileName(file); } } + // ReSharper disable once EmptyGeneralCatchClause catch { } return string.Empty; }