Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joshcorr/PSScriptAnalyzer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: PowerShell/PSScriptAnalyzer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 20 files changed
  • 9 contributors

Commits on Mar 17, 2026

  1. Add UseCorrectParametersKind rule (PowerShell#2149)

    * Consistent function parameters definition
    
    * Rule is disabled by default
    
    * Possible types of preferred function parameters are: "Inline",
    "ParamBlock"
    
    Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>
    Haimasker and bergmeister authored Mar 17, 2026
    Configuration menu
    Copy the full SHA
    520d2aa View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2026

  1. Fix typos in resource strings and associated C# references (PowerShel…

    …l#2163)
    
    * Fix typos and grammatical errors in resource strings
    - Correct misspellings in Strings.resx (e.g., 'equaltiy', 'whitepsace')
    - Rename misspelled resource keys for consistency
    - Update C# rule files to reflect new resource key names
    
    * Strings: fix grammar and casing in rule descriptions
    - Combine sentence fragment in AvoidUsingEmptyCatchBlockDescription for better flow
    - Update 'Whatif' to 'WhatIf' in UseSupportsShouldProcess strings to match PowerShell naming conventions
    
    * Strings: improve AvoidUsingEmptyCatchBlockDescription phrasing
    casuffitsharp authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    b3653a9 View commit details
    Browse the repository at this point in the history
  2. Optimise LINQ queries (PowerShell#2160)

    * Initial plan
    
    * Optimize LINQ operations for better performance
    
    Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>
    
    * Update Rules/AvoidMultipleTypeAttributes.cs
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    * Update Rules/AvoidMultipleTypeAttributes.cs
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    4 people authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    474e28b View commit details
    Browse the repository at this point in the history
  3. AlignAssignmentStatement overhaul to fix issues and include handing o…

    …f Enums. (PowerShell#2132)
    
    * Wholesale rewrite of AlignAssignmentStatement to fix issues
    
    * Change setting defaults to all enabled
    
    * Wholesale rewrite of AlignAssignmentStatement to fix issues
    
    * Change setting defaults to all enabled
    
    ---------
    
    Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>
    Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
    3 people authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    9d8a1fe View commit details
    Browse the repository at this point in the history
  4. Dynamically count expected rules in GetScriptAnalyzerRule test (Power…

    …Shell#2167)
    
    Replace hardcoded rule count with dynamic counting of [Export(typeof(I...Rule))]
    attributes in C# source files. This prevents the test from breaking every time a
    new rule is added.
    andyleejordan authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    f3e9134 View commit details
    Browse the repository at this point in the history
  5. Add UseConsistentParameterSetName Rule (PowerShell#2124)

    * Add UseConsistentParameterSetName Rule
    
    * Update GetScriptAnalyzerRule.tests.ps1 to fix test about number of rules
    
    * Make rule optional, disabled by default
    
    * Update tests to reflect need to enable rule
    
    * Update docs to refelct that the rule is not enabeld by default
    
    * Fix alignment of README markdown table
    
    * Update Rules/UseConsistentParameterSetName.cs
    
    Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>
    
    * Update expected rule count to 73 for new UseConsistentParameterSetName rule
    
    ---------
    
    Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>
    Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
    3 people authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    ed50b9d View commit details
    Browse the repository at this point in the history
  6. Added closing bracket test for formatting presets (PowerShell#2161)

    * feat(tests): added closing bracket test for formatting presets
    
    * Update Tests/Rules/PlaceCloseBrace.tests.ps1
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    o-l-a-v and Copilot authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    ac48fad View commit details
    Browse the repository at this point in the history
Loading