Commit graph

425 commits

Author SHA1 Message Date
Steve Lee 6d7fbed02b
Suppress Write-Progress in ConsoleHost if output is redirected and fix tests (#14716) 2021-02-08 09:42:53 -08:00
Steve Lee 887467eb32
Add minimal progress bar using ANSI rendering (#14414) 2021-02-05 10:50:20 -08:00
Steve Lee 8e7780860e
Reset color after writing Verbose, Debug, and Warning message (#14698) 2021-02-03 09:39:54 -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
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 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
Steve Lee a99ea2acd2
Enable ANSI formatting via $PSStyle and support suppressing ANSI output (#13758) 2020-12-11 10:33:57 -08:00
xtqqczze 41ab20cce3
Mark applicable structs as readonly and use in-modifier (#13919) 2020-12-09 11:36:48 -08:00
Ilya 03f40a0078
Use OrdinalIgnoreCase in CommandLineParser (#14303) 2020-12-03 14:34:00 -08:00
Ilya 548e939894
Use StringComparison.Ordinal insted of StringComparison.CurrentCulture (#14298) 2020-12-02 13:35:29 -08: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 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 dc9ecd9a85
Use AsSpan/AsMemory slice constructor (#14265)
* Use AsSpan slice constructor

* Use AsMemory slice constructor
2020-11-27 13:05:41 +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 0d1ea73e59
Enable IDE0074: Use coalesce compound assignment (#13396)
* Autofix IDE0074: Use compound assignment
2020-11-25 17:37:01 +05:00
xtqqczze c7bdb24ff3
Mark local variable as const (#13217)
RCS1118: Mark local variable as const https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1118.md
2020-11-24 20:06:16 +05:00
xtqqczze 8611c86673
Fix CA1822: Mark members as static part 5 (#14228)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-24 12:26:04 +05:00
xtqqczze cba73e724f
Enable SA1106: Code should not contain empty statements (#13964)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md
2020-11-21 19:26:44 +05:00
xtqqczze ed1f5294be
Remove useless comments (#14199) 2020-11-20 20:31:22 +05:00
xtqqczze 99a49e0eab
Enable SA1131: Use readable conditions (#14132)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md
2020-11-20 17:26:46 +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 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 1dc0ba4a69
Enable IDE0062: MakeLocalFunctionStatic (#14044)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0062
2020-11-13 09:12:38 +05:00
xtqqczze 8148968546
Remove unnecessary usings part 5 (#14050)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
2020-11-13 08:37:41 +05:00
xtqqczze 4d2965af29
Autofix SA1518: The code must not contain extra blank lines at the end of the file (#13574) 2020-11-11 12:15:20 +05:00
xtqqczze 76be8f3ce5
Fix RCS1033: Remove redundant boolean literal part 1 (#13454)
* Remove redundant boolean literal

Autofix RCS1033: Remove redundant boolean literal

* revert changes in System.Management.Automation
2020-11-05 22:23:27 +05:00
xtqqczze 03a58c4186
Use is not syntax part 2 (#13338) 2020-11-05 10:23:50 +05:00
xtqqczze 52ecb6d18e
Run dotnet-format to improve formatting of source code (#13503) 2020-11-04 11:13:56 -08:00
Sean Wheeler beb074d4a2
Update pwsh -? output to match docs (#13748) 2020-11-04 10:39:07 -08:00
xtqqczze af8558b065
Enable CA1834: Consider using 'StringBuilder.Append(char)' when applicable (#13878)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834
2020-10-30 12:07:18 +05:00
xtqqczze f40a002497
Fix IDE0044: MakeFieldReadonly part 5 (#13888)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-10-30 11:49:23 +05:00
Dongbo Wang 10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 (#13643) 2020-09-23 14:04:01 -07:00
Fredrik Nilsson f9a1ab1164
Fixed the indentation of the help content for -nologo (#13557) 2020-09-08 21:29:01 -07:00
xtqqczze 8f37cced70
Cleanup: remove duplicate words in comments (#13539) 2020-08-31 11:39:00 -07: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
xtqqczze 16f0b74187
Cleanup: Remove redundant empty lines (#13404) 2020-08-25 11:29:26 -07:00
Dongbo Wang 6615fa3df6
Fix test hooks for CommandLineParameterParser (#13459) 2020-08-21 11:59:30 -07:00
Dongbo Wang d9c2e0e712
Make the parameter 'args' non-nullable in the public ConsoleHost APIs (#13429) 2020-08-13 17:06:03 -07:00
Ilya 68d46c1792
Refactor command line parser to do early parsing (#11482) 2020-08-12 09:58:46 -07:00
xtqqczze d8f8f0a8bc
Fix comparison of value type object to null (#13285) 2020-08-10 14:56:14 -07:00
Sergey Vasin fe2019b054
Update pwsh help for -InputFormat parameter (#13355) 2020-08-07 12:16:02 +05:00
Robert Holt ef7c7d60a6
Revert "Add password confirmation in Get-Credential (#12782)" (#13372)
This reverts commit a6bd47f031.
2020-08-07 12:11:16 +05:00
xtqqczze 4597b41396
Use is not syntax where appropriate and remove unnecessary parentheses (#13323) 2020-07-31 16:41:59 -07:00
Ilya 58b91a89b6
Fix conflicting shorthand switch -s (sta) for pwsh (#13262) 2020-07-31 09:40:42 -07:00
Steve Lee 99b3bfaa34
Change Read-Host -MaskInput to use existing SecureString path, but return as plain text (#13256) 2020-07-30 22:16:37 -07:00
Dongbo Wang 4b9b0788ed
Revert "Use is null syntax (#13277)" (#13322)
This reverts commit 6c03776d74.
2020-07-30 16:06:38 -07:00
xtqqczze 6c03776d74
Use is null syntax (#13277)
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Shri Ram K S a6bd47f031
Add password confirmation in Get-Credential (#12782)
* Add parameter -ReEnterPassword to prompt user to re-enter the password for confirmation

* Add new public overload function PromptForCredential
2020-07-22 19:13:42 +05:00