Skip to content

Commit 481cc90

Browse files
Remove all dependencies (#31) +semver: major
1 parent 13f530e commit 481cc90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1738
-1651
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"isRoot": true,
44
"tools": {
55
"xmldoc2markdown": {
6-
"version": "2.1.0",
6+
"version": "2.1.1",
77
"commands": [
88
"xmldoc2md"
99
]
1010
},
1111
"dotnet-reportgenerator-globaltool": {
12-
"version": "5.1.3",
12+
"version": "5.1.4",
1313
"commands": [
1414
"reportgenerator"
1515
]
1616
}
1717
}
18-
}
18+
}

.editorconfig

Lines changed: 23 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,46 @@
11
###############################
22
# Core EditorConfig Options #
33
###############################
4-
54
root = true
6-
75
# All files
86
[*]
97
indent_style = space
10-
insert_final_newline = true
11-
charset = utf-8
12-
13-
# Code files
14-
[*.{cs,csx,vb,vbx}]
15-
indent_size = 4
168

17-
[*.yml]
9+
# XML project files
10+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
1811
indent_size = 2
1912

20-
[*.json]
13+
# XML config files
14+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
2115
indent_size = 2
2216

17+
# Code files
18+
[*.{cs,csx,vb,vbx}]
19+
indent_size = 4
20+
insert_final_newline = true
21+
charset = utf-8
2322
###############################
2423
# .NET Coding Conventions #
2524
###############################
26-
2725
[*.{cs,vb}]
2826
# Organize usings
2927
dotnet_sort_system_directives_first = true
30-
dotnet_separate_import_directive_groups = false
31-
3228
# this. preferences
3329
dotnet_style_qualification_for_field = true:warning
3430
dotnet_style_qualification_for_property = true:warning
3531
dotnet_style_qualification_for_method = true:warning
3632
dotnet_style_qualification_for_event = true:warning
37-
3833
# Language keywords vs BCL types preferences
3934
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
4035
dotnet_style_predefined_type_for_member_access = true:silent
41-
4236
# Parentheses preferences
4337
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
4438
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
4539
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
4640
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
47-
4841
# Modifier preferences
4942
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
5043
dotnet_style_readonly_field = true:suggestion
51-
5244
# Expression-level preferences
5345
dotnet_style_object_initializer = true:suggestion
5446
dotnet_style_collection_initializer = true:suggestion
@@ -61,63 +53,50 @@ dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
6153
dotnet_style_prefer_auto_properties = true:silent
6254
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
6355
dotnet_style_prefer_conditional_expression_over_return = true:silent
64-
6556
###############################
6657
# Naming Conventions #
6758
###############################
68-
6959
# Style Definitions
7060
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
71-
72-
# Use PascalCase for constant fields
61+
# Use PascalCase for constant fields
7362
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
7463
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
7564
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
7665
dotnet_naming_symbols.constant_fields.applicable_kinds = field
7766
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
7867
dotnet_naming_symbols.constant_fields.required_modifiers = const
79-
8068
###############################
81-
# C# Code Style Rules #
69+
# C# Coding Conventions #
8270
###############################
83-
8471
[*.cs]
8572
# var preferences
8673
csharp_style_var_for_built_in_types = false:warning
87-
csharp_style_var_when_type_is_apparent = true:suggestion
74+
csharp_style_var_when_type_is_apparent = false:warning
8875
csharp_style_var_elsewhere = false:warning
89-
9076
# Expression-bodied members
91-
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
92-
csharp_style_expression_bodied_constructors = when_on_single_line:suggestion
93-
csharp_style_expression_bodied_operators = when_on_single_line:suggestion
94-
csharp_style_expression_bodied_properties = when_on_single_line:suggestion
95-
csharp_style_expression_bodied_indexers = when_on_single_line:suggestion
96-
csharp_style_expression_bodied_accessors = when_on_single_line:suggestion
97-
csharp_style_expression_bodied_lambdas = when_on_single_line:suggestion
98-
99-
# Pattern-matching preferences
77+
csharp_style_expression_bodied_methods = false:silent
78+
csharp_style_expression_bodied_constructors = false:silent
79+
csharp_style_expression_bodied_operators = false:silent
80+
csharp_style_expression_bodied_properties = true:silent
81+
csharp_style_expression_bodied_indexers = true:silent
82+
csharp_style_expression_bodied_accessors = true:silent
83+
# Pattern matching preferences
10084
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
10185
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
102-
10386
# Null-checking preferences
10487
csharp_style_throw_expression = true:suggestion
10588
csharp_style_conditional_delegate_call = true:suggestion
106-
10789
# Modifier preferences
10890
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
109-
11091
# Expression-level preferences
111-
csharp_prefer_braces = true:warning
92+
csharp_prefer_braces = true:silent
11293
csharp_style_deconstructed_variable_declaration = true:suggestion
11394
csharp_prefer_simple_default_expression = true:suggestion
11495
csharp_style_pattern_local_over_anonymous_function = true:suggestion
11596
csharp_style_inlined_variable_declaration = true:suggestion
116-
11797
###############################
11898
# C# Formatting Rules #
11999
###############################
120-
121100
# New line preferences
122101
csharp_new_line_before_open_brace = all
123102
csharp_new_line_before_else = true
@@ -126,12 +105,10 @@ csharp_new_line_before_finally = true
126105
csharp_new_line_before_members_in_object_initializers = true
127106
csharp_new_line_before_members_in_anonymous_types = true
128107
csharp_new_line_between_query_expression_clauses = true
129-
130108
# Indentation preferences
131109
csharp_indent_case_contents = true
132110
csharp_indent_switch_labels = true
133111
csharp_indent_labels = flush_left
134-
135112
# Space preferences
136113
csharp_space_after_cast = false
137114
csharp_space_after_keywords_in_control_flow_statements = true
@@ -144,15 +121,12 @@ csharp_space_around_binary_operators = before_and_after
144121
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
145122
csharp_space_between_method_call_name_and_opening_parenthesis = false
146123
csharp_space_between_method_call_empty_parameter_list_parentheses = false
147-
148124
# Wrapping preferences
149125
csharp_preserve_single_line_statements = true
150126
csharp_preserve_single_line_blocks = true
151-
152-
##################################
153-
# Visual Basic Code Style Rules #
154-
##################################
155-
127+
###############################
128+
# VB Coding Conventions #
129+
###############################
156130
[*.vb]
157131
# Modifier preferences
158132
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[Oo]bj/
66
[Bb]in/
77
packages/
8-
TestResults/
98
out/
109

1110
# globs
@@ -51,4 +50,6 @@ Thumbs.db
5150
/.vs
5251

5352
# test
53+
TestResults/
54+
coverage/
5455
*cobertura.xml

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"preLaunchTask": "build",
99
"program": "${workspaceFolder}/sample/Pokedex/bin/Debug/net6.0/Pokedex.dll",
1010
"args": [
11+
"bulbasaur",
1112
"pikachu"
1213
],
1314
"cwd": "${workspaceFolder}/sample/Pokedex",

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2+
"omnisharp.enableRoslynAnalyzers": true,
3+
"omnisharp.organizeImportsOnFormat": true,
4+
"omnisharp.useModernNet": true,
25
"yaml.format.singleQuote": true
36
}

GraphQL.Query.Builder.sln

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,56 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26124.0
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.1.32407.343
54
MinimumVisualStudioVersion = 15.0.26124.0
65
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{202101BE-DF6E-4893-99DA-F9B8910254F1}"
76
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GraphQL.Query.Builder", "src\GraphQL.Query.Builder\GraphQL.Query.Builder.csproj", "{DA0E8765-8C2D-4E72-A0DE-C3F4DA9BBCED}"
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GraphQL.Query.Builder", "src\GraphQL.Query.Builder\GraphQL.Query.Builder.csproj", "{DA0E8765-8C2D-4E72-A0DE-C3F4DA9BBCED}"
98
EndProject
109
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{6426820E-52EF-437A-B528-18FE939AEB84}"
1110
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GraphQL.Query.Builder.UnitTests", "tests\GraphQL.Query.Builder.UnitTests\GraphQL.Query.Builder.UnitTests.csproj", "{608A2F7E-24F4-474E-8757-2BABEA8AE005}"
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GraphQL.Query.Builder.UnitTests", "tests\GraphQL.Query.Builder.UnitTests\GraphQL.Query.Builder.UnitTests.csproj", "{608A2F7E-24F4-474E-8757-2BABEA8AE005}"
1312
EndProject
1413
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{C48AF4F4-A750-446E-A4C0-91DEDF0E507F}"
1514
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "sample\Models\Models.csproj", "{816F7AF3-EE23-4DE1-BBEB-50510B3898E1}"
15+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Models", "sample\Models\Models.csproj", "{816F7AF3-EE23-4DE1-BBEB-50510B3898E1}"
1716
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pokedex", "sample\Pokedex\Pokedex.csproj", "{3240CA38-D18E-43F4-AA06-5C7FC35E4AA0}"
17+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pokedex", "sample\Pokedex\Pokedex.csproj", "{3240CA38-D18E-43F4-AA06-5C7FC35E4AA0}"
18+
EndProject
19+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{619BB24C-CA4A-4117-86AB-DD1FB2E66C77}"
20+
ProjectSection(SolutionItems) = preProject
21+
.editorconfig = .editorconfig
22+
.gitignore = .gitignore
23+
azure-pipelines.yml = azure-pipelines.yml
24+
generate-documentation.bat = generate-documentation.bat
25+
GitVersion.yml = GitVersion.yml
26+
LICENSE = LICENSE
27+
logo.pdn = logo.pdn
28+
logo.png = logo.png
29+
README.md = README.md
30+
EndProjectSection
31+
EndProject
32+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{E5BDA139-5C76-4260-8FA8-60D306924304}"
33+
ProjectSection(SolutionItems) = preProject
34+
docs\_config.yml = docs\_config.yml
35+
docs\README.md = docs\README.md
36+
EndProjectSection
37+
EndProject
38+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "api", "api", "{AF5F52DB-31E5-4A57-ACBF-1392F9AF3C55}"
39+
ProjectSection(SolutionItems) = preProject
40+
docs\api\graphql.query.builder.iquery-1.md = docs\api\graphql.query.builder.iquery-1.md
41+
docs\api\graphql.query.builder.iquery.md = docs\api\graphql.query.builder.iquery.md
42+
docs\api\graphql.query.builder.iquerystringbuilder.md = docs\api\graphql.query.builder.iquerystringbuilder.md
43+
docs\api\graphql.query.builder.query-1.md = docs\api\graphql.query.builder.query-1.md
44+
docs\api\graphql.query.builder.queryformatters.md = docs\api\graphql.query.builder.queryformatters.md
45+
docs\api\graphql.query.builder.queryoptions.md = docs\api\graphql.query.builder.queryoptions.md
46+
docs\api\graphql.query.builder.querystringbuilder.md = docs\api\graphql.query.builder.querystringbuilder.md
47+
docs\api\index.md = docs\api\index.md
48+
EndProjectSection
49+
EndProject
50+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".config", ".config", "{38907AFF-FAA0-43D0-835C-275BB3E0261A}"
51+
ProjectSection(SolutionItems) = preProject
52+
.config\dotnet-tools.json = .config\dotnet-tools.json
53+
EndProjectSection
1954
EndProject
2055
Global
2156
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,9 +61,6 @@ Global
2661
Release|x64 = Release|x64
2762
Release|x86 = Release|x86
2863
EndGlobalSection
29-
GlobalSection(SolutionProperties) = preSolution
30-
HideSolutionNode = FALSE
31-
EndGlobalSection
3264
GlobalSection(ProjectConfigurationPlatforms) = postSolution
3365
{DA0E8765-8C2D-4E72-A0DE-C3F4DA9BBCED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3466
{DA0E8765-8C2D-4E72-A0DE-C3F4DA9BBCED}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -79,10 +111,19 @@ Global
79111
{3240CA38-D18E-43F4-AA06-5C7FC35E4AA0}.Release|x86.ActiveCfg = Release|Any CPU
80112
{3240CA38-D18E-43F4-AA06-5C7FC35E4AA0}.Release|x86.Build.0 = Release|Any CPU
81113
EndGlobalSection
114+
GlobalSection(SolutionProperties) = preSolution
115+
HideSolutionNode = FALSE
116+
EndGlobalSection
82117
GlobalSection(NestedProjects) = preSolution
83118
{DA0E8765-8C2D-4E72-A0DE-C3F4DA9BBCED} = {202101BE-DF6E-4893-99DA-F9B8910254F1}
84119
{608A2F7E-24F4-474E-8757-2BABEA8AE005} = {6426820E-52EF-437A-B528-18FE939AEB84}
85120
{816F7AF3-EE23-4DE1-BBEB-50510B3898E1} = {C48AF4F4-A750-446E-A4C0-91DEDF0E507F}
86121
{3240CA38-D18E-43F4-AA06-5C7FC35E4AA0} = {C48AF4F4-A750-446E-A4C0-91DEDF0E507F}
122+
{E5BDA139-5C76-4260-8FA8-60D306924304} = {619BB24C-CA4A-4117-86AB-DD1FB2E66C77}
123+
{AF5F52DB-31E5-4A57-ACBF-1392F9AF3C55} = {E5BDA139-5C76-4260-8FA8-60D306924304}
124+
{38907AFF-FAA0-43D0-835C-275BB3E0261A} = {619BB24C-CA4A-4117-86AB-DD1FB2E66C77}
125+
EndGlobalSection
126+
GlobalSection(ExtensibilityGlobals) = postSolution
127+
SolutionGuid = {464DBCD0-E769-4ECD-8217-FCC5ED5C4657}
87128
EndGlobalSection
88129
EndGlobal

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ See sample [here](https://github.com/charlesdevandiere/graphql-query-builder-dot
1616
## Install
1717

1818
```console
19-
> dotnet add package GraphQL.Query.Builder
19+
dotnet add package GraphQL.Query.Builder
2020
```
2121

2222
## Usage
2323

2424
```csharp
2525
// Create the query
26-
var query = new Query<Human>("humans") // set the name of the query
26+
IQuery<Human> query = new Query<Human>("humans") // set the name of the query
2727
.AddArguments(new { id = "uE78f5hq" }) // add query arguments
2828
.AddField(h => h.FirstName) // add firstName field
2929
.AddField(h => h.LastName) // add lastName field
@@ -55,8 +55,3 @@ Console.WriteLine("{" + query.Build() + "}");
5555
// Output:
5656
// {humans(id:"uE78f5hq"){FirstName LastName HomePlanet{Name}Friends FirstName LastName}}
5757
```
58-
59-
## Dependencies
60-
61-
- [Dawn.Guard](https://www.nuget.org/packages/Dawn.Guard/) (>= 1.12.0)
62-
- [Newtonsoft.Json](https://www.nuget.org/packages/GraphQL.Client/) (>= 12.0.3)

azure-pipelines.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ steps:
4646
displayName: 'Publish code coverage'
4747
inputs:
4848
codeCoverageTool: cobertura
49-
summaryFileLocation: '**/Cobertura.xml'
49+
summaryFileLocation: ./tests/coverage/Cobertura.xml
5050

5151
- publish: $(Build.ArtifactStagingDirectory)/out
52-
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
5352
artifact: out
5453
displayName: Publish artifact

0 commit comments

Comments
 (0)