Skip to content

Use https links where possible #873

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

Merged
merged 1 commit into from
Feb 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Engine/Commands/GetScriptAnalyzerRuleCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands
/// <summary>
/// GetScriptAnalyzerRuleCommand: Cmdlet to list all the analyzer rule names and descriptions.
/// </summary>
[Cmdlet(VerbsCommon.Get, "ScriptAnalyzerRule", HelpUri = "http://go.microsoft.com/fwlink/?LinkId=525913")]
[Cmdlet(VerbsCommon.Get, "ScriptAnalyzerRule", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=525913")]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link only re-directs to https://github.com/PowerShell/PSScriptAnalyzer/
Should we change it then to that?

public class GetScriptAnalyzerRuleCommand : PSCmdlet, IOutputWriter
{
#region Parameters
Expand Down
2 changes: 1 addition & 1 deletion Engine/Commands/InvokeScriptAnalyzerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands
"ScriptAnalyzer",
DefaultParameterSetName = "File",
SupportsShouldProcess = true,
HelpUri = "http://go.microsoft.com/fwlink/?LinkId=525914")]
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=525914")]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link only re-directs to https://github.com/PowerShell/PSScriptAnalyzer/
Should we change it then to that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joeyaiello opinion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fwlink is fine - it's the way we handle links so it need not change if we move the repo. The real question is whether pointing to github is appropriate. I think for now it's fine.

public class InvokeScriptAnalyzerCommand : PSCmdlet, IOutputWriter
{
#region Private variables
Expand Down
2 changes: 1 addition & 1 deletion Engine/Settings/CodeFormattingStroustrup.psd1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Inspired by http://eslint.org/docs/rules/brace-style#stroustrup
# Inspired by https://eslint.org/docs/rules/brace-style#stroustrup
@{
IncludeRules = @(
'PSPlaceOpenBrace',
Expand Down
2 changes: 1 addition & 1 deletion Engine/VariableAnalysisBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ internal static void DominanceFrontiers(List<Block> Blocks, Block Entry)
/// <summary>
/// Returns the immediate dominator of each block. The array returned is
/// indexed by postorder number of each block.
/// Based on http://www.cs.rice.edu/~keith/Embed/dom.pdf
/// Based on https://www.cs.rice.edu/~keith/Embed/dom.pdf
/// </summary>
/// <param name="entry"></param>
/// <param name="Blocks"></param>
Expand Down
2 changes: 1 addition & 1 deletion PowerShellBestPractices.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ The following guidelines come from a combined effort from both the PowerShell te
###Reference:
* Cmdlet Development Guidelines from MSDN site (Cmdlet Development Guidelines): https://msdn.microsoft.com/en-us/library/ms714657(v=vs.85).aspx
* The Community Book of PowerShell Practices (Compiled by Don Jones and Matt Penny and the Windows PowerShell Community): https://powershell.org/community-book-of-powershell-practices/
* PowerShell DSC Resource Design and Testing Checklist: http://blogs.msdn.com/b/powershell/archive/2014/11/18/powershell-dsc-resource-design-and-testing-checklist.aspx
* PowerShell DSC Resource Design and Testing Checklist: https://blogs.msdn.com/b/powershell/archive/2014/11/18/powershell-dsc-resource-design-and-testing-checklist.aspx
* DSC Guidelines can also be found in the DSC Resources Repository: https://github.com/PowerShell/DscResources
* The Unofficial PowerShell Best Practices and Style Guide: https://github.com/PoshCode/PowerShellPracticeAndStyle
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ Contributing to ScriptAnalyzer
==============================
You are welcome to contribute to this project. There are many ways to contribute:

1. Submit a bug report via [Issues]( https://github.com/PowerShell/PSScriptAnalyzer/issues). For a guide to submitting good bug reports, please read [Painless Bug Tracking](http://www.joelonsoftware.com/articles/fog0000000029.html).
1. Submit a bug report via [Issues]( https://github.com/PowerShell/PSScriptAnalyzer/issues). For a guide to submitting good bug reports, please read [Painless Bug Tracking](https://www.joelonsoftware.com/articles/fog0000000029.html).
2. Verify fixes for bugs.
3. Submit your fixes for a bug. Before submitting, please make sure you have:
* Performed code reviews of your own
Expand All @@ -366,7 +366,7 @@ You are welcome to contribute to this project. There are many ways to contribute
7. Tell others about the project.
8. Tell the developers how much you appreciate the product!

You might also read these two blog posts about contributing code: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza, and [Don’t “Push” Your Pull Requests](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik.
You might also read these two blog posts about contributing code: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza, and [Don’t “Push” Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik.

Before submitting a feature or substantial code contribution, please discuss it with the Windows PowerShell team via [Issues](https://github.com/PowerShell/PSScriptAnalyzer/issues), and ensure it follows the product roadmap. Note that all code submissions will be rigorously reviewed by the Windows PowerShell Team. Only those that meet a high bar for both quality and roadmap fit will be merged into the source.

Expand Down
2 changes: 1 addition & 1 deletion RuleDocumentation/ProvideCommentHelp.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Comment based help should be provided for all PowerShell commands. This test only checks for the presence of comment based help and not on the validity or format.

For assistance on comment based help, use the command ```Get-Help about_comment_based_help``` or the article, "How to Write Cmdlet Help" (http://go.microsoft.com/fwlink/?LinkID=123415).
For assistance on comment based help, use the command ```Get-Help about_comment_based_help``` or the article, "How to Write Cmdlet Help" (https://go.microsoft.com/fwlink/?LinkID=123415).

## Configuration

Expand Down
4 changes: 2 additions & 2 deletions Tests/Rules/GoodCmdlet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-File
[CmdletBinding(DefaultParameterSetName='Parameter Set 1',
SupportsShouldProcess=$true,
PositionalBinding=$false,
HelpUri = 'http://www.microsoft.com/',
HelpUri = 'https://www.microsoft.com/',
ConfirmImpact='Medium')]
[Alias()]
[OutputType([String], [System.Double], [Hashtable], "MyCustom.OutputType")]
Expand Down Expand Up @@ -134,7 +134,7 @@ function Get-Folder
[CmdletBinding(DefaultParameterSetName='Parameter Set 1',
SupportsShouldProcess,
PositionalBinding=$false,
HelpUri = 'http://www.microsoft.com/',
HelpUri = 'https://www.microsoft.com/',
ConfirmImpact='Medium')]
[Alias()]
[OutputType([String], [System.Double], [Hashtable], "MyCustom.OutputType")]
Expand Down