Commit Graph
191 Commits
Author SHA1 Message Date
xtqqczze 9470212e6a Fix CA1837: Use 'Environment.ProcessId' (#26242) 2025-10-20 11:16:44 -07:00
xtqqczze 250144e92d Fix IDE0083: UseNotPattern (#26209) 2025-10-16 05:24:06 +00:00
xtqqczze 5cdafbc4c7 Enable CA1858: Use 'StartsWith' instead of 'IndexOf' (#26107) 2025-10-08 08:22:54 +05:00
Armaan Mcleod 10d1785030 Update DnsNameList for X509Certificate2 to use X509SubjectAlternativeNameExtension.EnumerateDnsNames Method (#24714) 2024-12-29 15:21:50 +05:00
Aditya Patwardhan 9303de597d Bump .NET 9 to 9.0.100-rc.1.24452.12 (#24273) 2024-09-12 12:10:07 -07:00
ImportTaste 18a2679e4e Add the missing alias LP to -LiteralPath for some cmdlets (#20820) 2023-12-05 16:32:10 -08:00
Thomas Nieto 4621c9e571 Change New-FileCatalog -CatalogVersion default to 2 (#20428) 2023-10-16 15:26:31 -07:00
Thomas Nieto 39513bb3fb Remove parenthesis for empty attribute parameters (#20087) 2023-08-21 10:11:55 -07:00
Aditya Patwardhan ebe0b54340 Update to .NET 8 Preview 4 (#19696) 2023-06-21 15:17:22 -07:00
Dmitry Volodin 368a1ea372 Apply IDE0019: InlineAsTypeCheck in Microsoft.PowerShell folder (#19689) 2023-05-24 17:23:23 +05:00
Jordan Borean 93e9c63331 Fix Get-AuthenticodeSignature -Content to not roundtrip the bytes to a Unicode string and then back to bytes (#18774) 2023-04-25 12:11:04 -07:00
James Truher [MSFT] 4f57804f46 Fix up all comments to be in the proper order with proper spacing (#18619) 2023-01-03 12:12:42 -08:00
Ilya 6aa74c5c3c Remove ArchitectureSensitiveAttribute from the code base (#18598) 2022-11-18 14:15:05 -08:00
Steve Lee c740a07e10 Change public API mention of monad to PowerShell (#18491)
* Change public API mention of `monad` to PowerShell

* looks like I forgot to save changes in some files
2022-11-14 12:45:23 -05:00
Steve Lee 837482376e Replace msh in public API comment based documentation with PowerShell equivalent (#18483) 2022-11-08 08:27:52 +05:00
Steve Lee 3e1a4d5679 Remove remaining unused strings from resx files (#18448) 2022-11-03 07:52:46 +05:00
Ilya 8965af3d52 Remove some static constants from Utils.Separators (#18154) 2022-10-27 15:25:41 -07:00
Ilya 8973b0c121 Use overload APIs that take char instead of string when it's possible (#18179) 2022-09-29 09:39:04 -07:00
Rose 397bd87cb3 Remove unused variables (#18058) 2022-09-08 12:10:38 -07:00
Ryan HutchisonandTravis Plunk f2204a08b8 Authenticode https fix issue #12827 (#16134)
* Added https:// as valid prefix for TSA url

* fixed typo

* Format matching

* Added proper logic

* Appended https to error message

* Update src/System.Management.Automation/security/Authenticode.cs

I agree.

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2022-08-01 09:57:03 -07:00
Dmitry Volodin 7af4679191 Use compound assignment in Microsoft.PowerShell.ConsoleHost/Security (#17723) 2022-07-25 22:08:57 +05:00
Jordan Borean 9a9c7666e7 Set-AuthenticodeSignature hash default to SHA256 (#17560) 2022-07-07 17:33:12 +05:00
8d453da283 Use new Windows signature APIs from Microsoft.Security.Extensions package (#17159)
Co-authored-by: Anam Navied <anam.naviyou@gmail.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2022-04-20 21:26:57 +00:00
MartinGC94 5e6e7ca449 Add OutputType attribute to various commands (#16962) 2022-03-24 15:54:08 -07:00
xtqqczze 0f2f23f67a Enable IDE0049 PreferBuiltInOrFrameworkType (#14491) 2021-07-28 12:39:14 -07:00
xtqqczze a3366b880a Fix CA1309: Use ordinal StringComparison in CertificateProvider (#14352) 2021-06-25 09:01:59 +05:00
xtqqczze a6abf16941 Add SecureStringHelper.FromPlainTextString (#14124) 2021-04-12 14:05:20 -07: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 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 a8213b54b3 Remove redundant local assignment in AclCommands (#14358) 2020-12-10 11:36:48 -08:00
xtqqczze 41ab20cce3 Mark applicable structs as readonly and use in-modifier (#13919) 2020-12-09 11:36:48 -08:00
xtqqczze d5b0264374 Use consistent spacing in xml documentation tags (#14231) 2020-11-25 22:58:52 +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 8c8487cc78 Fix CA1822: Mark members as static part 6 (#14229)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-24 12:28:19 +05:00
xtqqczze eafeab554b Remove unnecessary usings part 8 (#14072)
* Sorting usings

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
2020-11-21 20:03:33 +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 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 76cef3b299 Fix RCS1221: Use pattern matching instead of combination of 'as' operator and null check (#13333)
* Autofix RCS1221: Use pattern matching instead of combination of 'as' operator and null check

https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1221.md

* Restore stripped comments
2020-11-05 21:58:48 +05:00
xtqqczze 3ba61069b8 Enable IDE0054: Use compound assignment (#13546)
* Autofix IDE0054
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0054-ide0074
2020-11-05 09:48:13 +05:00
xtqqczze 03a0ef26e6 Fix RCS1098: Constant values should be on right side of comparisons (#13833)
* Fix RCS1098: Constant values should be on right side of comparisons

https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1098.md
2020-11-05 09:13:12 +05:00
xtqqczze 25a769d75d Fix IDE0044: MakeFieldReadonly part 8 (#13891)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-11-02 12:24:43 +05:00
Dongbo Wang 10237bdeb3 Update PowerShell to build against dotnet 5.0-RC.1 (#13643) 2020-09-23 14:04:01 -07: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
xtqqczze 16f0b74187 Cleanup: Remove redundant empty lines (#13404) 2020-08-25 11:29:26 -07: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
Shri Ram K S 9ceee3e52f Fix Get-Acl -LiteralPath "HKLM:Software\Classes\*" behaviour (#13107)
* Fix #11566 bug

Add pester test for Get-Acl cmdlet

* Replace -pending parameter with -skip

* Fix test failing in Linux and MacOS
2020-07-31 16:44:45 -07:00
xtqqczze 4597b41396 Use is not syntax where appropriate and remove unnecessary parentheses (#13323) 2020-07-31 16:41:59 -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