Skip to content

Commit 8c321cd

Browse files
Jelte FennemaJelteF
authored andcommitted
Run eclint to apply editorconfig settings in a few more cases
`dotnet format` doesn't apply the editorconfig settings to non C# files, also it seems to skip comments in C# files. This commit addresses the editorconfig settings in those cases.
1 parent ac9b89f commit 8c321cd

18 files changed

+51
-55
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
]
1010
}
1111
}
12-
}
12+
}

CODEOWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# These owners will be the default owners for everything in
22
# the repo. Unless a later match takes precedence,
33
# review when someone opens a pull request.
4-
* @moderakh @mbhaskar @Aniruddh25 @JelteF @seantleonard
5-
4+
* @moderakh @mbhaskar @Aniruddh25 @JelteF @seantleonard

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service.Tests/Cosmos.GraphQL.Service.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.31205.134

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service/Cosmos.GraphQL.Service.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
@@ -10,7 +10,7 @@
1010

1111
<ItemGroup>
1212
<Content Include="schema.gql">
13-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
13+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1414
</Content>
1515
</ItemGroup>
1616

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
44
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
55
</PropertyGroup>
66
<PropertyGroup>
77
<ActiveDebugProfile>Cosmos.GraphQL.Service</ActiveDebugProfile>
88
</PropertyGroup>
9-
</Project>
9+
</Project>

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service/Models/MutationResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public class MutationResolver
1717
transformation : {
1818
"databaseName": "",
1919
"containerName": "",
20-
"parentReferenceField": "authorId"
20+
"parentReferenceField": "authorId"
2121
"referenceFieldMap": "[{"parentField1","referenceFIeld1"},
22-
{"parentField2","referenceFIeld2"}],
22+
{"parentField2","referenceFIeld2"}],
2323
"partitionKeyField": "" //(only for option 2)
2424
}
2525
},

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service/Resolvers/IQueryBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ public interface IQueryBuilder
1515
public string Build(string inputQuery, bool isList);
1616
}
1717
}
18-

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service/Services/CachedMetadataStoreProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public string GetGraphQLSchema()
4848

4949
public MutationResolver GetMutationResolver(string name)
5050
{
51-
// TODO: optimize for if multiple threads ask for the same name same time?
51+
// TODO: optimize for if multiple threads ask for the same name same time?
5252
return _mutationResolvers.GetOrAdd(name, (name) => this._storeProvider.GetMutationResolver(name));
5353

5454
}
5555

5656
public GraphQLQueryResolver GetQueryResolver(string name)
5757
{
58-
// TODO: optimize for if multiple threads ask for the same name same time?
58+
// TODO: optimize for if multiple threads ask for the same name same time?
5959
return _queryResolvers.GetOrAdd(name, (name) => this._storeProvider.GetQueryResolver(name));
6060
}
6161

Cosmos.GraphQL.Service/Cosmos.GraphQL.Service/Services/FileMetadataStoreProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Cosmos.GraphQL.Service
1010
{
1111
/// <summary>
12-
/// Reads GraphQL Schema and resolver config from text files to make available to GraphQL service.
12+
/// Reads GraphQL Schema and resolver config from text files to make available to GraphQL service.
1313
/// </summary>
1414
public class FileMetadataStoreProvider : IMetadataStoreProvider
1515
{
@@ -19,7 +19,7 @@ public class FileMetadataStoreProvider : IMetadataStoreProvider
1919
private string _graphQLSchema;
2020

2121
/// <summary>
22-
/// Stores resolvers contained in configuration file.
22+
/// Stores resolvers contained in configuration file.
2323
/// </summary>
2424
private IDictionary<string, string> _resolvers;
2525

0 commit comments

Comments
 (0)