Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.cs]

# CA1051: Do not declare visible instance fields
dotnet_diagnostic.CA1051.severity = none
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
4 changes: 0 additions & 4 deletions src/.editorconfig

This file was deleted.

42 changes: 21 additions & 21 deletions src/ZoneTree.FullTextSearch.Playground/Program.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
namespace ZoneTree.FullTextSearch.Playground;
namespace ZoneTree.FullTextSearch.Playground;

public sealed class Program
{
static void Main(string[] args)
static void Main(string[] args)
{
using var app = new SearchEngineApp();
if (args.Length > 0)
{
using var app = new SearchEngineApp();
if (args.Length > 0)
{
switch (args[0])
{
case "create":
{
app.CreateIndex(app.DefaultIndexPath, app.DefaultFilePattern, false);
break;
}
case "drop":
{
app.DropIndex(false);
break;
}
}
return;
}
app.Run();
switch (args[0])
{
case "create":
{
app.CreateIndex(app.DefaultIndexPath, app.DefaultFilePattern, false);
break;
}
case "drop":
{
app.DropIndex(false);
break;
}
}
return;
}
app.Run();
}
}

Loading
Loading