Commit graph

8535 commits

Author SHA1 Message Date
Aditya Patwardhan 600b658990
Use Microsoft.PowerShell.MarkdownRender package from nuget.org (#14090) 2020-12-09 12:29:45 -08:00
xtqqczze f74acaa768
Replace GetFiles in TestModuleManifestCommand (#14317) 2020-12-09 11:59:08 -08:00
Staffan Gustafsson cb13c30467
Enable nullable: System.Management.Automation.Provider.IContentWriter (#14152) 2020-12-09 11:57:43 -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
xtqqczze 41ab20cce3
Mark applicable structs as readonly and use in-modifier (#13919) 2020-12-09 11:36:48 -08:00
Staffan Gustafsson 817e6b044b
Enable nullable: System.Management.Automation.IArgumentCompleter (#14182) 2020-12-09 11:13:26 -08:00
Steve Lee 95ce0643c8
Add -SkipLimitCheck switch to Import-PowerShellDataFile (#13672) 2020-12-09 11:07:07 -08:00
xtqqczze aecada3e67
Enable CA1822: Mark private members as static (#13897) 2020-12-09 11:04:23 -08:00
xtqqczze bb78d4b5c0
Fix IDE0090: Simplify new expression part 6 (#14338)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-12-09 08:52:00 +05:00
krishnayalavarthi b007952f74
Restrict New-Object in NoLanguage mode under lock down #14139 (#14140) 2020-12-08 14:45:38 -08:00
xtqqczze dd4e5c7ba8
Refactor multiply operation for better performance in 2 Commands.Utility functions (#14148) 2020-12-08 13:59:10 -08:00
Robert Holt 7b59040ffb
Fix example nuget.config (#14349) 2020-12-08 12:42:20 -08:00
Kyle H 909ca89be9
The -Stream parameter now works with directories (#13941) 2020-12-07 17:31:55 -08:00
xtqqczze 86ca45681d
Avoid array allocations from GetDirectories/GetFiles. (#14328) 2020-12-07 15:20:58 -08:00
Travis Plunk 09cc338789
Move macOS and nuget to esrp signing (#14324) 2020-12-07 12:11:54 -08:00
Dongbo Wang 1b7aa0a5d5
Fix nuget packaging to scrub NullableAttribute (#14344) 2020-12-07 11:24:12 -08:00
xtqqczze e35668ca0a
Avoid array allocations from GetDirectories/GetFiles. (#14330) 2020-12-07 16:11:03 +05:00
Ilya ea3036dc6d
Use Environment.TickCount64 instead of Datetime.Now as the random seed for AppLocker test file content (#14283) 2020-12-04 09:24:42 -08:00
dependabot-preview[bot] 18b50e80ef
Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.8.3 (#14310)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.0 to 16.8.3.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.8.0...v16.8.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-04 16:42:27 +05:00
xtqqczze 75b5813f84
Fix RCS1188: Remove redundant auto-property initialization part 2 (#14262)
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1188.md
2020-12-04 16:31:57 +05:00
Ilya 927d20aec2
Fix a broken link in Code Guidelines doc (#14314) 2020-12-03 22:42:35 -08:00
xtqqczze d47864d4de
Avoid unnecessary array allocations when searching in GAC (#14291) 2020-12-03 14:35:25 -08:00
Ilya 03f40a0078
Use OrdinalIgnoreCase in CommandLineParser (#14303) 2020-12-03 14:34:00 -08:00
Ilya 2804576840
Avoid an exception if file system does not support reparse points (#13634) 2020-12-03 11:24:49 -08:00
Staffan Gustafsson 99e527bc0a
Enable nullable: System.Management.Automation.Host.IHostSupportsInteractiveSession (#14170) 2020-12-03 09:19:24 -08:00
Staffan Gustafsson f91b620fde
Enable nullable: System.Management.Automation.Provider.IPropertyCmdletProvider (#14176) 2020-12-03 09:18:40 -08:00
Ilya 548e939894
Use StringComparison.Ordinal insted of StringComparison.CurrentCulture (#14298) 2020-12-02 13:35:29 -08:00
dependabot-preview[bot] 3b49c139e9
Bump Markdig.Signed from 0.22.0 to 0.22.1 (#14305)
Bumps [Markdig.Signed](https://github.com/lunet-io/markdig) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/lunet-io/markdig/releases)
- [Changelog](https://github.com/lunet-io/markdig/blob/master/changelog.md)
- [Commits](https://github.com/lunet-io/markdig/compare/0.22.0...0.22.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-02 21:03:49 +05:00
xtqqczze e0cda04d86
Fix IDE0090: Simplify new expression part 5 (#14301)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-12-02 09:52:05 +05:00
xtqqczze 18717c529b
Enable IDE0075: SimplifyConditionalExpression (#14078)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0075
2020-12-02 08:25:56 +05:00
xtqqczze 02ae54726e
Remove unnecessary usings part 9 (#14288)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
2020-12-01 08:20:11 +05:00
xtqqczze 00c70f9b62
Fix StyleCop and MarkdownLint CI failures (#14297)
* Update link to xunit docs
* Upgrade StyleCopAnalyzers to v1.2.0-beta.261
2020-11-30 12:51:48 -08:00
xtqqczze db94377b3a
Enable SA1000: Keywords should be spaced correctly (#13973)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md
2020-11-30 22:13:12 +05:00
xtqqczze 0fd914fee1
Fix RCS1188: Remove redundant auto-property initialization part 1 (#14261)
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1188.md
2020-11-27 13:17:38 +05:00
xtqqczze 8d4869372e
Mark private members as static part 10 (#14235)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-27 13:16:31 +05:00
xtqqczze c909541b77
Mark private members as static part 9 (#14234)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-27 13:10:43 +05:00
xtqqczze 908cf899e1
Fix SA1642 for Microsoft.Management.Infrastructure.CimCmdlets (#14239)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1642.md
2020-11-27 13:07:58 +05:00
xtqqczze dc9ecd9a85
Use AsSpan/AsMemory slice constructor (#14265)
* Use AsSpan slice constructor

* Use AsMemory slice constructor
2020-11-27 13:05:41 +05:00
xtqqczze 1de0b64bc9
Fix IDE0090: Simplify new expression part 4.6 (#14260)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-27 08:20:36 +05:00
xtqqczze edb70b1992
Fix IDE0090: Simplify new expression part 4.5 (#14259)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-27 08:17:15 +05:00
xtqqczze 9b3684186e
Fix IDE0090: Simplify new expression part 4.3 (#14257)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-27 08:15:37 +05:00
xtqqczze 9272c5b51c
Fix IDE0090: Simplify new expression part 4.2 (#14256)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-27 08:13:30 +05:00
xtqqczze 9f1f676207
Fix IDE0090: Simplify new expression part 2 (#14200)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-26 10:43:29 +05:00
xtqqczze 3c1261f90d
Enable SA1643: Destructor summary documentation should begin with standard text (#14236)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1643.md
2020-11-26 10:39:27 +05:00
xtqqczze 2f6d0ac610
Fix IDE0090: Simplify new expression part 4.4 (#14258)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-26 10:38:27 +05:00
xtqqczze b5fc2f34e4
Use xml documentation child blocks correctly (#14249) 2020-11-26 10:36:23 +05:00
xtqqczze 17b3375eea
Fix IDE0090: Simplify new expression part 4.1 (#14255)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090
2020-11-26 10:35:16 +05:00
xtqqczze d5b0264374
Use consistent spacing in xml documentation tags (#14231) 2020-11-25 22:58:52 +05:00
xtqqczze 0d1ea73e59
Enable IDE0074: Use coalesce compound assignment (#13396)
* Autofix IDE0074: Use compound assignment
2020-11-25 17:37:01 +05:00