Skip to content

Commit 8198dfb

Browse files
committed
Applied dotnet format
1 parent b9e7044 commit 8198dfb

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

src/DotnetDocument/Configuration/DocumentationOptions.cs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -484,22 +484,28 @@ public class DocumentationOptions
484484
public Dictionary<string, string> Verbs { get; init; } = new()
485485
{
486486
{
487-
"to", "returns"
487+
"to",
488+
"returns"
488489
},
489490
{
490-
"from", "creates"
491+
"from",
492+
"creates"
491493
},
492494
{
493-
"as", "converts"
495+
"as",
496+
"converts"
494497
},
495498
{
496-
"with", "adds"
499+
"with",
500+
"adds"
497501
},
498502
{
499-
"setup", "setup"
503+
"setup",
504+
"setup"
500505
},
501506
{
502-
"main", "main"
507+
"main",
508+
"main"
503509
}
504510
};
505511

@@ -509,7 +515,8 @@ public class DocumentationOptions
509515
public Dictionary<string, string> Aliases { get; init; } = new()
510516
{
511517
{
512-
"sut", "system under test"
518+
"sut",
519+
"system under test"
513520
}
514521
};
515522

src/DotnetDocument/Format/HumanizeFormatter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,44 +131,44 @@ public string FormatMethod(string methodName, string returnType, IEnumerable<str
131131
parametersCount: humanizedParameters.Count())
132132
{
133133
// Method marked with tests attributes
134-
case {test: true}:
134+
case { test: true }:
135135
return options.Method.Summary.TestMethod
136136
.Replace(TemplateKeys.Verb, humanizedMethodName)
137137
.FirstCharToUpper();
138138

139139
// Instance boolean method
140-
case {returns: "bool", @static: false}:
140+
case { returns: "bool", @static: false }:
141141
return options.Method.Summary.Instance.BoolMethod
142142
.Replace(TemplateKeys.Verb, humanizedMethodName)
143143
.FirstCharToUpper();
144144

145145
// Static boolean method
146-
case {returns: "bool", @static: true}:
146+
case { returns: "bool", @static: true }:
147147
return options.Method.Summary.Static.BoolMethod
148148
.Replace(TemplateKeys.Verb, humanizedMethodName)
149149
.FirstCharToUpper();
150150

151151
// One word, 0 params static method
152-
case {wordsCount: 1, parametersCount: 0, @static: true}:
152+
case { wordsCount: 1, parametersCount: 0, @static: true }:
153153
return options.Method.Summary.Static.ZeroArgsOneWordMethod
154154
.Replace(TemplateKeys.Verb, verb)
155155
.FirstCharToUpper();
156156

157157
// One word, 0 params instance method
158-
case {wordsCount: 1, parametersCount: 0, @static: false}:
158+
case { wordsCount: 1, parametersCount: 0, @static: false }:
159159
return options.Method.Summary.Instance.ZeroArgsOneWordMethod
160160
.Replace(TemplateKeys.Verb, verb)
161161
.FirstCharToUpper();
162162

163163
// One word method with params
164-
case {wordsCount: 1, parametersCount: > 0}:
164+
case { wordsCount: 1, parametersCount: > 0 }:
165165
return options.Method.Summary.ManyArgsOneWordMethod
166166
.Replace(TemplateKeys.Verb, verb)
167167
.Replace(TemplateKeys.FirstParam, humanizedParameters.First())
168168
.FirstCharToUpper();
169169

170170
// Multiple words method with params
171-
case {wordsCount: > 1, parametersCount: > 0}:
171+
case { wordsCount: > 1, parametersCount: > 0 }:
172172
return options.Method.Summary.ManyArgsManyWordMethod
173173
.Replace(TemplateKeys.Verb, verb)
174174
.Replace(TemplateKeys.Object, string.Join(" ", words.Skip(1)))

0 commit comments

Comments
 (0)