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

Map new powershell.codeFormatting settings for new rule in PSSA 1.18: PSUseCorrectCasing #845

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add UseCorrectCasing
  • Loading branch information
bergmeister committed Jan 8, 2019
commit 4495823db7cc1884314ae70a9031bd0f26d7fb70
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
public bool WhitespaceAfterSeparator { get; set; }
public bool IgnoreOneLineBlock { get; set; }
public bool AlignPropertyValuePairs { get; set; }
public bool UseCorrectCasing { get; set; }


/// <summary>
Expand Down Expand Up @@ -260,6 +261,9 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
{"Enable", true},
{"CheckHashtable", AlignPropertyValuePairs}
}},
{"PSUseCorrectCasing", new Hashtable {
{"Enable", true}
}},
}}
};
}
Expand Down