Skip to content

feature request for formatting rule to have an empty line after brace #1679

Open
@t3mi

Description

@t3mi

Summary of the new feature
This is a proposal to add additional formatting rule to have an empty line after brace to keep code more readable with OTBS scheme. It's a separate rule comparing to inserting a new line.

Current behaviour:

...
foreach ($account in $Permissions.Keys) {
    foreach ($permission in $Permissions[$account].Keys) {
        foreach ($folder in $Permissions[$account][$permission]) {
            cNtfsPermissionEntry $folder {
                Ensure                   = 'Present'
                Path                     = $folder
                Principal                = $account
                AccessControlInformation = @(
                    cNtfsAccessControlInformation {
                        FileSystemRights  = $permission
                    }
                )
            }
        }
    }
}
...

Proposed behaviour:

...
foreach ($account in $Permissions.Keys) {

    foreach ($permission in $Permissions[$account].Keys) {

        foreach ($folder in $Permissions[$account][$permission]) {

            cNtfsPermissionEntry $folder {
                Ensure                   = 'Present'
                Path                     = $folder
                Principal                = $account
                AccessControlInformation = @(
                    cNtfsAccessControlInformation {
                        FileSystemRights  = $permission
                    }
                )
            }
        }
    }
}
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions