Commit graph

3940 commits

Author SHA1 Message Date
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
romero126 8e4b0c69fe
Fixed typo with ProxyURINotSupplied (#14526)
Co-authored-by: juromer@microsoft.com <juromer@microsoft.com>
2021-01-01 12:22:39 +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 0991ecf2d4
Fix RCS1139: Add summary element to documentation comment (#14442)
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1139.md
2020-12-22 08:44:30 +05:00
xtqqczze ae06ef1e06
Use String.Split(char) instead of String.Split(String) (#14465) 2020-12-20 11:51:57 +05:00
xtqqczze 5f3dd938b7
Use string.Contains(char) overload (#14368) 2020-12-19 20:00:51 +05:00
xtqqczze 1ab2c0c2bd
Fix IDE0032: UseAutoProperty part 3 (#14443)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0032
2020-12-19 12:01:11 +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
dependabot-preview[bot] 7f3364f5dd
Bump NJsonSchema from 10.3.1 to 10.3.2 (#14451) 2020-12-17 12:07:07 -08:00
xtqqczze 669bcd7278
Refactor complex if statement (#14398) 2020-12-16 17:26:47 -08:00
Travis Plunk 7c03ad61c1
Use one feed in each nuget.config in official builds (#14363)
Co-authored-by: Robert Holt <rjmholt@gmail.com>
2020-12-14 14:16:55 -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
xtqqczze a8213b54b3
Remove redundant local assignment in AclCommands (#14358) 2020-12-10 11:36:48 -08:00