Skip to content

Commit 400515b

Browse files
committed
Formatting has beem fixed
1 parent f93b260 commit 400515b

File tree

6 files changed

+4
-13
lines changed

6 files changed

+4
-13
lines changed

cli/nugetswitcher.cliservice/Message/CliMessageProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void AddMessage(Exception exception, [CallerMemberName] string caller = "
5151
/// </param>
5252
public void AddMessage(string project, Exception exception, [CallerMemberName] string caller = "")
5353
{
54-
Console.WriteLine($"{ project } - { exception}");
54+
Console.WriteLine($"{ project } - { exception }");
5555
}
5656

5757
/// <summary>

cli/nugetswitcher.cliservice/Project/CliProjectProvider.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ public sealed class CliProjectProvider : AbstractProjectProvider<ProjectReferenc
1515
/// ProjectCollection. Multiple ProjectCollections can exist within an appdomain. However, these must not
1616
/// build concurrently.
1717
/// </summary>
18-
private readonly ProjectCollection _projectCollection = new
19-
ProjectCollection
18+
private readonly
19+
ProjectCollection _projectCollection = new
20+
ProjectCollection
2021
();
2122

2223
public CliProjectProvider(string solution) : base(solution)

lib/nugetswitcher.interface/Entity/Error/SwitcherException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace NuGetSwitcher.Interface.Entity.Error
66
{
7-
#pragma warning disable S3925 // "ISerializable" should be implemented correctly
87
public class SwitcherException : Exception
9-
#pragma warning restore S3925 // "ISerializable" should be implemented correctly
108
{
119
public Project MsbProject
1210
{

lib/nugetswitcher.interface/Entity/Error/SwitcherFileNotFoundException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace NuGetSwitcher.Interface.Entity.Error
66
{
7-
#pragma warning disable S3925 // "ISerializable" should be implemented correctly
87
public sealed class SwitcherFileNotFoundException : SwitcherException
9-
#pragma warning restore S3925 // "ISerializable" should be implemented correctly
108
{
119
public SwitcherFileNotFoundException(Project msbProject, string message) : base(msbProject, message)
1210
{ }

lib/nugetswitcher.interface/Entity/Error/SwitcherInvalidOperationException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace NuGetSwitcher.Interface.Entity.Error
66
{
7-
#pragma warning disable S3925 // "ISerializable" should be implemented correctly
87
public sealed class SwitcherInvalidOperationException : SwitcherException
9-
#pragma warning restore S3925 // "ISerializable" should be implemented correctly
108
{
119
public SwitcherInvalidOperationException(Project msbProject, string message) : base(msbProject, message)
1210
{ }

lib/nugetswitcher.interface/Reference/Project/ProjectReference.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ public ProjectReference(MsbProject project)
7575
{
7676
MsbProject = project;
7777

78-
#pragma warning disable S3267 // Loops should be simplified with "LINQ" expressions
7978
foreach (ProjectProperty property in MsbProject.Properties)
80-
#pragma warning restore S3267 // Loops should be simplified with "LINQ" expressions
8179
{
8280
if (_msbProperties.ContainsKey(property.Name))
8381
{
@@ -121,9 +119,7 @@ public LockFile GetLockFile()
121119
* exception.
122120
*/
123121

124-
#pragma warning disable S1066 // Collapsible "if" statements should be merged
125122
if (MsbProject.GetItems(nameof(ReferenceType.PackageReference)).Any())
126-
#pragma warning restore S1066 // Collapsible "if" statements should be merged
127123
{
128124
throw new SwitcherFileNotFoundException(MsbProject, $"File { path }. Message: Project lock file not found");
129125
}

0 commit comments

Comments
 (0)