Skip to content

Commit facaaf1

Browse files
authored
Use HTTPS for EsLint rule links (#985)
1 parent 324b47c commit facaaf1

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/Cake.Issues.EsLint.Tests/EsLintRuleUrlResolverTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public void Should_Throw_If_Rule_Is_WhiteSpace()
3535
}
3636

3737
[Theory]
38-
[InlineData("no-unused-vars", "http://eslint.org/docs/rules/no-unused-vars")]
39-
[InlineData("no-await-in-loop", "http://eslint.org/docs/rules/no-await-in-loop")]
38+
[InlineData("no-unused-vars", "https://eslint.org/docs/rules/no-unused-vars")]
39+
[InlineData("no-await-in-loop", "https://eslint.org/docs/rules/no-await-in-loop")]
4040
public void Should_Resolve_Url(string rule, string expectedUrl)
4141
{
4242
// Given

src/Cake.Issues.EsLint.Tests/LogFileFormat/JsonLogFileFormatTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void Should_Read_Issue_Correct()
3737
"Cake.Issues.EsLint.EsLintIssuesProvider",
3838
"ESLint")
3939
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 1, 10)
40-
.OfRule("no-unused-vars", new Uri("http://eslint.org/docs/rules/no-unused-vars"))
40+
.OfRule("no-unused-vars", new Uri("https://eslint.org/docs/rules/no-unused-vars"))
4141
.WithPriority(IssuePriority.Error)
4242
.Create());
4343
IssueChecker.Check(
@@ -47,7 +47,7 @@ public void Should_Read_Issue_Correct()
4747
"Cake.Issues.EsLint.EsLintIssuesProvider",
4848
"ESLint")
4949
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 2, 9)
50-
.OfRule("use-isnan", new Uri("http://eslint.org/docs/rules/use-isnan"))
50+
.OfRule("use-isnan", new Uri("https://eslint.org/docs/rules/use-isnan"))
5151
.WithPriority(IssuePriority.Error)
5252
.Create());
5353
IssueChecker.Check(
@@ -57,7 +57,7 @@ public void Should_Read_Issue_Correct()
5757
"Cake.Issues.EsLint.EsLintIssuesProvider",
5858
"ESLint")
5959
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 3, 16)
60-
.OfRule("space-unary-ops", new Uri("http://eslint.org/docs/rules/space-unary-ops"))
60+
.OfRule("space-unary-ops", new Uri("https://eslint.org/docs/rules/space-unary-ops"))
6161
.WithPriority(IssuePriority.Error)
6262
.Create());
6363
IssueChecker.Check(
@@ -67,7 +67,7 @@ public void Should_Read_Issue_Correct()
6767
"Cake.Issues.EsLint.EsLintIssuesProvider",
6868
"ESLint")
6969
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 3, 20)
70-
.OfRule("semi", new Uri("http://eslint.org/docs/rules/semi"))
70+
.OfRule("semi", new Uri("https://eslint.org/docs/rules/semi"))
7171
.WithPriority(IssuePriority.Warning)
7272
.Create());
7373
IssueChecker.Check(
@@ -77,7 +77,7 @@ public void Should_Read_Issue_Correct()
7777
"Cake.Issues.EsLint.EsLintIssuesProvider",
7878
"ESLint")
7979
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 4, 12)
80-
.OfRule("no-else-return", new Uri("http://eslint.org/docs/rules/no-else-return"))
80+
.OfRule("no-else-return", new Uri("https://eslint.org/docs/rules/no-else-return"))
8181
.WithPriority(IssuePriority.Warning)
8282
.Create());
8383
IssueChecker.Check(
@@ -87,7 +87,7 @@ public void Should_Read_Issue_Correct()
8787
"Cake.Issues.EsLint.EsLintIssuesProvider",
8888
"ESLint")
8989
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 5, 1)
90-
.OfRule("indent", new Uri("http://eslint.org/docs/rules/indent"))
90+
.OfRule("indent", new Uri("https://eslint.org/docs/rules/indent"))
9191
.WithPriority(IssuePriority.Warning)
9292
.Create());
9393
IssueChecker.Check(
@@ -97,7 +97,7 @@ public void Should_Read_Issue_Correct()
9797
"Cake.Issues.EsLint.EsLintIssuesProvider",
9898
"ESLint")
9999
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 5, 7)
100-
.OfRule("consistent-return", new Uri("http://eslint.org/docs/rules/consistent-return"))
100+
.OfRule("consistent-return", new Uri("https://eslint.org/docs/rules/consistent-return"))
101101
.WithPriority(IssuePriority.Error)
102102
.Create());
103103
IssueChecker.Check(
@@ -107,7 +107,7 @@ public void Should_Read_Issue_Correct()
107107
"Cake.Issues.EsLint.EsLintIssuesProvider",
108108
"ESLint")
109109
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 5, 13)
110-
.OfRule("semi", new Uri("http://eslint.org/docs/rules/semi"))
110+
.OfRule("semi", new Uri("https://eslint.org/docs/rules/semi"))
111111
.WithPriority(IssuePriority.Warning)
112112
.Create());
113113
IssueChecker.Check(
@@ -117,7 +117,7 @@ public void Should_Read_Issue_Correct()
117117
"Cake.Issues.EsLint.EsLintIssuesProvider",
118118
"ESLint")
119119
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js", 7, 2)
120-
.OfRule("no-extra-semi", new Uri("http://eslint.org/docs/rules/no-extra-semi"))
120+
.OfRule("no-extra-semi", new Uri("https://eslint.org/docs/rules/no-extra-semi"))
121121
.WithPriority(IssuePriority.Error)
122122
.Create());
123123
}
@@ -140,7 +140,7 @@ public void Should_Read_Issue_Without_Line_And_Column_Correct()
140140
"Cake.Issues.EsLint.EsLintIssuesProvider",
141141
"ESLint")
142142
.InFile(@"src\Cake.Issues.EsLint.Tests\Testfiles\fullOfProblems.js")
143-
.OfRule("some-rule", new Uri("http://eslint.org/docs/rules/some-rule"))
143+
.OfRule("some-rule", new Uri("https://eslint.org/docs/rules/some-rule"))
144144
.WithPriority(IssuePriority.Error)
145145
.Create());
146146
}

src/Cake.Issues.EsLint/EsLintRuleUrlResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class EsLintRuleUrlResolver : BaseRuleUrlResolver<BaseRuleDescription>
1616
private EsLintRuleUrlResolver()
1717
{
1818
this.AddUrlResolver(x =>
19-
new Uri("http://eslint.org/docs/rules/" + x.Rule));
19+
new Uri("https://eslint.org/docs/rules/" + x.Rule));
2020
}
2121

2222
/// <summary>

0 commit comments

Comments
 (0)