Skip to content

Commit

Permalink
disable usings formatter because of a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-hodgson authored Nov 16, 2023
1 parent 8313914 commit 7dc09a9
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 43 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ tab_width = 4
end_of_line = lf
insert_final_newline = true

[*.cs]
# seemingly a bug in `dotnet format`
dotnet_sort_system_directives_first = false
dotnet_separate_import_directive_groups = false

[*.Generated.cs]
generated_code = true
3 changes: 0 additions & 3 deletions Pidgin.Bench/ExpressionBench.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;

using Pidgin.Expression;

using static Pidgin.Parser<char>;

namespace Pidgin.Bench;
Expand Down
2 changes: 0 additions & 2 deletions Pidgin.Bench/JsonBench.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;

using Pidgin.Bench.SpracheParsers;
using Pidgin.Bench.SuperpowerParsers;
using Pidgin.Examples.Json;
Expand Down
1 change: 0 additions & 1 deletion Pidgin.Bench/NumberBench.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;

using BenchmarkDotNet.Attributes;

namespace Pidgin.Bench;
Expand Down
3 changes: 0 additions & 3 deletions Pidgin.Bench/SpracheParsers/SpracheJsonParser.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System.Collections.Generic;
using System.Collections.Immutable;

using Pidgin.Examples.Json;

using Sprache;

using static Sprache.Parse;

namespace Pidgin.Bench.SpracheParsers;
Expand Down
1 change: 0 additions & 1 deletion Pidgin.Bench/StringBench.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics.CodeAnalysis;

using BenchmarkDotNet.Attributes;

namespace Pidgin.Bench;
Expand Down
2 changes: 0 additions & 2 deletions Pidgin.Bench/SuperpowerParsers/SuperpowerJsonParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Collections.Generic;
using System.Collections.Immutable;

using Pidgin.Examples.Json;

using Superpower;
using Superpower.Parsers;

Expand Down
2 changes: 0 additions & 2 deletions Pidgin.Examples/Expression/ExprParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Immutable;

using Pidgin.Expression;

using static Pidgin.Parser;

namespace Pidgin.Examples.Expression;
Expand Down
3 changes: 1 addition & 2 deletions Pidgin.Examples/Json/JsonParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System.Collections.Generic;
using System.Collections.Immutable;

using static Pidgin.Parser<char>;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;

namespace Pidgin.Examples.Json;

Expand Down
3 changes: 1 addition & 2 deletions Pidgin.Examples/Xml/XmlParser.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;

using static Pidgin.Parser<char>;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;

namespace Pidgin.Examples.Xml;

Expand Down
4 changes: 1 addition & 3 deletions Pidgin.Tests/CommentParserTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using Pidgin.Comment;

using Xunit;

using static Pidgin.Parser<char>;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;

namespace Pidgin.Tests;

Expand Down
2 changes: 0 additions & 2 deletions Pidgin.Tests/DocumentationTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;

using Benjamin.Pizza.DocTest;

using Xunit;

namespace Pidgin.Tests;
Expand Down
5 changes: 1 addition & 4 deletions Pidgin.Tests/ExpressionParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

using Pidgin.Expression;

using Xunit;

using static Pidgin.Parser<char>;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;

namespace Pidgin.Tests;

Expand Down
2 changes: 0 additions & 2 deletions Pidgin.Tests/ParseStateTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.IO;
using System.Numerics;

using Pidgin.Configuration;
using Pidgin.TokenStreams;

using Xunit;

namespace Pidgin.Tests;
Expand Down
2 changes: 0 additions & 2 deletions Pidgin.Tests/ResumableTokenStreamTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.IO;

using Pidgin.TokenStreams;

using Xunit;

namespace Pidgin.Tests;
Expand Down
4 changes: 1 addition & 3 deletions Pidgin.Tests/StringParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
using System.Collections.Immutable;
using System.Linq;
using System.Text;

using Xunit;

using static Pidgin.Parser<char>;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;

namespace Pidgin.Tests;

Expand Down
3 changes: 0 additions & 3 deletions Pidgin.Tests/XmlTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System;

using Pidgin.Examples.Xml;

using Xunit;

using Attribute = Pidgin.Examples.Xml.Attribute;

namespace Pidgin.Tests;
Expand Down
1 change: 0 additions & 1 deletion Pidgin/ParseState.ComputeSourcePos.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Runtime.CompilerServices;

Check failure on line 2 in Pidgin/ParseState.ComputeSourcePos.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System' should appear before directive for 'Pidgin.Configuration'
using System.Runtime.InteropServices;

Check failure on line 3 in Pidgin/ParseState.ComputeSourcePos.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System.Runtime.CompilerServices' should appear before directive for 'Pidgin.Configuration'

using Pidgin.Configuration;

Check failure on line 4 in Pidgin/ParseState.ComputeSourcePos.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System.Runtime.InteropServices' should appear before directive for 'Pidgin.Configuration'

namespace Pidgin;
Expand Down
1 change: 0 additions & 1 deletion Pidgin/ParseState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

using Pidgin.Configuration;

namespace Pidgin;
Expand Down
1 change: 0 additions & 1 deletion Pidgin/Parser.Chain.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;

Check failure on line 2 in Pidgin/Parser.Chain.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System' should appear before directive for 'Pidgin.Configuration'

using Pidgin.Configuration;

Check failure on line 3 in Pidgin/Parser.Chain.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System.Diagnostics.CodeAnalysis' should appear before directive for 'Pidgin.Configuration'

namespace Pidgin;
Expand Down
1 change: 0 additions & 1 deletion Pidgin/Parser.Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics.CodeAnalysis;

using Pidgin.Configuration;

Check failure on line 2 in Pidgin/Parser.Configuration.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System.Diagnostics.CodeAnalysis' should appear before directive for 'Pidgin.Configuration'

namespace Pidgin;
Expand Down
2 changes: 0 additions & 2 deletions Pidgin/ParserExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.IO;

Check failure on line 3 in Pidgin/ParserExtensions.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System' should appear before directive for 'Pidgin.TokenStreams'

using Pidgin.Configuration;

Check failure on line 4 in Pidgin/ParserExtensions.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System.Collections.Generic' should appear before directive for 'Pidgin.TokenStreams'
using Pidgin.TokenStreams;

Check failure on line 5 in Pidgin/ParserExtensions.cs

View workflow job for this annotation

GitHub Actions / build / build

Using directive for 'System.IO' should appear before directive for 'Pidgin.TokenStreams'

using Config = Pidgin.Configuration.Configuration;

namespace Pidgin;
Expand Down

0 comments on commit 7dc09a9

Please sign in to comment.