Add link to TIOBE Index on main page + fix issues (#1137)

* Add TIOBE + include SonarAnalyzer.CSharp

* .

* cp

* Copyright © WireMock.Net

* more fixes

* fix

* xpath

* if (Matchers == null || !Matchers.Any())

* if (Matchers != null)

* ?

* .

* .
This commit is contained in:
Stef Heyenrath
2024-07-18 18:06:04 +02:00
committed by GitHub
parent baac83c9b9
commit 54edf0bebc
573 changed files with 1294 additions and 172 deletions

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System.Collections.Generic;
using System.IO;
using WireMock.Util;
@@ -72,8 +74,8 @@ public class LocalFileSystemHandler : IFileSystemHandler
/// <inheritdoc cref="IFileSystemHandler.WriteMappingFile(string, string)"/>
public virtual void WriteMappingFile(string path, string text)
{
Guard.NotNullOrEmpty(path, nameof(path));
Guard.NotNull(text, nameof(text));
Guard.NotNullOrEmpty(path);
Guard.NotNull(text);
File.WriteAllText(path, text);
}
@@ -144,7 +146,7 @@ public class LocalFileSystemHandler : IFileSystemHandler
/// <inheritdoc cref="IFileSystemHandler.ReadFileAsString"/>
public virtual string ReadFileAsString(string filename)
{
return File.ReadAllText(AdjustPathForMappingFolder(Guard.NotNullOrEmpty(filename, nameof(filename))));
return File.ReadAllText(AdjustPathForMappingFolder(Guard.NotNullOrEmpty(filename)));
}
/// <inheritdoc cref="IFileSystemHandler.GetUnmatchedRequestsFolder"/>