Commit graph

2238 commits

Author SHA1 Message Date
xtqqczze d92984106a
Enable SA1507: Code should not contain multiple blank lines in a row (#14136)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md
2020-11-20 16:17:45 +05:00
xtqqczze f14c76aab9
Enable SA1516: Elements should be separated by blank line (#14137)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1516.md
2020-11-20 16:11:36 +05:00
xtqqczze 44a701fb51
Add StyleCop.Analyzers package (#13963)
* Add StyleCop.Analyzers with all rules disabled

* Downgrade to 1.2.0-beta.205

* Enable SA1518: Use line endings correctly at end of file

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md
2020-11-18 23:13:09 +05:00
James Truher [MSFT] 9ca6be1d63
Revert "Update hyperlink for DefaultPromptFunctionText (#13176)" (#14107) 2020-11-17 09:50:59 -08:00
xtqqczze 006fe4d2dd
Enable IDE0082: ConvertTypeOfToNameOf (#14042)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0082
2020-11-16 19:56:07 +05:00
xtqqczze e7232b89c9
Fix PriorityAttribute name (#14094)
Fix regression after #13496
2020-11-15 16:31:50 +05:00
Ilya d9090b4a49
Write better error message if config file is broken (#13496) 2020-11-13 17:22:26 -08:00
Christopher Yeleighton f13d27ba3e
Update hyperlink for DefaultPromptFunctionText (#13176) 2020-11-13 17:20:15 -08:00
Robert Holt c7781d157e
Reinstate Test-Connection tests (#13324) 2020-11-13 17:05:09 -08:00
dependabot-preview[bot] f2139dfa3b
Bump Microsoft.NET.Test.Sdk from 16.7.1 to 16.8.0 (#14020)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.1 to 16.8.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.7.1...v16.8.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-13 08:50:33 +05:00
Aditya Patwardhan f4ac0935c5
Remove workarounds for .NET 5 RTM builds (#14038) 2020-11-11 14:53:33 -08:00
Travis Plunk 52e2b58d7f
Fixes to release pipeline for GA release (#14034) 2020-11-11 12:04:54 -08:00
Aditya Patwardhan a22e7ec2f3
Update README and metadata json for upcoming release (#14026) 2020-11-11 12:03:18 -08:00
xtqqczze bac51217d6
Enable CA1829: Use Length/Count property instead of Count() (#13925)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1829
2020-11-11 11:55:39 +05:00
xtqqczze 23deb41f49
Enable IDE0040: AddAccessibilityModifiers (#13962)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0040
2020-11-09 09:37:25 +05:00
xtqqczze 47c92090db
Enable CA1068: CancellationToken parameters must come last (#13867)
* Enable CA1068: CancellationToken parameters must come last
2020-11-05 09:08:28 +05:00
xtqqczze 1d7a93c2e0
Enable CA1825: Avoid zero-length array allocations (#13961) 2020-11-04 08:56:26 +05:00
Aditya Patwardhan e99f055c69
Bump .NET to version 5.0.100-rtm.20526.5 (#13920) 2020-11-02 16:51:35 -08:00
xtqqczze ea4cf93749
Enforce code style in build (#13957)
* Enable EnforceCodeStyleInBuild

* Disable rules breaking build
2020-11-01 12:33:18 +05:00
xtqqczze a2a938e964
Fix IDE0044: MakeFieldReadonly part 10 (#13893)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-10-30 12:20:06 +05:00
xtqqczze 9932560841
Enable CA1050: Declare types in namespaces (#13872) 2020-10-26 22:34:26 +05:00
xtqqczze ebff40244a
Turn on /features:strict for all projects (#13383) 2020-10-23 11:39:06 -07:00
Aditya Patwardhan 49b7faa817
Move PowerShell build to .NET 5 RC.2 (#13780) 2020-10-14 11:04:39 -07:00
Dongbo Wang 5025d468f3
Update PSReadLine version to 2.1.0-rc1 (#13777)
* Update PSReadLine version to 2.1.0-rc1

* Update the file 'files.wxs'
2020-10-14 09:58:09 -07:00
Dongbo Wang 2728574df7
Rename 'Get-Subsystem' to 'Get-PSSubsystem' and fix two minor issues (#13765) 2020-10-14 09:42:37 -07:00
Steve Lee 16cc9aaaf8
Fix blocking wait when starting file associated with a Windows application (#13750)
* Fix blocking wait when starting file associated with a Windows application in elevated process

* refactor check if app is WindowsApp
2020-10-07 12:58:24 +05:00
Steve Lee fc8ca61b3d
Revert "Change PSNativePSPathResolution to not be Experimental" (#13734)
* Revert "Change `PSNativePSPathResolution` to not be Experimental (#13522)"

This reverts commit 74c743d279.
2020-10-03 21:20:24 +05:00
Travis Plunk de6966a9fc
markdownlint security updates (#13730)
* security updates

* exclude markdown test changes from product CI is future
2020-10-02 09:51:09 -07:00
Steve Lee 9bf512ff5d
Emit warning if ConvertTo-Json exceeds -Depth value (#13692) 2020-09-28 21:22:40 +05:00
Steve Lee 36ba1092a8
Fix case where exception message contains "`n" on Windows (#13684) 2020-09-24 23:43:33 +05:00
Dongbo Wang 10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 (#13643) 2020-09-23 14:04:01 -07:00
David Reis 3effa20410
Recognize CONOUT$ and CONIN$ as reserved device names (#13508) 2020-09-14 11:10:12 -07:00
Steve Lee d25d964d57
Fix ConciseView for interactive advanced function writing error (#13623) 2020-09-14 11:07:37 -07:00
Robert Holt dd4bd716c8 Merged PR 12589: Add Microsoft.NET.Test.Sdk dependency
Also update xunit dependencies to latest patch.
2020-09-04 22:00:26 +00:00
Robert Holt 368c8ff3c3 Merged PR 12555: Update .NET version to 5.0.0-preview.8.20407.11
Update .NET version to 5.0.0-preview.8.20407.11
2020-09-03 18:58:21 +00:00
Ilya 81d5a86747
Add support for Tls 1.3 in Web cmdlets (#13409) 2020-09-02 10:18:15 -07:00
xtqqczze 152456d7a0
Add single blank line after copyright header (#13486) 2020-09-02 08:15:16 +05:00
xtqqczze 859890374a
Use read-only auto-implemented properties (#13507)
* Autofix RCS1170: Use read-only auto-implemented property
2020-09-02 08:11:16 +05:00
Robert Holt 6a37eb9313
Update to .NET 5 preview 8 (#13530) 2020-08-31 10:38:05 -07:00
Ilya 3b83a686a1
Add null check for args in CommandLineParser (#13451) 2020-08-28 12:03:30 -07:00
Aditya Patwardhan cb8165eeef
Move PSNullConditionalOperators feature out of experimental (#13529) 2020-08-27 10:11:01 -07:00
Steve Lee 74c743d279
Change PSNativePSPathResolution to not be Experimental (#13522) 2020-08-27 12:08:52 +05:00
Dongbo Wang 6615fa3df6
Fix test hooks for CommandLineParameterParser (#13459) 2020-08-21 11:59:30 -07:00
dependabot-preview[bot] ff2143d07b
Bump Microsoft.NET.Test.Sdk from 16.7.0 to 16.7.1 (#13492)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.0 to 16.7.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.7.0...v16.7.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-08-21 08:53:58 -07:00
Dongbo Wang 5f9d2846f7
Change Add-Type -OutputType to not support ConsoleApplication and WindowsApplication (#13440) 2020-08-21 11:30:42 +05:00
Dongbo Wang fc4c9cbfd7
Initial work of the subsystem plugin model (for minimal powershell) (#13186) 2020-08-20 17:41:44 -07:00
Steve Lee d67649c300
Fix $? to not be $false when native command writes to stderr (#13395) 2020-08-19 09:31:38 -07:00
Paul Higinbotham ac5f5f9f22
Disable WMF link invocation test (#13479) 2020-08-19 09:05:25 -07:00
James Truher [MSFT] f8b9e8e9db
Create warnings when UTF7 is specified as an encoding (#13430) 2020-08-17 22:19:22 -07:00
aetos ede10850cc
Add -UnixTimeSeconds to Get-Date to allow Unix time input (#13084) 2020-08-12 10:13:59 -07:00