Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
PowerShell
PSScriptAnalyzer
Repository navigation
Code
Issues
407
(407)
Pull requests
32
(32)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
PSScriptAnalyzer
Engine
Formatter.cs
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 25, 2025
PSAvoidTrailingWhitespace: Rule not applied when using formatter + single character lines with trailing whitespace are truncated (#1993)
Show description for d6eb35e
Liam Peters (liamjpeters)
and
Christoph Bergmeister (bergmeister)
authored
d6eb35e
View commit details
Copy full SHA for d6eb35e
View code at this point
Browse repository at this point
Commits on Sep 11, 2023
Remove dead code and simplify (#1856)
Show description for bd79460
Christoph Bergmeister (bergmeister)
authored
bd79460
View commit details
Copy full SHA for bd79460
View code at this point
Browse repository at this point
Commits on Sep 6, 2023
Add the AvoidExclaimOperator rule to warn about the use of the ! negation operator. Fixes #1826 (#1922)
Show description for b0383ee
Liam Peters (liamjpeters)
and
Christoph Bergmeister (bergmeister)
authored
b0383ee
View commit details
Copy full SHA for b0383ee
View code at this point
Browse repository at this point
Commits on Jul 25, 2022
Add the AvoidSemicolonsAsLineTerminators rule to warn about lines ending with a semicolon. Fix (#824) (#1806)
Show description for b881aff
Aliaksei (tempora-mutantur)
and
Christoph Bergmeister (bergmeister)
authored
b881aff
View commit details
Copy full SHA for b881aff
View code at this point
Browse repository at this point
Commits on Aug 4, 2021
Implement -IncludeSuppressions parameter (#1701)
Rob Holt (rjmholt)
authored
d1942a1
View commit details
Copy full SHA for d1942a1
View code at this point
Browse repository at this point
Commits on Jun 11, 2020
New rule (disabled by default): AvoidUsingDoubleQuotesForConstantString (#1470)
Show description for ca4221f
3 people
authored
ca4221f
View commit details
Copy full SHA for ca4221f
View code at this point
Browse repository at this point
Commits on Apr 28, 2020
Formatter: Recycle parsed AST and tokens in between rule invocations when no correction was applied to improve performance (#1462)
Show description for 3e6987b
Christoph Bergmeister (bergmeister)
and
Christoph Bergmeister
authored
3e6987b
View commit details
Copy full SHA for 3e6987b
View code at this point
Browse repository at this point
Commits on Apr 21, 2020
Invoke-Formatter: Skip VariableAnalysis, which is not needed to yield a 50% performance improvement (#1451)
Christoph Bergmeister (bergmeister)
authored
bd5a4b1
View commit details
Copy full SHA for bd5a4b1
View code at this point
Browse repository at this point
Commits on Aug 27, 2019
Allow formatter to optionally correct aliases (#1277)
Christoph Bergmeister (bergmeister)
authored and
James Truher (JamesWTruher)
committed
abd88a8
View commit details
Copy full SHA for abd88a8
View code at this point
Browse repository at this point
Commits on Mar 8, 2019
Add 'UseCorrectCasing' formatting rule for cmdlet/function name (#1117)
Show description for 55d98f2
Christoph Bergmeister (bergmeister)
authored
55d98f2
View commit details
Copy full SHA for 55d98f2
View code at this point
Browse repository at this point
Commits on Mar 16, 2018
Make licence headers consistent across all files by using the recommended header of PsCore (#930)
Christoph Bergmeister (bergmeister)
authored and
James Truher (JamesWTruher)
committed
03ee3c4
View commit details
Copy full SHA for 03ee3c4
View code at this point
Browse repository at this point
Commits on Nov 13, 2017
Optimize -Fix switch to only write the fixed file to disk if any fixes were actually applied.
Show description for 8525e03
Christoph Bergmeister (bergmeister)
committed
8525e03
View commit details
Copy full SHA for 8525e03
View code at this point
Browse repository at this point
Commits on Jun 9, 2017
Add argument checks for Formatter.Format method
Kapil Borle
committed
7d00f7b
View commit details
Copy full SHA for 7d00f7b
View code at this point
Browse repository at this point
Commits on Jun 8, 2017
Update verbose messages for invoke-formatter
Kapil Borle
committed
88da14b
View commit details
Copy full SHA for 88da14b
View code at this point
Browse repository at this point
Add xml documentation
Kapil Borle
committed
2f8b6da
View commit details
Copy full SHA for 2f8b6da
View code at this point
Browse repository at this point
Commits on Jun 7, 2017
Remove unused usings from formatter.cs
Kapil Borle
committed
32dde30
View commit details
Copy full SHA for 32dde30
View code at this point
Browse repository at this point
Update Formatter.GetCurrentSettings implementation
Kapil Borle
committed
82a277f
View commit details
Copy full SHA for 82a277f
View code at this point
Browse repository at this point
Add an out parameter to relay updated range
Show description for dd381e6
Kapil Borle
committed
dd381e6
View commit details
Copy full SHA for dd381e6
View code at this point
Browse repository at this point
Add range formatting capability
Kapil Borle
committed
4ae9a90
View commit details
Copy full SHA for 4ae9a90
View code at this point
Browse repository at this point
Commits on Jun 6, 2017
Move the fixing in formatting to ScriptAnalyzer class
Kapil Borle
committed
73aefd8
View commit details
Copy full SHA for 73aefd8
View code at this point
Browse repository at this point
Commits on Jun 1, 2017
Create a method to get current settings
Kapil Borle
committed
3057c03
View commit details
Copy full SHA for 3057c03
View code at this point
Browse repository at this point
Move helper initialization to format method
Kapil Borle
committed
7fa659d
View commit details
Copy full SHA for 7fa659d
View code at this point
Browse repository at this point
Fix updating settings in invoke-formatter
Kapil Borle
committed
f0b5fea
View commit details
Copy full SHA for f0b5fea
View code at this point
Browse repository at this point
Remove unused members from formatter class
Kapil Borle
committed
2b92851
View commit details
Copy full SHA for 2b92851
View code at this point
Browse repository at this point
Parameterize format method
Kapil Borle
committed
d924831
View commit details
Copy full SHA for d924831
View code at this point
Browse repository at this point
Commits on May 27, 2017
Add Formatter class to provide code formatting capability
Kapil Borle
committed
71a54ff
View commit details
Copy full SHA for 71a54ff
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.