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: PowerShell/PSScriptAnalyzer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.24.0
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
  • 7 commits
  • 17 files changed
  • 7 contributors

Commits on Mar 20, 2025

  1. Add configuration instructions for UseCorrectCasing (again) (#2090)

    * Add configuration instructions (again)
    
    * Add example for keyword
    
    * Fix typo
    sdwheeler authored Mar 20, 2025
    Configuration menu
    Copy the full SHA
    ea73edc View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2025

  1. Fix for PSUseConsistantWhiteSpace when using statement is present (#2091

    )
    
    * Add failng test that should pass
    
    * Try simple fix
    
    * Test and Fix for test
    
    * Update Tests/Rules/UseConsistentWhitespace.tests.ps1
    
    Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>
    
    * Fix encoding
    
    ---------
    
    Co-authored-by: Alexandra Dorey <adorey@ourmagnet.net>
    Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>
    3 people authored Apr 4, 2025
    Configuration menu
    Copy the full SHA
    2287a13 View commit details
    Browse the repository at this point in the history
  2. Exclude PSNativeCommandArgumentPassing variable (#2093)

    * Exclude PSNativeCommandArgumentPassing variable
    
    * Update UseDeclaredVarsMoreThanAssignments.tests.ps1
    
    * Add missing comma in SpecialVars.cs
    bergmeister authored Apr 4, 2025
    Configuration menu
    Copy the full SHA
    78ee946 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2025

  1. Update version check in PSScriptAnalyzer.psm1 to align with SMA versi…

    …on for PowerShell 7 (#2107)
    
    * Update PSScriptAnalyzer.psm1
    
    * Update Directory.Packages.props
    bergmeister authored Jun 9, 2025
    Configuration menu
    Copy the full SHA
    ea70855 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2025

  1. Configuration menu
    Copy the full SHA
    08bb38b View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2025

  1. PSAvoidDefaultValueForMandatoryParameter: Fix param block and paramet…

    …er set handling (#2121)
    
    * Updated rule
    
    * Remove no-longer relevant comment
    
    * Inline unnecessary function calls
    
    * Tidy up HasMandatoryInAllParameterAttributes
    liamjpeters authored Oct 15, 2025
    Configuration menu
    Copy the full SHA
    dc55078 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2025

  1. Add AvoidReservedWordsAsFunctionNames Rule (#2128)

    * fix: Update helper GetScriptExtentForFunctionName to return correct extent when function name is 'function'
    
    * Add AvoidReservedWordsAsFunctionNames rule
    
    * fix: Handle functions with scopes
    
    * Copyright header
    
    * Extend Substring tests to starts with reserved word, ends with reserved word, and reserved word with a letter missing
    
    * Check if the function name is 'Function' case insensitively. Add a test for good measure
    
    * Fix casing of common name
    
    Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
    
    * AvoidReservedWordsAsFunctionNames: factor our function name for readability
    
    Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
    
    * Remove reserved words which do not pose an issue:
    
    assembly, base, command, hidden, in, inlinescript, interface,
    module, namespace, private, public, static
    
    ---------
    
    Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
    Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
    3 people authored Oct 22, 2025
    Configuration menu
    Copy the full SHA
    a9898a6 View commit details
    Browse the repository at this point in the history
Loading