Skip to content

Add tabbed indentation capability to UseConsistentIndentation rule #790

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 8 commits into from
Jun 20, 2017

Conversation

kapilmb
Copy link

@kapilmb kapilmb commented Jun 20, 2017

Adds a Kind switch to the PSUseConsistentIndentationRule rule which for now takes either space or tab as input. If space input is provided the rule will set 1 unit of indentation as IndentationSize number of spaces otherwise \t.

@@ -6,17 +6,19 @@ Import-Module (Join-Path $testRootDirectory "PSScriptAnalyzerTestHelper.psm1")

$indentationUnit = ' '
$indentationSize = 4
$ruleConfiguration = @{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, looks like you used the formatter to format your formatter test script, nice!

@kapilmb
Copy link
Author

kapilmb commented Jun 20, 2017

thanks @daviwil !

@kapilmb kapilmb merged commit fadcfa6 into development Jun 20, 2017
@kapilmb kapilmb deleted the kapilmb/tab-indentation branch June 20, 2017 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants