Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes of 1.17.1 (including 1.17.0) into Master #1018

Merged
merged 132 commits into from
Jun 5, 2018
Merged
Changes from 1 commit
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
ef494a0
Add launch.json file
Aug 19, 2017
14121d1
Fix range validation in TextEdit.ApplyEdit
Aug 19, 2017
0637a36
Ignore no whitespace if new line after binary operator
Aug 19, 2017
088b27b
Merge pull request #815 from PowerShell/kapilmb/fix-formatter
Aug 22, 2017
77ff614
Add AutoFix switch parameter for 'File' parameter set, which uses the…
bergmeister Aug 30, 2017
08896da
Update changelog
Sep 1, 2017
0f09ec4
Update module manifest
Sep 1, 2017
e46e146
Bump version to 1.16.1
Sep 1, 2017
b82f57c
Merge pull request #818 from PowerShell/kapilmb/v1.16.1
Sep 1, 2017
ef75719
PR 817: Name switch 'Fix' and preserver Encoding of the file. However…
bergmeister Sep 12, 2017
24732ee
PR 817 Minor syntax fix for markdown file
bergmeister Sep 12, 2017
aeead84
Add PSAvoidTrailingWhitespace rule
dlwyatt Sep 28, 2017
b457755
Fix other tests that failed as a result of adding a new default rule
dlwyatt Sep 29, 2017
6512285
Fix one other test file with trailing whitespace
dlwyatt Sep 29, 2017
02f3bfd
Merge branch 'master' into development
Sep 30, 2017
4dc4aeb
Improve encoding handling by not using the detectEncodingFromByteOrde…
bergmeister Sep 30, 2017
5480c14
Add documentation file
dlwyatt Oct 6, 2017
792fe30
improve wording of help as suggested in PR
bergmeister Nov 6, 2017
5a2f47b
Add simple test for -Fix switch
bergmeister Nov 6, 2017
023f9e3
improve test by restoring original file and also asserting against th…
bergmeister Nov 6, 2017
5d0b52d
Merge branch 'master' of https://github.com/PowerShell/PSScriptAnalyz…
bergmeister Nov 6, 2017
78d9663
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister Nov 6, 2017
6edeef4
Clean up test
bergmeister Nov 6, 2017
e7e01b9
Merge pull request #820 from dlwyatt/AvoidTrailingWhitespace
Nov 8, 2017
f129846
Refactor 'fix' switch out of AnalyzePath method as requested in PR
bergmeister Nov 8, 2017
bfa1c54
Implement SupportShouldProcess for InvokeScriptAnalyzerCommand down t…
bergmeister Nov 8, 2017
50af5d2
Adapt the full .net wrapper in LibraryUsage.tests.ps1 with the -fix s…
bergmeister Nov 8, 2017
771ffb6
Fix Func wrapper in LibraryUsage.tests.ps1
bergmeister Nov 8, 2017
701c264
Another fix to LibraryUsage.tests.ps1 to accomodate -Fix switch and a…
bergmeister Nov 8, 2017
a16c232
Always return true for shouldprocess
bergmeister Nov 9, 2017
e64335f
Add supportshouldprocess to full .net wrapper library
bergmeister Nov 9, 2017
4297ff4
Add 'WhatIf' to common words for help tests
bergmeister Nov 9, 2017
9785993
Add 'Confirm' to common words for help tests
bergmeister Nov 9, 2017
14197ce
Add debug line to debug failing test
bergmeister Nov 9, 2017
fffcd76
Add more debug info for test failure
bergmeister Nov 9, 2017
c707a1e
Add comment about deliberate whitespace warning
bergmeister Nov 9, 2017
9d4e8ef
Number of expected warnings now 5 in -fix test due to PSAvoidTrailin…
bergmeister Nov 9, 2017
c0f881d
Update expected test file
bergmeister Nov 9, 2017
c59b6b0
Remove trailing whitespace in expected file since this gets fixed now
bergmeister Nov 9, 2017
6f6896a
Remove debugging line since test passes now
bergmeister Nov 9, 2017
f5ac9eb
Set-Content -NoNewline was only introduced in PS v5 and would therefo…
bergmeister Nov 9, 2017
8e46750
Syntax fix of last commit
bergmeister Nov 9, 2017
e184e3b
Another small syntax fix (sorry, I am commiting from my mobile)
bergmeister Nov 9, 2017
0df445b
Return $pscmdlet.shouldprocess in .net test wrapper
bergmeister Nov 9, 2017
8525e03
Optimize -Fix switch to only write the fixed file to disk if any fixe…
bergmeister Nov 13, 2017
e12c4a6
Merge branch 'AutoFixWarnings' of https://github.com/bergmeister/PSSc…
bergmeister Nov 13, 2017
2056fe0
Merge pull request #817 from bergmeister/AutoFixWarnings
Nov 30, 2017
667aea5
Fix PSUseDeclaredVarsMoreThanAssignments when variable is assigned mo…
bergmeister Dec 3, 2017
faf4886
Fix FixPSUseDeclaredVarsMoreThanAssignments to also detect variables …
bergmeister Dec 3, 2017
68840ac
Add PSUseDeclaredVarsMoreThanAssignments test for strongly typed vari…
bergmeister Dec 3, 2017
f7e4637
add tests to PSUseDeclaredVarsMoreThanAssignments to check that it fl…
bergmeister Dec 3, 2017
7aa15bb
Add instuctions to make a release (#843)
Dec 15, 2017
5051bd3
Fix typo in README
misterGF Dec 29, 2017
06732fd
Add Justification to the first example
KevinMarquette Jan 18, 2018
fbc5046
added colon
KevinMarquette Jan 18, 2018
4c25c54
Merge pull request #845 from misterGF/patch-1
JamesWTruher Jan 20, 2018
49e3fbe
Merge pull request #848 from KevinMarquette/kevinmarquette/justification
JamesWTruher Jan 20, 2018
8fdb7ae
Merge pull request #836 from bergmeister/FixPSUseDeclaredVarsMoreThan…
JamesWTruher Jan 20, 2018
a2ab2de
Merge pull request #837 from bergmeister/FixPSUseDeclaredVarsMoreThan…
JamesWTruher Jan 20, 2018
26f623a
Fix NullReferenceException in AlignAssignmentStatement rule when Chec…
bergmeister Jan 21, 2018
cfea14f
Add documentation for -Fix switch to README.md (#852)
bergmeister Jan 21, 2018
e973047
Add -EnableExit switch to Invoke-ScriptAnalyzer for exit and return e…
bergmeister Jan 21, 2018
9ea3810
Upgrade .Net Core SDK from '1.0 Preview 2' to '1.1.5' (this is the LT…
bergmeister Jan 21, 2018
9e37dd3
Upgrade from .Net Core SDK 1.1 to 2.1.4 (#854)
bergmeister Jan 22, 2018
1cda9d3
Use the typewriter apostrophe ( ' ) instead the typographic apostroph…
alexandear Jan 22, 2018
3f08895
Fix Example 7 in Invoke-ScriptAnalyzer.md. (#862)
sethvs Feb 2, 2018
048c7f3
Warn when an if statement contains an assignment (#859)
bergmeister Feb 5, 2018
d918da8
Add a simple GitHub issue template based on the one of PowerShell Cor…
bergmeister Feb 5, 2018
3adb9df
Add simple GitHub Pull Request template based off the one for PowerSh…
bergmeister Feb 5, 2018
79fe37f
Fix PSAvoidUsingCmdletAliases warnings in root and Utils folder using…
bergmeister Feb 6, 2018
b5afd5d
Make documentation of AvoidUsingPositionalParameters match the implem…
bergmeister Feb 6, 2018
ed21cf8
use https links where possible (tested) (#873)
bergmeister Feb 7, 2018
539e28e
Adapt release script and documentation due to upgrade to .Net Core 2.…
bergmeister Feb 7, 2018
d432e00
Warn against assignment to read-only automatic variables (#864)
bergmeister Feb 7, 2018
54c4bf7
Upgrade platyPS from Version 0.5 to 0.9 (#869)
bergmeister Feb 9, 2018
d424544
fix GitHub issue template (file ended in .md.txt instead of .md) (#884)
bergmeister Feb 12, 2018
c54c8fe
Fix typo in .Description for Measure-RequiresModules (#888)
TimCurwick Feb 15, 2018
de28e4f
Changes to allow tests to be run outside of CI (#882)
JamesWTruher Feb 16, 2018
8f20c98
Fix Markdown linting warnings so it now renders in GitHub (#898)
MWL88 Feb 20, 2018
22c062c
Fix regressions introduced by PR 882 (#891)
bergmeister Feb 20, 2018
5d818d1
remove unneeded restore tasks because .net core 2 does it automatical…
bergmeister Feb 20, 2018
ebc413a
Have a single point of reference for the .Net Core SDK version (#885)
bergmeister Feb 20, 2018
6aeb4f6
Fix Pester v4 installation for `Visual Studio 2017` image and use Pes…
bergmeister Feb 20, 2018
bdb8707
Update from Pester 4.1.1 to 4.3.1 and use new -BeTrue and -BeFalse op…
bergmeister Feb 26, 2018
30eb91a
Fix AvoidDefaultValueForMandatoryParameter documentation, rule and te…
bergmeister Feb 26, 2018
cad6f47
Shorten contribution section in ReadMe and make it more friendly (#911)
bergmeister Feb 27, 2018
d4ba947
Allow relative settings path (#909)
bergmeister Feb 28, 2018
304d300
Remove old, redundant DNX relict (#912)
bergmeister Mar 2, 2018
367384a
Finalise new -ReportSummary switch (#895)
bergmeister Mar 2, 2018
6421cc9
Remove redundant Readme of RuleDocumentation folder, which is out of …
bergmeister Mar 4, 2018
bc5b2dd
Fix parsing the -Settings object as a path when the path object origi…
bergmeister Mar 5, 2018
f002c1c
Do not trigger UseShouldProcessForStateChangingFunctions rule for wor…
bergmeister Mar 6, 2018
7fa645c
update syntax to be the correct one from get-help (#932)
bergmeister Mar 12, 2018
79d8b5e
Update .Net Core SDK from 2.1.4 to 2.1.101 (#936)
bergmeister Mar 16, 2018
03ee3c4
Make licence headers consistent across all files by using the recomme…
bergmeister Mar 16, 2018
3cd2910
Update Newtonsoft.Json NuGet package of Rules project from 9.0.1 to 1…
bergmeister Mar 20, 2018
6146546
Remove unused using statements and sort them (#931)
bergmeister Mar 20, 2018
d6dc001
Fix typo (#942)
MWL88 Mar 21, 2018
021711e
Add PowerShell Core Build+Test to Appveyor CI (#939)
bergmeister Mar 21, 2018
a7d23f7
Fix PlaceOpenBrace rule correction to take comment at the end of line…
bergmeister Mar 23, 2018
7fd10cd
Add macos detection to New-CommandDataFile (#947)
GavinEke Mar 27, 2018
a503078
Warn when 'Get-' prefix was omitted as part of the PSAvoidUsingCmdlet…
bergmeister Mar 28, 2018
d1bec74
Allow -Setting parameter to resolve setting presets as well when obje…
bergmeister Mar 28, 2018
00c4787
Tweak UseConsistentWhitespace formatting rule to exclude first unary …
bergmeister Mar 28, 2018
2427610
Add Ubuntu Build+Test to Appveyor CI (#940)
bergmeister Mar 30, 2018
6a8e828
Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives …
bergmeister Mar 30, 2018
1a8d285
Make UseDeclaredVarsMoreThanAssignments not flag drive qualified vari…
bergmeister Apr 2, 2018
7304362
Upgrade 'System.Automation.Management' NuGet package of version 6.0.0…
bergmeister Apr 5, 2018
83af8ed
Remove extraneous import-module commands (#962)
JamesWTruher Apr 5, 2018
ac707f8
Move common test code into AppVeyor module (#961)
bergmeister Apr 9, 2018
6e892b9
Warn when using FileRedirection operator inside if/while statements a…
bergmeister Apr 9, 2018
2fc3911
Remove outdated about_scriptanalyzer help file (#951)
bergmeister Apr 9, 2018
7c1ca74
Add warnings about read-only automatic variables introduced in PowerS…
bergmeister Apr 9, 2018
6966d51
Add base changelog for 1.17.0 (#967)
bergmeister Apr 12, 2018
0e7cca6
Improve documentation, especially about parameter usage and the setti…
bergmeister Apr 23, 2018
c315bc5
Add Docker images that work with PSSA to ReadMe and give examples (#987)
bergmeister May 7, 2018
1479ed6
Scripts needed to build and sign PSSA via MS VSTS so it can be publis…
JamesWTruher May 8, 2018
9e38cdb
Fix table of contents (#980)
bergmeister May 11, 2018
b99ceb2
Add NanoServer Docker example and summarize all docker examples bette…
bergmeister May 11, 2018
ac22b0e
Allow TypeNotFound parser errors (#957)
bergmeister May 11, 2018
f02b392
Use multiple GitHub issue templates for bugs, feature requests and su…
bergmeister May 11, 2018
703ebe4
Do not trigger UseDeclaredVarsMoreThanAssignment for variables being …
bergmeister May 11, 2018
a035491
AvoidDefaultValueForMandatoryParameter triggers when the field has sp…
kalgiz May 11, 2018
7408fe2
Added Chocolatey Install help (#999)
pauby May 14, 2018
606c9eb
fix release script by building also for v3 and misc. improvements (#996)
bergmeister May 17, 2018
c632ea1
If no path is found or when using the -ScriptDefinition parameter set…
bergmeister May 17, 2018
f1222ef
Add CommandData files of PowerShell Core 6.0.2 for Windows/Linux/mac…
bergmeister May 17, 2018
e5ae9df
Support SuggestedCorrections property on DiagnosticRecord for script …
bergmeister May 17, 2018
a22fd0f
Fix table to refer to existing md files, add col for Configurable (#988)
rkeithhill Jun 5, 2018
23095f6
Fix NullReferenceException in AvoidAssignmentToAutomaticVariable rule…
bergmeister Jun 5, 2018
57879ca
Merge 1.17.0 branch into development (#1015)
bergmeister Jun 5, 2018
617476b
Update to 1.17.1 (Update changelog, ran New-Release and updated versi…
bergmeister Jun 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add macos detection to New-CommandDataFile (#947)
* Add macos detection to New-CommandDataFile

* Remove old 'elseif ($IsOSX)' since there is no need to support old Beta versions.
  • Loading branch information
GavinEke authored and bergmeister committed Mar 27, 2018
commit 7fd10cd5d16265b7b1da7b812732cb7cd797aebd
6 changes: 3 additions & 3 deletions Utils/New-CommandDataFile.ps1
Original file line number Diff line number Diff line change
@@ -56,9 +56,9 @@ Function Get-CmdletDataFileName
{
$os = 'linux'
}
elseif ($IsOSX)
elseif ($IsMacOS)
{
$os = 'osx'
$os = 'macos'
}
# else it is windows, which is already set
}
@@ -112,4 +112,4 @@ Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedAliases' -No

$allShortModuleInfos = $shortModuleInfos + $shortModuleInfo
$jsonData['Modules'] = $allShortModuleInfos
$jsonData | ConvertTo-Json -Depth 4 | Out-File ((Get-CmdletDataFileName)) -Encoding utf8
$jsonData | ConvertTo-Json -Depth 4 | Out-File ((Get-CmdletDataFileName)) -Encoding utf8