Skip to content

Cleanup: sort usings - #9283

Merged
Ilya (iSazonov) merged 5 commits into
PowerShell:masterfrom
iSazonov:cleanup-sort-usings
Apr 9, 2019
Merged

Ilya (iSazonov) merged 5 commits into
PowerShell:masterfrom
iSazonov:cleanup-sort-usings

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Apr 3, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

Fix CodeFactor issues by sorting usings in Microsoft.PowerShell.Commands.Utility.

The sorting was done using a VS Code string sort plugin.

PR Context

PR Checklist

@iSazonov Ilya (iSazonov) added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Apr 3, 2019
@iSazonov Ilya (iSazonov) added this to the 6.3.0-preview.1 milestone Apr 3, 2019
@iSazonov Ilya (iSazonov) self-assigned this Apr 3, 2019
@PoshChan

Copy link
Copy Markdown
Collaborator

Ilya (@iSazonov), your last commit had 1 failures in PowerShell-CI-windows
Enter-PSHostProcess tests.By Process Id.Can enter using NamedPipeConnectionInfo

Exception calling "Invoke" with "0" argument(s): "The runspace state is not valid for this operation."
at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\Microsoft.PowerShell.Core\Enter-PSHostProcess.Tests.ps1: line 136
136:                 $ps.AddScript('$pid').Invoke() | Should -Be $pwshId

@iSazonov

Copy link
Copy Markdown
Collaborator Author

PoshChan-Bot (@PoshChan) Please rebuild windows

@PoshChan

Copy link
Copy Markdown
Collaborator

Ilya (@iSazonov), successfully started rebuild of PowerShell-CI-Windows

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Newtonsoft.Json;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't a rule that System namespaces go first?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@iSazonov
Ilya (iSazonov) merged commit aba3bd5 into PowerShell:master Apr 9, 2019
@iSazonov
Ilya (iSazonov) deleted the cleanup-sort-usings branch April 9, 2019 17:45
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants