whitespace stylecop fixes for Wox.Infra (#5689)

* Limited to whitespace

* removing stylecop again
This commit is contained in:
Clint Rutkas
2020-08-06 11:28:13 -07:00
committed by GitHub
parent 7b767df0b5
commit d6e46d73b5
24 changed files with 81 additions and 28 deletions

View File

@@ -9,6 +9,7 @@ using System.Runtime.CompilerServices;
using static Wox.Infrastructure.StringMatcher;
[assembly: InternalsVisibleToAttribute("Microsoft.Plugin.Program.UnitTests")]
namespace Wox.Infrastructure
{
public class StringMatcher
@@ -225,7 +226,7 @@ namespace Wox.Infrastructure
private static int CalculateSearchScore(string query, string stringToCompare, int firstIndex, int matchLen, bool allSubstringsContainedInCompareString)
{
// A match found near the beginning of a string is scored more than a match found near the end
// A match is scored more if the characters in the patterns are closer to each other,
// A match is scored more if the characters in the patterns are closer to each other,
// while the score is lower if they are more spread out
var score = 100 * (query.Length + 1) / ((1 + firstIndex) + (matchLen + 1));
@@ -301,6 +302,7 @@ namespace Wox.Infrastructure
public int RawScore
{
get { return _rawScore; }
set
{
_rawScore = value;