Skip to content

Commit 4f28e6c

Browse files
author
Kapil Borle
committed
Make release header consistent in changelog.md
1 parent 5501b1d commit 4f28e6c

File tree

3 files changed

+50
-70
lines changed

3 files changed

+50
-70
lines changed

CHANGELOG.MD

Lines changed: 47 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
## [1.8.0](https://github.com/PowerShell/PSScriptAnalyzer/compare/1.7.0...HEAD) - 2016/10/05
2-
1+
## [1.8.0](https://github.com/PowerShell/PSScriptAnalyzer/compare/1.7.0...HEAD) -
32
### Added
43
- New [rule](RuleDocumentation/UseCompatibleCmdlets.md) to check cmdlet compatibility between different PowerShell flavors
54
- New [rule](RuleDocumentation/UseLiteralInitializerForHashtable.md) to warn when using Hashtable constructor
@@ -15,7 +14,7 @@
1514
### Changed
1615
- PSShouldProcess rule to not check for presence of `ShouldContinue` when `SupportsShouldProcess` is declared
1716

18-
## [1.7.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.7.0)
17+
## [1.7.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.7.0) - 2016-08-16
1918

2019
Here are some improvements since the last release.
2120

@@ -26,18 +25,18 @@ Here are some improvements since the last release.
2625
- Fix rule suppression caused by inavlid offsets
2726
- Whitelist `Data` in `PSUseSingularNoun` rule
2827
- Fix rule documentation of `PSDSCExamplesPresent`
29-
- Fix false positives caused by PSD1 files which are not module manifests
28+
- Fix false positives caused by PSD1 files which are not module manifests
3029
- affects `PSUseToExportFieldsInManifest`, `PSMissingModuleManifestField` and `PSAvoidUsingDeprecatedManifestFields` rules
3130
- Use PlatyPS for generating MAML based documentation
3231
- Add build script to automate building and testing the solution
33-
32+
3433
A big **Thank You!** to the following folks for making PSScriptAnalyzer even better:
3534
- [Kieran Jacobsen (@kjacobsen)](https://github.com/PowerShell/PSScriptAnalyzer/commits/development?author=kjacobsen): Fix rule documentation of `PSDSCExamplesPresent` [PR #591](https://github.com/PowerShell/PSScriptAnalyzer/pull/591)
3635
- [Charlie Schmidt (@charlieschmidt)](https://github.com/PowerShell/PSScriptAnalyzer/commits/development?author=charlieschmidt): Suppress External Rules [PR #585](https://github.com/PowerShell/PSScriptAnalyzer/pull/585)
3736
- [June Blender (@juneb)](https://github.com/PowerShell/PSScriptAnalyzer/commits/development?author=juneb): Add tests for module help [058f65e1](https://github.com/PowerShell/PSScriptAnalyzer/commit/058f65e1f6278222378fedf444eecb2e32865b1e)
3837
- [Shayde Nofziger (@Blackbaud-ShaydeNofziger)](https://github.com/PowerShell/PSScriptAnalyzer/commits/development?author=Blackbaud-ShaydeNofziger): Fix rule name typo and comment [PR #560](https://github.com/PowerShell/PSScriptAnalyzer/pull/560)
3938

40-
## Release v1.6.0
39+
## [1.6.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.6.0) - 2016-06-07
4140

4241
### Engine
4342
- Add `SuggestedCorrections` property to `DiagnosticRecord`
@@ -67,7 +66,7 @@ A big **Thank You!** to the following folks for making PSScriptAnalyzer even bet
6766
- Fix a bug in `PSMissingModuleManifestField` rule caused by .psd1 files that do not contain Hashtable
6867
- Fix documentation of `PSAvoidUsingPlainTextForPassword`
6968

70-
## Release v1.5.0 (Mar. 30, 2016)
69+
## [1.5.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.5.0) - 2016-03-29
7170

7271
### Engine
7372
- Fixed an engine bug that prevented versioned script rule modules from being loaded
@@ -84,57 +83,57 @@ A big **Thank You!** to the following folks for making PSScriptAnalyzer even bet
8483
- Community Fix: Fixed false positives on `PSUseApprovedVerbs` when scope is declared as a prefix to the Verb-Noun combination
8584
- Updated messages of `AvoidUsernameAndPasswordParams` rule and `UsePSCredentialType` rule
8685

87-
## Release v1.4.0 (Feb.16, 2016)
88-
###Features:
86+
## [1.4.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.4.0) - 2016-02-16
87+
### Features:
8988
- IncludeRule and ExcludeRule now consume RuleInfo objects
9089

91-
###Rules:
90+
### Rules:
9291
- Rule to validate HelpMessage parameter attribute value
9392
- Rule to suggest module manifest *ToExport field values for optimizing module loading
9493

95-
###Fixes:
96-
####Engine:
94+
### Fixes:
95+
#### Engine:
9796
- Fixed bug in engine handling of severity for custom rules - this property was being ignored
9897
- Exclude help files from being Ast parsed
9998

100-
####Rules:
99+
#### Rules:
101100
- Emit accurate ast extents for rules - helps VSCode-PowerShell to mark violations better
102101
- Improved heuristics for Singular noun rule - reduce false positives
103102
- Updated credential rules to be less noisy based on community feedback
104103
- Support for [switch] type along with [boolean] for ShouldContinueWithoutForce rule
105104
- Improved handling of deprecated module manifest fields when PSv2.0 is specified in the manifest
106105

107-
## Release v1.3.0 (Jan.19, 2016)
108-
###Features:
106+
## [1.3.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.3.0) - 2016-01-19
107+
### Features:
109108
- Support for running ScriptAnalyzer on PowerShell version v3 or higher! This means PSv5 is no longer the minimum PS version for ScriptAnalyzer
110109

111-
###Rules:
110+
### Rules:
112111
- [From Community] Rule for warning about backticks that look like line-continuations but are not [MisleadingBacktick rule]
113112
- Ability in default ruleset to recognize PowerShell variable scopes - global, local, script, private
114113
- Ability to use functions as a variable and support for special type of functions like prompt
115114

116-
###Fixes:
117-
####Rules:
115+
### Fixes:
116+
#### Rules:
118117
- Fix for recognizing PowerShell preference variable ($OFS) in the default ruleset
119118
- Fix for false positive - PSShouldProcess rule requires boolean value
120119
- Fix to account for function scope prefix
121120
- Raise ReservedParam rule only for exported functions as cmdlets
122121

123-
## Release v1.2.0 (Dec.17, 2015)
124-
###Features:
122+
## [1.2.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.2.0) - 2015-12-16
123+
### Features:
125124
- Support for consuming PowerShell content as streams (-ScriptDefinition)
126125
- ScriptAnalyzer accepts configuration (settings) in the form of a hashtable (-Settings), added sample Settings
127126
- Ability to run default ruleset along with custom ones in the same invocation (-IncludeDefaultRules)
128127
- Recurse Custom Rule Paths (-RecurseCustomRulePath)
129128
- Consistent Engine error handling when working with Settings, Default and Custom Rules
130129

131-
###Rules:
130+
### Rules:
132131
- Rule to detect the presence of default value for Mandatory parameters (AvoidDefaultValueForMandatoryParameter)
133132

134-
###Fixes:
135-
####Engine:
133+
### Fixes:
134+
#### Engine:
136135
- Engine update to prevent script based injection attacks
137-
- CustomizedRulePath is now called CustomRulePath Fixes to handle folder paths
136+
- CustomizedRulePath is now called CustomRulePath – Fixes to handle folder paths
138137
- Fixes for RecurseCustomRulePath functionality
139138
- Fix to binplace cmdlet help file as part of build process
140139
- ScriptAnalyzer Profile is now called Settings
@@ -143,69 +142,59 @@ A big **Thank You!** to the following folks for making PSScriptAnalyzer even bet
143142
- Added additional pester tests to take care of test holes in Custom Rule feature
144143
- Post-build error handling improvements, fixed typos in the project
145144

146-
####Rules:
145+
#### Rules:
147146
- Fixed bug in Positional parameter rule to trigger only when used with >= 3 positional parameters
148147
- Updated keywords that trigger PSAvoidUsingPlainTextForPassword rule
149148
- Updated ProvideDefaultParameterValue rule to AvoidDefaultValueForMandatoryParameter rule
150149
- Deprecate Internal Url rule based on community feedback, identified additional rules to handle hardcoded paths etc
151150
- Added localhost exceptions for HardCodedComputerName Rule
152151
- Update to Credential based rules to validate the presence of CredentialAttribute and PSCredential type
153152

154-
###Documentation:
155-
- Rule & Cmdlet documentation updates – Cmdlet help file addition
156-
157-
158-
##
153+
### Documentation:
154+
- Rule & Cmdlet documentation updates – Cmdlet help file addition
159155

160-
## Release v1.1.1 (Nov.3, 2015)
161-
###Features:
156+
## [1.1.1](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.1.1) - 2015-11-03
157+
### Features:
162158
- Support for PSDrives when using Invoke-ScriptAnalyzer
163159
- More robust Profiles feature - better defaulting when supplied with invalid profile - actionable Warnings
164160
- Validated integration with ISESteroids, ISEScriptAnalyzerAddon
165161

166-
###Rules:
162+
### Rules:
167163
- New rule to ensure that a file with missing BOM is encoded in ASCII
168164

169-
###Fixes:
165+
### Fixes:
170166
- Doc Updates, Cleaned up source files to reflect accurate comments
171167
- Fix SuppressedOnly switch functionality
172168
- Updated Positional parameter rule to trigger only when used with > 3 positional parameters
173169

174-
##
175-
176-
## Release v1.1.0 (Sep.1, 2015)
177-
###Features:
170+
## [1.1.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.1.0) - 2015-09-01
171+
### Features:
178172
- Support for using ScriptAnalyzer as a .net library - ScriptAnalyzer APIs
179173
- Support for ScriptAnalyzer Profiles
180174
- Documentation for using Inline Rule Suppression
181175
- Added about help topic file as part of the module
182176

183-
###Rules:
177+
### Rules:
184178
- Rule to checks for UTF8 encoding in help file
185179
- Deprecate Uninitialized Variable rule as per community feedback
186180

187-
188-
###Fixes:
181+
### Fixes:
189182
- Fix false positive for UsingInternalURL
190183
- WriteVerbose only when analyzing valid powershell files
191184
- DSCClass rules not being applied when exclude rule is used
192185
- Add host to list of initialized variable
193186
- Exclude external non-powershell applications (Console/GUI) from Positional Parameter rule application
194187
- Additional heuristics for detecting psavoidusingplaintextforpassword rule violation
195188

196-
##
197-
198-
## Release v1.0.2 (June.24, 2015)
199-
###Features:
189+
## [1.0.2](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.0.2) - 2015-06-24
190+
### Features:
200191
- Perf improvements in the Engine to execute rules concurrently.
201192

202-
203-
###Rules:
193+
### Rules:
204194
- New rule to validate the presence of deprecated module manifest fields.
205-
- Removed PSAvoidTrapStatement rule from the builtin set since this is not deprecated and using trap is a better choice in certain scenarios.
195+
- Removed PSAvoidTrapStatement rule from the builtin set – since this is not deprecated and using trap is a better choice in certain scenarios.
206196

207-
208-
###Fixes:
197+
### Fixes:
209198
- Verbose Message rule applies to only DSC cmdlet based resources.
210199
- Multiple fixes to AvoidUninitializedVariable to work with non-mandatory parameters, fix in the flow graphs for throw statements; support for missing preference variables; support for automatic variables.
211200
- PSAvoidUsingInternalsURLs to work with xPath expressions.
@@ -221,36 +210,30 @@ A big **Thank You!** to the following folks for making PSScriptAnalyzer even bet
221210
- AvoidUsingPlainTextForPassword rule to be raised only strings or object types.
222211
- Fix for PositionalParameterUsed method (Helper.cs) uses unsafe method to exclude ForEach-Object and Where-Object.
223212

224-
##
225-
226-
## Release v1.0.1 (May.8, 2015)
227-
###Features:
213+
## [1.0.1](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.0.1) - 2015-05-12
214+
### Features:
228215
- Integrated with waffle.io for Project Management.
229216
- Added documentation for writing script rules.
230217

231-
###Rules:
218+
### Rules:
232219
- AvoidUsingWMICmdlet rule: For PowerShell 3.0 and above, usage of WMI cmdlets is not recommended. This rule is to detect WMI cmdlet usage in scripts that are written for PS 3.0 and above.
233220
- DSCTestsPresent rule: Resource module contains Tests folder with tests for given resource.
234221
- UseOutputTypeCorrectly rule: If we can identify the type of an object that is outputted to the pipeline by a cmdlet, then that type must be listed in the OutputType attribute.
235222

236-
###Fixes:
237-
223+
### Fixes:
238224
- PSProvideVerboseMessage only throws warnings in non-advanced functions.
239225
- Fix the issue in importing customized rule
240226
- Fix Function Member Ast cast error
241227

242-
##
243-
244-
##Released v1.0.0 on Apr.24, 2015
245-
###Features:
228+
## [1.0.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.0.0) - (2015/04/24)
229+
### Features:
246230
- Finalized three levels of Severity - Error/Warning/Information.
247231
- Improved PSScriptAnalyzer engine behavior: emits non-terminating errors (Ex: for failed ast parse) and continues rule application when running on multiple scripts.
248232
- Added wild card supports for rules in Invoke-ScriptAnalyzer and Get-ScriptAnalyzer. Eg. Invoke-ScriptAnalyzer -IncludeRule PSAvoid* will apply all rules starting with PSAvoid* in built in rule assemblies.
249233
- Added -Severity to Get-ScriptAnalyzerRules. Get-ScriptAnalyzer -Severity will filter rules based on the severity given.
250234
- Added Suppression functionality. Users are now able to specify suppression on certain parts of the scripts by specifying "SupressMessageAttribute" in the scripts. More details and documentations will be coming soon in blog posts. Also comes with this feature is the ability for users to display a list of suppressed messages.
251235

252-
###Rules:
253-
236+
### Rules:
254237
- Added DSC Rules for resources including Parameter validation, Usage of standard DSC functions and return type validation. Rule checkings also support for DSC classes. Built-in DSC rules include:
255238
+ UseStandardDSCFunctionsInResource
256239
+ UseIdenticalParametersDSC
@@ -259,12 +242,9 @@ A big **Thank You!** to the following folks for making PSScriptAnalyzer even bet
259242
- Added support in the engine to detect DSC configuration/resource files and disable default rule checkings on DSC configuration and resource files.
260243
- UseShouldProcessForStateChangingFunctions - If an advanced function has Verbs like New/Start/Stop/Restart/Reset/Set- that will change system state, it should support ShouldProcess attribute.
261244

262-
263-
###Fixes:
264-
245+
### Fixes:
265246
- Improved heuristics to detect usage of Username and Password instead of PSCredential type.
266247
- Improved accuracy in the detection of uninitialized variables.
267248
- Improved error messages to include error line numbers and file names.
268249
- Identified usage of PSBound parameters and PowerShell supplied variables such as $MyInvocation to avoid unnecessary noise in the results returned by some of the built-in rules.
269250
- Fixed terminating errors including "Illegal characters in Path".
270-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ function PositionalParametersNotAllowed()
155155
}
156156
}
157157
158-
# The script analyzer will skip this violation
158+
# PSScriptAnalyzer will skip this violation
159159
PositionalParametersAllowed 'value1'
160160
161-
# The script analyzer will report this violation
161+
# PSScriptAnalyzer will report this violation
162162
PositionalParametersNotAllowed 'value1
163163
```
164164

RuleDocumentation/UseShouldProcessCorrectly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ If a cmdlet declares the `SupportsShouldProcess` attribute, then it should also
77
For more information, please refer to `about_Functions_Advanced_Methods` and `about_Functions_CmdletBindingAttribute`
88

99
##How to Fix
10-
To fix a violation of this rule, please call `ShouldProcess` method when a cmdlet declares `SupportsShouldProcess` attribute. Or please add `SupportsShouldProcess` attribute argument when calling `ShouldProcess`.
10+
To fix a violation of this rule, please call `ShouldProcess` method when a cmdlet declares `SupportsShouldProcess` attribute. Or please add `SupportsShouldProcess` attribute argument when calling `ShouldProcess`
1111

1212
##Example
1313
###Wrong:

0 commit comments

Comments
 (0)