Commit graph

16 commits

Author SHA1 Message Date
xtqqczze 42d50434f8 Correct case of $PSCmdlet special variable 2020-01-13 19:19:12 +00:00
xtqqczze 04b292ab3b Correct case of $LASTEXITCODE special variable 2020-01-13 19:15:45 +00:00
Steve Lee c1c5344a88 Update copyright and license headers (#6134)
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files.

Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks.

Separate PR coming to update contribution document for new source files: #6140

Manually reviewed each change.

Fix #6073
2018-02-13 09:23:53 -08:00
Steve Lee 4bc52d2358 Use consistent '(c)' for copyright symbol (#5210)
- Remove the year about copyright
- Fix casing of `All rights reserved`
- Replace Unicode characters representing single quote with a single quote
2017-10-26 14:12:19 -07:00
bergmeister ffd39b2853 PSScriptAnalyzer fixes by category (#4261)
- Fix PSScriptAnalyzer warnings of type PSAvoidUsingCmdletAliases for 'ForEach-Object' (alias is '%' or 'foreach')
- Fix PSScriptAnalyzer warnings of type PSAvoidUsingCmdletAliases for 'Where-Object' (alias is '?' or 'where')
- Fix PSScriptAnalyzer warnings of type PSAvoidUsingCmdletAliases for 'Select-Object' (alias is 'select')
- Fix PSScriptAnalyzer warnings of type PSPossibleIncorrectComparisonWithNull. Essentially, $null has to be on the left-hand side when using it for comparison.
- A Test in ParameterBinding.Tests.ps1 needed adapting as this test used to rely on the wrong null comparison
- Replace a subset of tests of kind '($object -eq $null) | Should Be $true' with '$object | Should Be $null'
2017-07-21 21:03:49 -07:00
Jason Shirk 02b5f357a2 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Jason Shirk 7015e66bae Use -split operator to avoid error from new overload (#2796) 2016-11-28 14:01:45 -08:00
Josh Soref 28b8eece67 spelling fixes: demos (#2060) 2016-08-31 11:05:35 -07:00
Steve Lee 9c119e2781 Updated script to tag demo jobs and clean up afterwards; removed line that removes all jobs from start (#1783) 2016-08-12 17:41:56 -07:00
Manikyam Bavandla 5eef2cacc4 Removed Linux PSEdition name 2016-08-03 15:53:31 -07:00
Jason Shirk d300bf0ef7 Add README 2016-07-21 10:03:08 -07:00
Jason Shirk 3fb9315fce cleanup demo script 2016-07-21 09:56:14 -07:00
Jason Shirk 444769cb6b Add -Force to Remove-CronJob 2016-07-21 09:55:48 -07:00
Jason Shirk d7d516a066 Don't use Invoke-Expression 2016-07-21 09:40:03 -07:00
Jason Shirk af27a06f89 Fix Remove-CronTab to only remove the correct job(s) 2016-07-21 09:18:28 -07:00
Jason Shirk 3dafae5357 Move crontab demo to it's own directory
Also change CronTab.psd1 encoding to ASCII
2016-07-21 08:51:09 -07:00