Commit Graph
1145 Commits
Author SHA1 Message Date
Ilya 91e7298fd8 Use static lambda keyword (#15154) 2021-04-12 12:44:05 -07:00
Ilya fafc38fe5c Enhance Remove-Item to work with OneDrive (#14902) 2021-04-12 09:36:16 -07:00
ZhiZe-ZG a8a7e045d8 Unified comment format (#15114) 2021-04-05 14:11:25 -07:00
James Truher [MSFT]andIlya a520e2c982 Native invocation using ArgumentList (#14692)
Co-authored-by: Ilya <darpa@yandex.ru>
2021-04-01 14:54:10 -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
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 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
xtqqczze 778cff0292 Avoid array allocations from GetDirectories and GetFiles (#14327)
Contributes to PowerShell#14318.
2021-02-16 10:31:02 -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
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 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 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
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 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 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
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
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
Ilya ba49eb225f Optimize IEnumerable variant of replace operator (#14221) 2020-12-09 11:46:27 -08:00
Xavier Hahn 971c428769 Simplify getting Encoding in TranscriptionOption.FlushContentToDisk (#13910) 2020-12-09 11:37:29 -08:00