Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Run argument names #817

Merged
merged 2 commits into from Sep 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/launch.json
Expand Up @@ -51,6 +51,7 @@
"program": "${workspaceFolder}/artifacts/bin/dotnet-format/Debug/netcoreapp2.1/dotnet-format.dll",
"args": [
"format.sln",
"--fix-whitespace",
"--fix-style",
"warn",
"-v",
Expand Down
12 changes: 6 additions & 6 deletions src/Program.cs
Expand Up @@ -40,9 +40,9 @@ private static async Task<int> Main(string[] args)
public static async Task<int> Run(
string? workspace,
bool folder,
bool whitespace,
string? style,
string? analyzers,
bool fixWhitespace,
JoeRobich marked this conversation as resolved.
Show resolved Hide resolved
string? fixStyle,
string? fixAnalyzers,
string? verbosity,
bool check,
string[] include,
Expand Down Expand Up @@ -143,7 +143,7 @@ private static async Task<int> Main(string[] args)
fixType |= FixCategory.Analyzers;
}

if (fixType == FixCategory.None || whitespace)
if (fixType == FixCategory.None || fixWhitespace)
{
fixType |= FixCategory.Whitespace;
}
Expand All @@ -155,8 +155,8 @@ private static async Task<int> Main(string[] args)
workspaceType,
logLevel,
fixType,
codeStyleSeverity: GetSeverity(style ?? FixSeverity.Error),
analyzerSeverity: GetSeverity(analyzers ?? FixSeverity.Error),
codeStyleSeverity: GetSeverity(fixStyle ?? FixSeverity.Error),
analyzerSeverity: GetSeverity(fixAnalyzers ?? FixSeverity.Error),
saveFormattedFiles: !check,
changesAreErrors: check,
fileMatcher,
Expand Down