Commit Graph
1808 Commits
Author SHA1 Message Date
James Truher [MSFT] 907746cb2e Change signature validation logic to call first without the file content (#14849) 2021-02-23 12:23:16 -08:00
xtqqczze 778cff0292 Avoid array allocations from GetDirectories and GetFiles (#14327)
Contributes to PowerShell#14318.
2021-02-16 10:31:02 -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 887467eb32 Add minimal progress bar using ANSI rendering (#14414) 2021-02-05 10:50:20 -08: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
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
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 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
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
Ilya 65456893bd Avoid string.ToLowerInvariant() from GetEnvironmentVariableAsBool() to avoid loading ICU at startup (#14323) 2021-01-06 10:24:40 -08:00
xtqqczze 9d4665f32f Enable SA1003: Symbols should be spaced correctly (#14476)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md
2020-12-23 21:21:26 +05:00
xtqqczze fd934e08a1 Enable SA1314: Type parameter names should begin with T (#14470)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1314.md
2020-12-23 08:02:22 +05:00
xtqqczze 5f3dd938b7 Use string.Contains(char) overload (#14368) 2020-12-19 20:00:51 +05:00
Steve Lee bc080921bf Add support to $PSStyle for strikethrough and hyperlinks (#14461) 2020-12-19 11:54:51 +05:00
Ilya 10ef7f5161 Fix PSStyle blink codes (#14447) 2020-12-19 11:51:29 +05:00
xtqqczze 669bcd7278 Refactor complex if statement (#14398) 2020-12-16 17:26:47 -08:00
Francesco Saltori ea2da20a23 Get PowerShell version in PSVersionInfo using assembly attribute instead of FileVersionInfo (#14332) 2020-12-11 17:12:10 -08:00
Staffan Gustafsson d487537453 Enable nullable: System.Management.Automation.Provider.IContentCmdletProvider (#14184) 2020-12-12 00:10:28 +05:00
Staffan Gustafsson e364225d99 Enable nullable: System.Management.Automation.IScriptCommandInfo (#14178) 2020-12-12 00:08:34 +05:00
Steve Lee a99ea2acd2 Enable ANSI formatting via $PSStyle and support suppressing ANSI output (#13758) 2020-12-11 10:33:57 -08:00
Staffan Gustafsson c4cc62658a Enable nullable: System.Management.Automation.Interpreter.IBoxableInstruction (#14165) 2020-12-11 11:45:11 +05:00
Staffan Gustafsson 7944cf0873 Enable nullable: System.Management.Automation.Provider.IDynamicPropertyProvider (#14167) 2020-12-11 11:37:02 +05:00
Staffan Gustafsson 76e471c0dd Enable nullable: System.Management.Automation.Language.IScriptExtent (#14179) 2020-12-11 11:35:00 +05:00
Staffan Gustafsson 29131d573c Enable nullable: System.Management.Automation.Language.ICustomAstVisitor2 (#14192) 2020-12-11 11:22:52 +05:00
Staffan Gustafsson 55476817b4 Enable nullable: System.Management.Automation.LanguagePrimitives.IConversionData (#14187) 2020-12-11 11:15:54 +05:00
Staffan Gustafsson 2784add414 Enable nullable: ...Automation.Remoting.Client.IWSManNativeApiFacade (#14186) 2020-12-11 11:09:35 +05:00
Staffan Gustafsson 25cfd2be98 Enable nullable: System.Management.Automation.Language.ISupportsAssignment (#14180) 2020-12-11 11:04:57 +05:00
Staffan Gustafsson e55f940131 Enable nullable: System.Management.Automation.ICommandRuntime2 (#14183) 2020-12-11 11:02:53 +05:00
Staffan Gustafsson 9c75ba8b63 Enable nullable: System.Management.Automation.IOutputProcessingState (#14175) 2020-12-11 10:58:51 +05:00
Staffan Gustafsson ab44bf4ae2 Enable nullable: System.Management.Automation.IJobDebugger (#14174) 2020-12-11 10:53:25 +05:00
Staffan Gustafsson 74d833c214 Enable nullable: System.Management.Automation.Interpreter.IInstructionProvider (#14173) 2020-12-11 10:48:54 +05:00
Staffan Gustafsson 5533e0da29 Enable nullable: System.Management.Automation.IHasSessionStateEntryVisibility (#14169) 2020-12-11 10:46:36 +05:00
Staffan Gustafsson 429125a8f3 Enable nullable: System.Management.Automation.Tracing.IEtwEventCorrelator (#14168) 2020-12-11 10:43:23 +05:00
Joel Sallow (/u/ta11ow) 1223518a43 (#12430) Improve detection of mutable value types (#12495) 2020-12-10 12:34:17 -08:00
Joel Sallow (/u/ta11ow) 16e2b62d78 Ensure -PipelineVariable is set for all output from script cmdlets (#12766) 2020-12-10 12:12:34 -08:00
Travis Plunk 3905cb0beb Make AppLocker Enforce mode take precedence over UMCI Audit mode (#14353) 2020-12-09 13:09:21 -08:00
Staffan Gustafsson 9724293fef Enable nullable: System.Management.Automation.Language.IAstPostVisitHandler (#14164) 2020-12-09 12:33:29 -08:00
Staffan Gustafsson 06b660cb5a Enable nullable: System.Management.Automation.IModuleAssemblyInitializer (#14158) 2020-12-09 12:33:17 -08:00
xtqqczze f74acaa768 Replace GetFiles in TestModuleManifestCommand (#14317) 2020-12-09 11:59:08 -08:00