From d28592436f48afb966545f130e1dd6fc657c8cdf Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Tue, 11 Jun 2019 10:32:34 +0100 Subject: [PATCH 1/3] CHANGELOG for 1.18.1 --- CHANGELOG.MD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 85fdea432..70cc90f8b 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,61 @@ # CHANGELOG +## [1.18.1](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.18.1) - 2019-06-12 + +### Fixes + +- Formatter + - UseCorrectCasing + - Do not use alias name as key for command info cache to fix the problem where UseCorrectCasing corrects aliases (#1216) (by @bergmeister) + - UseCorrectCasing: Fix wildcard lookups for command lookup and do not append .exe for applications on Windows (#1210) (by @bergmeister) + - Prevent PSCloseBrace crash if hashtable definition start on first token and there is a PSCloseBrace violation (#1235) (by @bergmeister) + - PipelineIndentationStyle + - Fix formatting regression in 1.18.0 whereby single-line pipeline reduces indentation level incorrectly (#1191) (by @bergmeister) + - Make IncreaseIndentationForFirstPipeline the true default option for PipelineIndentationStyle option (#1218) (by @bergmeister) + +- Compatibility Rules + - Fix UseCompatibleSyntax class error message (#1215) (by @rjmholt) + - Convert compatibility module to binary module, fix compatibility with Azure environments (#1212) (by @rjmholt) + - Prevent .NET members with names differing only by case from crashing the compatibility profiler (#1195) (by @rjmholt) + - Fix compatibility profile query API so that aliases referring to other modules appear (#1194) (by @rjmholt) + +- DSC + - Instead of using the first cimClass and then having no superClass, use the first cimClass that has a non-null superClass (#1200) (by @bergmeister, thanks to @ykuijs! for the great collaboration) + - Make `-SaveDscDependency` work on Linux (#1246) (by @bergmeister) + +- Fix NullReferenceException for class type (#1182) (by @bergmeister) + +### Performance + +2 improvements were made that make cold runs of ScriptAnalyzer twice as fast compared to `1.18.0` + +- Speedup cold runs by using a runspace pool (#1178) (by @bergmeister) +- Fix logic errors in AvoidAlias rule to halve the amount of necessary calls to `Get-Command`, making the rule twice (#1251) (by @JamesWTruher) + +### General Improvements + +- Add ImplementingType to RuleInfo object for better settings file validation and settings template file creation (#1250) (by @JamesWTruher) +- Fix typo in AvoidDefaultValueForMandatoryParameterError resource string (#1233) (Thanks @tnieto88!) +- Change module root find function in CompatibilityRule (#1196) (by @rjmholt) + +### Documentation + +- Update PossibleIncorrectComparisonWithNull documentation with better example (#1244, #1226 and #1220) (by @bergmeister and thanks to @PrzemyslawKlys and @lesterw1!) +- Compatibility rules documentation fixes (#1229, #1204, #1225 and #1221) (by @rjmholt, @bergmeister and thanks @skycommand!) +- Update README.md on supported PowerShell Core version and update Docker examples (#1188) (Thanks @PrzemyslawKlys!) +- Update UseConsistentWhitespace documentation to show all options (#1185) (by @bergmeister) + +### Build + +- Make it possible to build ScriptAnalyzer with PowerShell7 (#1256) (by @bergmeister) +- Update signing file for versioned location of module (#1253) (by @JamesWTruher) +- Bump version to 1.18.1 (#1248) (by @bergmeister) +- Change build script to install into a versioned directory (#1247) (by @JamesWTruher) +- Remove code for deprecated rules that is not used any more (#1232) (by @bergmeister) +- Speedup CI builds by skipping the first time initialization of the bootstrapped dotnet CLI (#1211) (by @bergmeister) +- Add suppression of warning for MS policy (#1205) (by @JamesWTruher) +- Change logic for copying profiles into the 'install' directory (#1197) (by @JamesWTruher) + ## [1.18.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.18.0) - 2019-03-21 ### Breaking Changes From 17cc1fe651d422a3b5497d5e5c9e047f9aae1975 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Tue, 11 Jun 2019 22:00:59 +0100 Subject: [PATCH 2/3] update changelog --- CHANGELOG.MD | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 70cc90f8b..00fe2cdef 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -23,6 +23,7 @@ - Instead of using the first cimClass and then having no superClass, use the first cimClass that has a non-null superClass (#1200) (by @bergmeister, thanks to @ykuijs! for the great collaboration) - Make `-SaveDscDependency` work on Linux (#1246) (by @bergmeister) +- Enable suppression of custom rules when used together with `-IncludeDefaultRules` to allow all possible scenarios from 1.17.1 and 1.18.0. This removes also the check if the rule name in the suppression attribute can be found because this check is technically not possible in all scenarios (#1245) (by @bergmeister) - Fix NullReferenceException for class type (#1182) (by @bergmeister) ### Performance From aeec8b3e0c1e4d89c4f65e6d605be8b2ffeaea78 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Wed, 12 Jun 2019 20:01:04 +0100 Subject: [PATCH 3/3] Update CHANGELOG.MD --- CHANGELOG.MD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 00fe2cdef..c58ed7cd8 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,7 +7,8 @@ - Formatter - UseCorrectCasing - Do not use alias name as key for command info cache to fix the problem where UseCorrectCasing corrects aliases (#1216) (by @bergmeister) - - UseCorrectCasing: Fix wildcard lookups for command lookup and do not append .exe for applications on Windows (#1210) (by @bergmeister) + - Fix wildcard lookups for command lookup and do not append .exe for applications on Windows (#1210) (by @bergmeister) + - Do not correct applications or script paths at all (#1255) (by @bergmeister) - Prevent PSCloseBrace crash if hashtable definition start on first token and there is a PSCloseBrace violation (#1235) (by @bergmeister) - PipelineIndentationStyle - Fix formatting regression in 1.18.0 whereby single-line pipeline reduces indentation level incorrectly (#1191) (by @bergmeister)