Skip to content

Commit 57879ca

Browse files
authored
Merge 1.17.0 branch into development (#1015)
* Add PSv4 assemblies to the signing jobs * Remaining release notes and version update to 1.17.0 (#1002) * Update changelog with latest PRs and run New-Release to bump version and add changelog to psd1 Improve issue link Readme to use new multiple issue template * bump version in csproj and fix date in release log * add choco pr and fix table of contents in readme * add new commits * add recent commit * Update PR number
1 parent 23095f6 commit 57879ca

File tree

6 files changed

+103
-8
lines changed

6 files changed

+103
-8
lines changed

CHANGELOG.MD

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [1.17.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.17.0) - 2018-04-27
1+
## [1.17.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.17.0) - 2018-05-14
22

33
### New Parameters
44

@@ -15,6 +15,8 @@
1515

1616
### Fixes and Improvements
1717

18+
- AvoidDefaultValueForMandatoryParameter triggers when the field has specification: Mandatory=value and value!=0 (#969) (by @kalgiz)
19+
- Do not trigger UseDeclaredVarsMoreThanAssignment for variables being used via Get-Variable (#925) (by @bergmeister)
1820
- Make UseDeclaredVarsMoreThanAssignments not flag drive qualified variables (#958) (by @bergmeister)
1921
- Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives when using += operator (#935) (by @bergmeister)
2022
- Tweak UseConsistentWhiteSpace formatting rule to exclude first unary operator when being used in argument (#949) (by @bergmeister)
@@ -31,6 +33,12 @@
3133

3234
### Engine, Building and Testing
3335

36+
- Support `SuggestedCorrections` property on DiagnosticRecord for script based rules #1000 (by @bergmeister)
37+
- Add CommandData files of PowerShell Core 6.0.2 for Windows/Linux/macOS and WMF3/4 that are used by UseCompatibleCmdlets rule (#954) (by @bergmeister)
38+
- If no path is found or when using the -ScriptDefinition parameter set, default to the current location for the directory search of the implicit settings file (#979) (by @bergmeister)
39+
- Allow TypeNotFound parser errors (#957) (by @bergmeister)
40+
- Fix release script by building also for v3 and misc. improvements (#996) (by @bergmeister)
41+
- Scripts needed to build and sign PSSA via MS VSTS so it can be published in the gallery (#983) (by @JamesWTruher)
3442
- Move common test code into AppVeyor module (#961) (by @bergmeister)
3543
- Remove extraneous import-module commands in tests (#962) (by @JamesWTruher)
3644
- Upgrade 'System.Automation.Management' NuGet package of version 6.0.0-alpha13 to version 6.0.2 from powershell-core feed, which requires upgrade to netstandard2.0. NB: This highly improved behavior on WMF3 but also means that the latest patched version (6.0.2) of PowerShell Core should be used. (#919) by @bergmeister)
@@ -47,6 +55,12 @@
4755

4856
### Documentation, Error Messages and miscellaneous Improvements
4957

58+
- Added Chocolatey Install help, which has community support (#999) (Thanks @pauby)
59+
- Finalize Release Logs and bump version to 1.17 (#1002) (by @bergmeister)
60+
- Docker examples: (#987, #990) (by @bergmeister)
61+
- Use multiple GitHub issue templates for bugs, feature requests and support questions (#986) (by @bergmeister
62+
- Fix table of contents (#980) (by @bergmeister)
63+
- Improve documentation, especially about parameter usage and the settings file (#968) (by @bergmeister)
5064
- Add base changelog for 1.17.0 (#967) (by @bergmeister)
5165
- Remove outdated about_scriptanalyzer help file (#951) (by @bergmeister)
5266
- Fixes a typo and enhances the documentation for the parameters required for script rules (#942) (Thanks @MWL88!)

Engine/Engine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>1.16.1</VersionPrefix>
4+
<VersionPrefix>1.17.0</VersionPrefix>
55
<TargetFrameworks>netstandard2.0;net451</TargetFrameworks>
66
<AssemblyName>Microsoft.Windows.PowerShell.ScriptAnalyzer</AssemblyName>
77
<PackageId>Engine</PackageId>

Engine/PSScriptAnalyzer.psd1

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Author = 'Microsoft Corporation'
1111
RootModule = 'PSScriptAnalyzer.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.16.1'
14+
ModuleVersion = '1.17.0'
1515

1616
# ID used to uniquely identify this module
1717
GUID = 'd6245802-193d-4068-a631-8863a4342a18'
@@ -87,8 +87,83 @@ PrivateData = @{
8787
ProjectUri = 'https://github.com/PowerShell/PSScriptAnalyzer'
8888
IconUri = ''
8989
ReleaseNotes = @'
90-
### Fixed
91-
- (#815) Formatter crashes due to invalid extent comparisons
90+
### New Parameters
91+
92+
- Add `-ReportSummary` switch (#895) (Thanks @StingyJack! for the base work that got finalized by @bergmeister)
93+
- Add `-EnableExit` switch to Invoke-ScriptAnalyzer for exit and return exit code for CI purposes (#842) (by @bergmeister)
94+
- Add `-Fix` switch to `-Path` parameter set of `Invoke-ScriptAnalyzer` (#817, #852) (by @bergmeister)
95+
96+
### New Rules and Warnings
97+
98+
- Warn when 'Get-' prefix was omitted in `AvoidAlias` rule. (#927) (by @bergmeister)
99+
- `AvoidAssignmentToAutomaticVariable`. NB: Currently only warns against read-only automatic variables (#864, #917) (by @bergmeister)
100+
- `PossibleIncorrectUsageOfRedirectionOperator` and `PossibleIncorrectUsageOfAssignmentOperator`. (#859, #881) (by @bergmeister)
101+
- Add PSAvoidTrailingWhitespace rule (#820) (Thanks @dlwyatt!)
102+
103+
### Fixes and Improvements
104+
105+
- AvoidDefaultValueForMandatoryParameter triggers when the field has specification: Mandatory=value and value!=0 (#969) (by @kalgiz)
106+
- Do not trigger UseDeclaredVarsMoreThanAssignment for variables being used via Get-Variable (#925) (by @bergmeister)
107+
- Make UseDeclaredVarsMoreThanAssignments not flag drive qualified variables (#958) (by @bergmeister)
108+
- Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives when using += operator (#935) (by @bergmeister)
109+
- Tweak UseConsistentWhiteSpace formatting rule to exclude first unary operator when being used in argument (#949) (by @bergmeister)
110+
- Allow -Setting parameter to resolve setting presets as well when object is still a PSObject in BeginProcessing (#928) (by @bergmeister)
111+
- Add macos detection to New-CommandDataFile (#947) (Thanks @GavinEke!)
112+
- Fix PlaceOpenBrace rule correction to take comment at the end of line into account (#929) (by @bergmeister)
113+
- Do not trigger UseShouldProcessForStateChangingFunctions rule for workflows (#923) (by @bergmeister)
114+
- Fix parsing the -Settings object as a path when the path object originates from an expression (#915) (by @bergmeister)
115+
- Allow relative settings path (#909) (by @bergmeister)
116+
- Fix AvoidDefaultValueForMandatoryParameter documentation, rule and tests (#907) (by @bergmeister)
117+
- Fix NullReferenceException in AlignAssignmentStatement rule when CheckHashtable is enabled (#838) (by @bergmeister)
118+
- Fix FixPSUseDeclaredVarsMoreThanAssignments to also detect variables that are strongly typed (#837) (by @bergmeister)
119+
- Fix PSUseDeclaredVarsMoreThanAssignments when variable is assigned more than once to still give a warning (#836) (by @bergmeister)
120+
121+
### Engine, Building and Testing
122+
123+
- Allow TypeNotFound parser errors (#957) (by @bergmeister)
124+
- Scripts needed to build and sign PSSA via MS VSTS so it can be published in the gallery (#983) (by @JamesWTruher)
125+
- Move common test code into AppVeyor module (#961) (by @bergmeister)
126+
- Remove extraneous import-module commands in tests (#962) (by @JamesWTruher)
127+
- Upgrade 'System.Automation.Management' NuGet package of version 6.0.0-alpha13 to version 6.0.2 from powershell-core feed, which requires upgrade to netstandard2.0. NB: This highly improved behavior on WMF3 but also means that the latest patched version (6.0.2) of PowerShell Core should be used. (#919) by @bergmeister)
128+
- Add Ubuntu Build+Test to Appveyor CI (#940) (by @bergmeister)
129+
- Add PowerShell Core Build+Test to Appveyor CI (#939) (by @bergmeister)
130+
- Update Newtonsoft.Json NuGet package of Rules project from 9.0.1 to 10.0.3 (#937) (by @bergmeister)
131+
- Fix Pester v4 installation for `Visual Studio 2017` image and use Pester v4 assertion operator syntax (#892) (by @bergmeister)
132+
- Have a single point of reference for the .Net Core SDK version (#885) (by @bergmeister)
133+
- Fix regressions introduced by PR 882 (#891) (by @bergmeister)
134+
- Changes to allow tests to be run outside of CI (#882) (by @JamesWTruher)
135+
- Upgrade platyPS from Version 0.5 to 0.9 (#869) (by @bergmeister)
136+
- Build using .Net Core SDK 2.1.101 targeting `netstandard2.0` and `net451` (#853, #854, #870, #899, #912, #936) (by @bergmeister)
137+
- Add instructions to make a release (#843) (by @kapilmb)
138+
139+
### Documentation, Error Messages and miscellaneous Improvements
140+
141+
- Added Chocolatey Install help, which has community support (#999) (Thanks @pauby)
142+
- Finalize Release Logs and bump version to 1.17 (#998) (by @bergmeister)
143+
- Docker examples: (#987, #990) (by @bergmeister)
144+
- Use multiple GitHub issue templates for bugs, feature requests and support questions (#986) (by @bergmeister
145+
- Fix table of contents (#980) (by @bergmeister)
146+
- Improve documentation, especially about parameter usage and the settings file (#968) (by @bergmeister)
147+
- Add base changelog for 1.17.0 (#967) (by @bergmeister)
148+
- Remove outdated about_scriptanalyzer help file (#951) (by @bergmeister)
149+
- Fixes a typo and enhances the documentation for the parameters required for script rules (#942) (Thanks @MWL88!)
150+
- Remove unused using statements and sort them (#931) (by @bergmeister)
151+
- Make licence headers consistent across all .cs files by using the recommended header of PsCore (#930) (by @bergmeister)
152+
- Update syntax in ReadMe to be the correct one from get-help (#932) by @bergmeister)
153+
- Remove redundant, out of date Readme of RuleDocumentation folder (#918) (by @bergmeister)
154+
- Shorten contribution section in ReadMe and make it more friendly (#911) (by @bergmeister)
155+
- Update from Pester 4.1.1 to 4.3.1 and use new -BeTrue and -BeFalse operators (#906) (by @bergmeister)
156+
- Fix Markdown in ScriptRuleDocumentation.md so it renders correctly on GitHub web site (#898) (Thanks @MWL88!)
157+
- Fix typo in .Description for Measure-RequiresModules (#888) (Thanks @TimCurwick!)
158+
- Use https links where possible (#873) (by @bergmeister)
159+
- Make documentation of AvoidUsingPositionalParameters match the implementation (#867) (by @bergmeister)
160+
- Fix PSAvoidUsingCmdletAliases warnings of internal build/release scripts in root and Utils folder (#872) (by @bergmeister)
161+
- Add simple GitHub Pull Request template based off the one for PowerShell Core (#866) (by @bergmeister)
162+
- Add a simple GitHub issue template based on the one of PowerShell Core. (#865, #884) (by @bergmeister)
163+
- Fix Example 7 in Invoke-ScriptAnalyzer.md (#862) (Thanks @sethvs!)
164+
- Use the typewriter apostrophe instead the typographic apostrophe (#855) (Thanks @alexandear!)
165+
- Add justification to ReadMe (#848) (Thanks @KevinMarquette!)
166+
- Fix typo in README (#845) (Thanks @misterGF!)
92167
'@
93168
}
94169
}
@@ -114,3 +189,4 @@ PrivateData = @{
114189

115190

116191

192+

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Table of Contents
1818
- [Requirements](#requirements)
1919
- [Steps](#steps)
2020
- [Tests](#tests)
21+
+ [From Chocolatey](#from-chocolatey)
2122
- [Suppressing Rules](#suppressing-rules)
2223
- [Settings Support in ScriptAnalyzer](#settings-support-in-scriptanalyzer)
2324
* [Built-in Presets](#built-in-presets)
@@ -375,7 +376,7 @@ Contributions are welcome
375376

376377
There are many ways to contribute:
377378

378-
1. Open a new bug report, feature request or just ask a question by opening a new issue [here]( https://github.com/PowerShell/PSScriptAnalyzer/issues/new).
379+
1. Open a new bug report, feature request or just ask a question by opening a new issue [here]( https://github.com/PowerShell/PSScriptAnalyzer/issues/new/choose).
379380
2. Participate in the discussions of [issues](https://github.com/PowerShell/PSScriptAnalyzer/issues), [pull requests](https://github.com/PowerShell/PSScriptAnalyzer/pulls) and verify/test fixes or new features.
380381
3. Submit your own fixes or features as a pull request but please discuss it beforehand in an issue if the change is substantial.
381382
4. Submit test cases.

Rules/Rules.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>1.16.1</VersionPrefix>
4+
<VersionPrefix>1.17.0</VersionPrefix>
55
<TargetFrameworks>netstandard2.0;net451</TargetFrameworks>
66
<AssemblyName>Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules</AssemblyName>
77
<PackageId>Rules</PackageId>

tools/releaseBuild/signing.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@
2626
<job platform="" configuration="" dest="__OUTPATHROOT__\signed" jobname="PowerShell Script Analyzer PSv3" approvers="vigarg;gstolt">
2727
<file src="__INPATHROOT__\PSScriptAnalyzer\PSv3\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll" signType="AuthenticodeDual" dest="__OUTPATHROOT__\PSScriptAnalyzer\PSv3\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll" />
2828
<file src="__INPATHROOT__\PSScriptAnalyzer\PSv3\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll" signType="AuthenticodeDual" dest="__OUTPATHROOT__\PSScriptAnalyzer\PSv3\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll" />
29-
</job>
29+
</job>
30+
<job platform="" configuration="" dest="__OUTPATHROOT__\signed" jobname="PowerShell Script Analyzer PSv4" approvers="vigarg;gstolt">
31+
<file src="__INPATHROOT__\PSScriptAnalyzer\PSv4\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll" signType="AuthenticodeDual" dest="__OUTPATHROOT__\PSScriptAnalyzer\PSv4\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll" />
32+
<file src="__INPATHROOT__\PSScriptAnalyzer\PSv4\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll" signType="AuthenticodeDual" dest="__OUTPATHROOT__\PSScriptAnalyzer\PSv4\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll" />
33+
</job>
3034
</SignConfigXML>

0 commit comments

Comments
 (0)