Skip to content

Commit 950e5f2

Browse files
author
Kapil Borle
authored
Merge pull request #757 from PowerShell/kapilmb/fix-align-assignment-rule
Make AlignAssignmentStatement rule available on powershell core
2 parents ec2111c + 20c991e commit 950e5f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Rules/AlignAssignmentStatement.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
2626
#if !CORECLR
2727
[Export(typeof(IScriptRule))]
2828
#endif
29-
class AlignAssignmentStatement : ConfigurableRule
29+
public class AlignAssignmentStatement : ConfigurableRule
3030
{
3131
// We keep this switch even though the rule has only one switch (this) as of now, because we want
3232
// to let the rule be expandable in the future to allow formatting assignments even

Utils/RuleMaker.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
8787
#if !CORECLR
8888
[Export(typeof(IScriptRule))]
8989
#endif
90-
class {0} : IScriptRule
90+
public class {0} : IScriptRule
9191
{{
9292
/// <summary>
9393
/// Analyzes the given ast to find the [violation]
@@ -483,4 +483,4 @@ Function Remove-Rule
483483
}
484484

485485
Export-ModuleMember -Function Add-Rule
486-
Export-ModuleMember -Function Remove-Rule
486+
Export-ModuleMember -Function Remove-Rule

0 commit comments

Comments
 (0)