Commit graph

4172 commits

Author SHA1 Message Date
Steve Lee adc236c598
Don't serialize to json ETS properties for DateTime and string types (#15665) 2021-07-12 10:56:33 -07:00
Aditya Patwardhan 6d09c6e40a
Fix CA1846 and CA1845 for using AsSpan instead of Substring (#15738) 2021-07-09 10:55:23 -07:00
xtqqczze 6d08db612e
Use List<T>.RemoveAll to avoid creating temporary list (#15686) 2021-07-07 20:54:44 -07:00
xtqqczze acb4c4acff
Fix HyperVSocketEndPoint.ServiceId setter (#15704) 2021-07-07 16:52:36 +05:00
xtqqczze 03b07a0062
Enable IDE0044: MakeFieldReadonly (#13880)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2021-07-07 09:33:19 +05:00
Konstantin Gukov 8dcd5a2e1c
Use nameof to get parameter names when creating ArgumentNullException (#15604) 2021-07-05 22:04:13 -07:00
xtqqczze 4c2d6dcfca
Make classes sealed (#15675)
Fix [RCS1225](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1225.md)
2021-07-04 16:49:52 +05:00
Steve Lee e6ee841a69
Add @jborean93 to Remoting Working Group (#15683) 2021-07-01 08:57:57 +05:00
Dongbo Wang 14f25c92e7
Test if a command is 'Out-Default' more thoroughly for transcribing scenarios (#15653) 2021-06-28 11:26:14 -07:00
xtqqczze b77bbf8640
Enable CA1812 (#15674)
[CA1812: Avoid uninstantiated internal classes](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1812)
2021-06-27 20:16:17 +05:00
xtqqczze 1e992c5e53
Replace Single with First when we know the element count is 1 (#15676) 2021-06-25 17:19:05 -07:00
xtqqczze 7a39acb527
Skip analyzers for Microsoft.Management.UI.Internal (#15677) 2021-06-25 22:59:26 +05:00
xtqqczze 756aef9a86
Fix CA2243: Attribute string literals should parse correctly (#15622)
* Update V2Cmdlets.csv
2021-06-25 17:59:30 +05:00
xtqqczze a3366b880a
Fix CA1309: Use ordinal StringComparison in CertificateProvider (#14352) 2021-06-25 09:01:59 +05:00
Jason Helmick 170a226689
Add Microsoft.PowerShell.Crescendo to telemetry allow list (#15372) 2021-06-24 12:30:40 -07:00
Steve Lee 375be2e705
Add DetailedView to $ErrorView (#15609) 2021-06-22 13:35:38 -07:00
MartinGC94 77054ff586
Fix splatting being treated as positional parameter (#14623) 2021-06-15 16:56:14 -07:00
Al Idian 6eae114f5a
Correct parameter reference passed to exception (#15580) 2021-06-15 22:29:31 +05:00
Al Idian 7b933d0cc3
Correct and improve XML comments (#15568) 2021-06-15 09:05:21 -07:00
Francesco Saltori a70f915411
Retrieve ProductVersion using informational version attribute in AmsiUtils.Init() (#15527) 2021-06-14 12:04:36 -07:00
Konstantin Gukov da578e5f34
Do not stop powershell when can't create telemetry mutex. (#15574) 2021-06-14 11:59:20 -07:00
dependabot[bot] 83639cb344
Bump Microsoft.CodeAnalysis.CSharp from 3.10.0-3.final to 3.10.0 (#15573) 2021-06-14 11:49:32 -07:00
Steve Lee 9aa9a75cad
Fix retrieving dynamic parameters from provider even if globbed path returns no results (#15525) 2021-06-14 11:09:26 -07:00
Ilya f570029986
Enable nullable: System.Management.Automation.ICommandRuntime (#15566) 2021-06-14 10:57:34 -07:00
Robert Holt 0ae0b65e25
Revert "Enhance Remove-Item to work with OneDrive (Second) (#15260)" (#15546) 2021-06-11 12:32:25 -07:00
Dongbo Wang e2ee8e7e1f
Clean up code regarding AppDomain.CreateDomain and AppDomain.Unload (#15554) 2021-06-10 09:16:05 -07:00
Andrew 6e73c2d4f6
Remove PSDesiredStateConfiguration v2.0.5 module (#15536)
* No longer include module with PS releases

* Updated assets/wix/files.wxs

* Moving tests out of the ps repo

* Debug 1

* Debug 2
2021-06-09 12:15:46 -07:00
Dongbo Wang 4aaed08955
Ignore all exceptions when disposing an instance of a subsystem implementation (#15511) 2021-06-07 09:59:24 -07:00
dinhngtu ea19ceac4a
Wait for SSH exit when closing remote connection (#14635) 2021-06-03 13:19:11 -07:00
Ikko Ashimine 6018d6b183
Fix typo in FileSystemProvider.cs (#15445) 2021-06-03 13:15:32 -07:00
Francesco Saltori 088eb6d039
Replace ProcessModule.FileName with Environment.ProcessPath and remove PSUtils.GetMainModule (#15012) 2021-06-03 12:32:55 -07:00
Robert Holt 50d850740b
Add PipelineStoppedException notes to PowerShell API (#15324) 2021-06-03 12:27:41 -07:00
dependabot[bot] 303cf518a0
Bump NJsonSchema from 10.4.3 to 10.4.4 (#15459)
Bumps NJsonSchema from 10.4.3 to 10.4.4.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 14:03:44 -07:00
Staffan Gustafsson 6361141f8e
Enable nullable: System.Management.Automation.IDispatch (#14185) 2021-05-26 11:08:27 +05:00
Aditya Patwardhan 7ead137407
Update to .NET Preview 6 SDK (#15452) 2021-05-25 19:24:28 -07:00
MartinGC94 2fc3826dd3
Add completions for comment-based help keywords (#15337) 2021-05-25 13:36:53 -07:00
dependabot[bot] 058d03dadf
Bump NJsonSchema from 10.4.3 to 10.4.4 (#15385)
Bumps NJsonSchema from 10.4.3 to 10.4.4.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 18:14:15 -07:00
Andrew 8d017d8a75
Move cross platform DSC code to a subsystem (#15127) 2021-05-20 17:06:59 -07:00
Dongbo Wang 5febcad3db
Update prediction interface to provide additional feedback to a predictor plugin (#15421) 2021-05-20 15:52:13 -07:00
Staffan Gustafsson e927e94aed
Enable nullable: Microsoft.PowerShell.Commands.IRegistryWrapper (#14177) 2021-05-20 12:46:03 +05:00
Staffan Gustafsson 562f4f3d1a
Enable nullable: System.Management.Automation.IResourceSupplier (#14159) 2021-05-19 22:11:52 +05:00
Staffan Gustafsson 91b2904ca7
Enable nullable: System.Management.Automation.Language.ICustomAstVisitor (#14191) 2021-05-19 08:48:49 +05:00
Staffan Gustafsson 6d4420f4b9
Enable nullable: System.Management.Automation.Provider.ISecurityDescriptorCmdletProvider (#14162) 2021-05-18 21:46:00 +05:00
Staffan Gustafsson 94aa68d30f
Enable nullable: System.Management.Automation.Provider.ICmdletProviderSupportsHelp (#14150) 2021-05-18 21:09:00 +05:00
Staffan Gustafsson 77f25bf2a7
Enable nullable: System.Management.Automation.IDynamicParameters (#14153) 2021-05-18 20:58:39 +05:00
Staffan Gustafsson c547ccd478
Enable nullable: System.Management.Automation.Interpreter.ILightCallSiteBinder (#14156) 2021-05-18 20:57:27 +05:00
Staffan Gustafsson e2364b78b5
Enable nullable: System.Management.Automation.Language.IScriptPosition (#14161) 2021-05-18 20:55:29 +05:00
Staffan Gustafsson 64fb8c2311
Enable nullable: System.Management.Automation.IInspectable (#14155) 2021-05-18 19:53:21 +05:00
xtqqczze 5abb90f21a
Avoid allocation in LanguagePrimitives.UpdateTypeConvertFromTypeTable (#15168) 2021-05-17 11:01:07 -07:00
Steve Lee 364e74a00a
Fix Minimal progress view to handle Activity that is longer than console width (#15264) 2021-05-17 09:54:37 -07:00
Steve Lee 38d582f038
Handle exception if ConsoleHost tries to set cursor out of bounds because screen buffer changed (#15380) 2021-05-14 11:05:49 -07:00
Andrew ae772462a5
Fix NullReferenceException in DSC ClearCache() (#15373) 2021-05-12 13:30:43 -07:00
dependabot[bot] 0dcb3a06dd
Bump NJsonSchema from 10.4.1 to 10.4.3 (#15368)
Bumps NJsonSchema from 10.4.1 to 10.4.3.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 10:41:24 -07:00
Dongbo Wang b16dac7ecb
Avoid collecting logs in buffer if a pipeline execution event is not going to be logged (#15350) 2021-05-10 13:10:25 -07:00
Dan Thompson 32a38fcac3
Update ControlSequenceLength to handle colon as a VT parameter separator (#14942) 2021-05-06 09:24:33 -07:00
Staffan Gustafsson efdc500ba5
Annotate ThrowTerminatingError with DoesNotReturn attribute (#15352) 2021-05-06 09:23:34 -07:00
dbaileyut 97ce36ac7f
Update StopTranscriptCmdlet.cs summary comment (#15349) 2021-05-06 08:56:55 +05:00
PRASOON KARUNAN V 15bb767a74
Remove alias d for the -Directory parameter from Get-ChildItem (#15171) 2021-05-05 17:23:09 -07:00
Andrew e0a4855976
Fix the build when using PSDesiredStateConfiguration module from PS Gallery (#15355) 2021-05-05 15:37:06 -07:00
Staffan Gustafsson f38c97e4f4
Enable nullable for System.Management.Automation.Language.IAssignableValue (#14163) 2021-05-05 11:28:32 -07:00
MartinGC94 5d8336adf5
Fix tab completion for un-localized about topics (#15265) 2021-05-05 11:24:40 -07:00
Paul Higinbotham a95b2cb17f
Remove unneeded SSH standard handle workaround (#15308) 2021-04-30 09:35:55 -07:00
Dongbo Wang a62c9d9443
Add the performance benchmark project for PowerShell performance testing (#15242) 2021-04-30 09:34:26 -07:00
Marc-André Moreau 8f8ddc3fb7
Add LoadAssemblyFromNativeMemory function to load assemblies from memory in a native PowerShell host (#14652) 2021-04-28 14:28:41 -07:00
xtqqczze 59715d5ba9
Use List.ConvertAll instead of LINQ (#15140) 2021-04-27 14:17:12 -07:00
Ilya 08e731398c
Enhance Remove-Item to work with OneDrive (Second) (#15260) 2021-04-27 12:31:12 -07:00
Steve Lee 1df4236e6c
Kill native processes in pipeline when pipeline is disposed on Unix (#15287) 2021-04-26 15:10:35 -07:00
Steve Lee fc1d5ef096
Default to MTA on Windows platforms where STA is not supported (#15106) 2021-04-22 08:38:13 -07:00
Staffan Gustafsson b5e41e2587
Enable nullable for System.Management.Automation.Language.ITypeName (#14181) 2021-04-20 09:42:03 -04:00
Brandon Wood 4d702e010d
Use GetValueOrDefault() for nullable PSLanguageMode (#13849) 2021-04-19 08:41:39 -04:00
Travis Plunk 720c615d04
Revert "Enhance Remove-Item to work with OneDrive (#14902)" (#15253)
This reverts commit fafc38fe5c.
2021-04-16 13:43:11 -07:00
xtqqczze a562fa6bd8
Enable SA1008 Opening parenthesis should be spaced correctly (#14242) 2021-04-16 13:33:02 -04:00
Staffan Gustafsson 1feed0671a
Enable nullable for System.Management.Automation.Tracing.IMethodInvoker (#14157) 2021-04-16 13:25:15 -04:00
Staffan Gustafsson b2d2541d87
Enable nullablE for System.Management.Automation.Provider.IContentReader (#14151) 2021-04-16 13:23:49 -04:00
xtqqczze 4e073fdd3f
Avoid array allocations from GetDirectories/GetFiles. (#15167) 2021-04-15 08:16:26 +05:00
MartinGC94 55d12ee76c
Add completion for Requires statements (#14596) 2021-04-14 10:26:48 -07:00
Aditya Patwardhan 4a7bea0082
Update .NET to 6.0.0-preview.3 (#15221) 2021-04-13 15:45:15 -07:00
Paul Higinbotham 046e0fea03
Fix SSH remoting connection hang with misconfigured endpoint (#15175) 2021-04-13 15:36:36 -07:00
David Bar-On 20d917c086
Fix issue #12013 - not allow mixed dash and slash in command line parameter prefix (#15142) 2021-04-13 13:20:28 -07:00
Steve Lee 2f3f39906f
resolve merge conflict (#14969) 2021-04-12 20:11:50 -07:00
Steve Lee 44d5ce9e01
Use ProgressView.Classic if Virtual Terminal is not supported (#15048) 2021-04-12 16:40:29 -07:00
krishnayalavarthi 8a3e02dcf7
get-counter issue with -computer parameter (#15166)
* get-counter issue fixed

* Update src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs

Co-authored-by: Krishna Yalavarthi <kryalava@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2021-04-12 14:16:31 -07:00
xtqqczze a6abf16941
Add SecureStringHelper.FromPlainTextString (#14124) 2021-04-12 14:05:20 -07:00
Ilya 91e7298fd8
Use static lambda keyword (#15154) 2021-04-12 12:44:05 -07:00
Steve 8f5ae72f5d
Fix redundant iteration while splitting lines (#14851) 2021-04-12 10:23:12 -07:00
Ilya fafc38fe5c
Enhance Remove-Item to work with OneDrive (#14902) 2021-04-12 09:36:16 -07:00
xtqqczze be9b14a296
Remove unnecessary Array -> List -> Array conversion in ProcessBaseCommand.AllProcesses (#15052) 2021-04-12 09:24:41 -07:00
dependabot[bot] 637912e050
Bump NJsonSchema from 10.4.0 to 10.4.1 (#15190)
Bumps NJsonSchema from 10.4.0 to 10.4.1.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-10 09:50:03 -07:00
PRASOON KARUNAN V 837c3e8f42
Change minimum depth to 0 for ConvertTo-Json (#14830)
* Make Depth default value to 0

* updating as per review comment
2021-04-08 12:53:32 -07:00
ZhiZe-ZG a8a7e045d8
Unified comment format (#15114) 2021-04-05 14:11:25 -07:00
James Truher [MSFT] a520e2c982
Native invocation using ArgumentList (#14692)
Co-authored-by: Ilya <darpa@yandex.ru>
2021-04-01 14:54:10 -07:00
Steve Lee cf6876e716
Allow Set-Clipboard to accept empty string (#14579) 2021-04-01 13:03:19 -07:00
Steve Lee c008e3e930
Turn on and off DECCKM to modify keyboard mode for Unix native commands to work correctly (#14943) 2021-04-01 13:01:31 -07:00
xtqqczze e92201779d
Enable SA1001: Commas should be spaced correctly (#14171) 2021-03-30 15:17:17 -07:00
Staffan Gustafsson be7d36603d
Adding IArgumentCompleterFactory for parameterized ArgumentCompleters (#12605) 2021-03-25 17:06:40 -07:00
Steve Lee 5d0dadf19d
Fallback to CopyAndDelete() when MoveTo() fails due to an IOException (#15077) 2021-03-25 15:11:17 -07:00
dependabot[bot] 44d450ae0e
Bump NJsonSchema from 10.3.11 to 10.4.0 (#15092)
Bumps NJsonSchema from 10.3.11 to 10.4.0.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 14:59:18 -07:00
xtqqczze b9f378d967
Refactor MultipleServiceCommandBase.AllServices (#15053) 2021-03-23 10:44:43 -07:00
dependabot[bot] d90b979534
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 (#15084)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 10:25:14 -07:00
Travis Plunk f1b8798264
Move bypass execution policy check after AppLocker Deny check (#15035) 2021-03-22 11:25:01 -07:00
dependabot[bot] 7fd65eada3
Bump NJsonSchema from 10.3.10 to 10.3.11 (#14965)
Bumps NJsonSchema from 10.3.10 to 10.3.11.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-17 11:25:02 -07:00
Aditya Patwardhan 4c40ab1140
Bump Microsoft.PowerShell.Native to 7.2.0-preview.1 (#15030) 2021-03-15 11:34:02 -07:00
Aditya Patwardhan 5c4a80e2e2
Update .NET to version 6.0.100-preview.2.21155.3 (#15007) 2021-03-15 11:22:40 -07:00
Steve Lee c9d65061af
Add UseOSCIndicator setting to enable progress indicator in terminal (#14927) 2021-03-11 17:29:17 -08:00
Steve Lee cbd97d0cab
Re-enable VT mode on Windows after running command in ConsoleHost (#14413) 2021-03-09 16:02:16 -08:00
Steve Lee 22b3653bf4
Fix Move-Item for FileSystemProvider to use copy-delete instead of move for DFS paths (#14913) 2021-03-08 15:01:31 -08:00
Steve Lee d9da234cdf
Fix PromptForCredential() to add targetName as domain (#14504) 2021-03-08 10:52:02 -08:00
Mariano Alipi ae5a84ea05
Move misplaced test file to tests directory (#14908) 2021-03-08 23:51:38 +05:00
Steve Lee 597bfc9696
Update Concise ErrorView to not show line information for errors from script module functions (#14912) 2021-03-08 23:37:11 +05:00
dependabot[bot] c517f7e087
Bump Microsoft.CodeAnalysis.CSharp from 3.9.0-3.final to 3.9.0 (#14934)
Bumps [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn) from 3.9.0-3.final to 3.9.0.
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/master/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits/v3.9.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-08 10:30:05 -08:00
dependabot[bot] 631e96af4c
Bump NJsonSchema from 10.3.9 to 10.3.10 (#14933)
Bumps NJsonSchema from 10.3.9 to 10.3.10.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-04 14:42:19 -08:00
Henry Buckle 9aede0558a
Remove the 32,767 character limit on the environment block for Start-Process (#14111) 2021-03-02 15:05:55 -08:00
Brian Lalonde c5955a5c0d
#4750 Fix Get-Date -UFormat %G and %g behavior (#14555) 2021-03-01 16:37:15 -08:00
dependabot[bot] 79f351ca29
Bump NJsonSchema from 10.3.8 to 10.3.9 (#14926)
Bumps NJsonSchema from 10.3.8 to 10.3.9.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-01 16:28:27 -08:00
dependabot-preview[bot] 3ded3198c9
Bump Microsoft.ApplicationInsights from 2.16.0 to 2.17.0 (#14847)
Bumps [Microsoft.ApplicationInsights](https://github.com/Microsoft/ApplicationInsights-dotnet) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/Microsoft/ApplicationInsights-dotnet/releases)
- [Changelog](https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/Microsoft/ApplicationInsights-dotnet/compare/2.16.0...2.17.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-25 14:48:21 -08:00
dependabot[bot] e475e5382d
Bump NJsonSchema from 10.3.7 to 10.3.8 (#14896)
Bumps NJsonSchema from 10.3.7 to 10.3.8.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-24 09:32:51 -08:00
James Truher [MSFT] 907746cb2e
Change signature validation logic to call first without the file content (#14849) 2021-02-23 12:23:16 -08:00
dependabot-preview[bot] 1426442fef
Bump NJsonSchema from 10.3.6 to 10.3.7 (#14855)
Bumps NJsonSchema from 10.3.6 to 10.3.7.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-19 16:42:41 -08:00
dependabot-preview[bot] 59e5d67457
Bump NJsonSchema from 10.3.5 to 10.3.6 (#14818)
Bumps NJsonSchema from 10.3.5 to 10.3.6.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-16 17:26:50 -08:00
xtqqczze 778cff0292
Avoid array allocations from GetDirectories and GetFiles (#14327)
Contributes to PowerShell#14318.
2021-02-16 10:31:02 -08:00
dependabot-preview[bot] d255cc6d7e
Bump NJsonSchema from 10.3.4 to 10.3.5 (#14807) 2021-02-16 09:43:51 -08:00
Travis Plunk 0fffdf58ab
Don't write possible secrets to verbose stream for web cmdlets (#14788) 2021-02-15 11:15:11 -08:00
Aditya Patwardhan b836de8223
Bump .NET framework to 6.0.0-preview.1 (#14719) 2021-02-08 17:13:33 -08:00
Steve Lee 6d7fbed02b
Suppress Write-Progress in ConsoleHost if output is redirected and fix tests (#14716) 2021-02-08 09:42:53 -08:00
dependabot-preview[bot] 6ad5f65e18
Bump NJsonSchema from 10.3.3 to 10.3.4 (#14714)
Bumps NJsonSchema from 10.3.3 to 10.3.4.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-06 11:57:15 +05:00
Steve Lee 887467eb32
Add minimal progress bar using ANSI rendering (#14414) 2021-02-05 10:50:20 -08:00
Steve Lee c3fa70380c
Fix webcmdlets to properly construct URI from body when using -NoProxy (#14673) 2021-02-05 08:06:04 +05:00
Dongbo Wang e803d3bc8d
Update the ICommandPredictor to provide more feedback and also make feedback easier to be corelated (#14649) 2021-02-04 15:34:17 -08:00
Brian Lalonde 61fea6c342
#4750 Fix Get-Date -UFormat %u behavior (#14549)
Corrects a behavior of %u in Get-Date -UFormat to match ISO 8601.
2021-02-04 08:10:31 +05:00
Steve Lee 8e7780860e
Reset color after writing Verbose, Debug, and Warning message (#14698) 2021-02-03 09:39:54 -08:00
Paul Higinbotham 0039807082
Fix using variable for nested foreach parallel calls (#14548) 2021-02-02 15:34:08 -08:00
Andrew 8e3c3e04f8
Cross-platform updates to DSC code in PowerShell (#13399) 2021-02-02 14:47:53 -08:00
Steve Lee ec5a77653c
When formatting, if collection is modified, don't fail the entire pipeline (#14438) 2021-01-27 16:37:36 -08:00
dependabot-preview[bot] 9dafad3003
Bump NJsonSchema from 10.3.2 to 10.3.3 (#14619)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.3.2 to 10.3.3.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-23 10:59:57 -08:00
xtqqczze 68821932c5
Fix RCS1215: Expression is always equal to true/false (#14356)
* Fix RCS1215: Expression is always equal to true/false
2021-01-19 16:03:59 +05:00
MartinGC94 e26d7084e2
Improve completion of parameters for attributes (#14525) 2021-01-14 09:30:15 +05:00
xtqqczze 9ea718f171
Enable CA2249: Consider using String.Contains instead of IndexOf (#14395)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2249
2021-01-10 18:15:02 +05:00
xtqqczze 8315515494
Avoid array allocations from GetDirectories/GetFiles. (#14326) 2021-01-10 18:09:26 +05:00
Jake d3f7ba9f95
Write proper error messages for Get-Command ' ' (#13564) 2021-01-10 18:03:05 +05:00
Staffan Gustafsson 7bbe18ea86
Enable nullable: System.Management.Automation.IRSPDriverInvoke (#14160) 2021-01-09 20:50:04 +05:00
xtqqczze 3c7f4b573e
Fix IDE0090: Simplify new expression part 7 (#14341)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2021-01-09 12:46:13 +05:00
xtqqczze b7a431a442
Fix SA1504: All accessors should be single-line or multi-lin (#14241)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1504.md
2021-01-09 12:44:38 +05:00
xtqqczze bb55515717
Fix SA1119 part 1 (#14204) 2021-01-09 12:41:51 +05:00
Staffan Gustafsson e6492f9169
Enable nullable: System.Management.Automation.Host.IHostUISupportsMultipleChoiceSelection (#14172) 2021-01-09 12:40:02 +05:00
xtqqczze 4480ee521e
Enable nullable: System.Management.Automation.Language.ISupportsTypeCaching (#14088) 2021-01-09 12:35:42 +05:00
Staffan Gustafsson 4c8df5c1de
Enable nullable: System.Management.Automation.Tracing.IEtwActivityReverter (#14154) 2021-01-09 12:22:37 +05:00
Staffan Gustafsson 33ce47464e
Enable nullable: System.Management.Automation.IContainsErrorRecord (#14166) 2021-01-09 12:20:03 +05:00
xtqqczze 50fd950920
Enable CA1052: Static holder types should be Static or NotInheritable (#14483)
* Enable CA1052: Static holder types should be Static or NotInheritable

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/CA1052

* Fix SA1505

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md
2021-01-08 22:53:11 +05:00
xtqqczze 89c2ad3e21
Enable IDE0077: LegacyFormatSuppressMessageAttribute (#14495)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0077
2021-01-07 14:48:49 +05:00
Ilya 65456893bd
Avoid string.ToLowerInvariant() from GetEnvironmentVariableAsBool() to avoid loading ICU at startup (#14323) 2021-01-06 10:24:40 -08:00