Skip to content

Make AlignAssignmentStatement rule available on powershell core #757

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

Merged
merged 2 commits into from
May 9, 2017
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Rules/AlignAssignmentStatement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
#if !CORECLR
[Export(typeof(IScriptRule))]
#endif
class AlignAssignmentStatement : ConfigurableRule
public class AlignAssignmentStatement : ConfigurableRule
{
// We keep this switch even though the rule has only one switch (this) as of now, because we want
// to let the rule be expandable in the future to allow formatting assignments even
Expand Down
4 changes: 2 additions & 2 deletions Utils/RuleMaker.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
#if !CORECLR
[Export(typeof(IScriptRule))]
#endif
class {0} : IScriptRule
public class {0} : IScriptRule
{{
/// <summary>
/// Analyzes the given ast to find the [violation]
Expand Down Expand Up @@ -483,4 +483,4 @@ Function Remove-Rule
}

Export-ModuleMember -Function Add-Rule
Export-ModuleMember -Function Remove-Rule
Export-ModuleMember -Function Remove-Rule