-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fd9881
commit a3aee08
Showing
7 changed files
with
35 additions
and
193 deletions.
There are no files selected for viewing
89 changes: 4 additions & 85 deletions
89
analyzers/its/sources/BlazorSample/BlazorSample/Pages/S6797/S6797.NoRoute.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,9 @@ | ||
<p> | ||
Component parameters supplied from the query string support the following types: | ||
<ul> | ||
<li>bool, DateTime, decimal, double, float, Guid, int, long, string.</li> | ||
<li>Nullable variants of the preceding types.</li> | ||
<li>Arrays of the preceding types, whether they're nullable or not nullable.</li> | ||
</ul> | ||
</p> | ||
|
||
@code { | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public bool BoolParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public DateTime DateTimeParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public decimal DecimalParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public double DoubleParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public float FloatParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Guid GuidParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public int IntParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public long LongParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public string StringParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public bool? NullableBoolParamShortForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Nullable<bool> NullableBoolParamLongForm { get; set; } // Compliant | ||
@code { | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public bool?[] ArrayOfNullableBoolParamShortForm { get; set; } // Compliant | ||
public bool BoolParam { get; set; } | ||
|
||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Nullable<bool>[] ArrayOfNullableBoolParamLongForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public TimeSpan TimeSpan { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public TimeSpan? NullableTimeSpan { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Nullable<TimeSpan> NullableTimeSpanLongForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public TimeSpan[] TimeSpanArrayLongForm { get; set; } // Compliant | ||
[Parameter] | ||
public TimeSpan TimeSpanParam { get; set; } // Compliant | ||
[Parameter] | ||
public TimeSpan? NullableTimeSpanParam { get; set; } // Compliant | ||
[Parameter] | ||
public Nullable<TimeSpan> NullableTimeSpanLongFormParam { get; set; } // Compliant | ||
[Parameter] | ||
public TimeSpan[] TimeSpanArrayLongFormParam { get; set; } // Compliant | ||
} | ||
public DateTime DateTimeParam { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 3 additions & 87 deletions
90
analyzers/its/sources/BlazorSample/BlazorSample/Pages/S6797/S6797.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,11 @@ | ||
@page "/query-parameters" | ||
<p> | ||
Component parameters supplied from the query string support the following types: | ||
<ul> | ||
<li>bool, DateTime, decimal, double, float, Guid, int, long, string.</li> | ||
<li>Nullable variants of the preceding types.</li> | ||
<li>Arrays of the preceding types, whether they're nullable or not nullable.</li> | ||
</ul> | ||
</p> | ||
|
||
@code { | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public bool BoolParam { get; set; } // Compliant | ||
public bool BoolParam { get; set; } | ||
|
||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public DateTime DateTimeParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public decimal DecimalParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public double DoubleParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public float FloatParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Guid GuidParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public int IntParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public long LongParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public string StringParam { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public bool? NullableBoolParamShortForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Nullable<bool> NullableBoolParamLongForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public bool?[] ArrayOfNullableBoolParamShortForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Nullable<bool>[] ArrayOfNullableBoolParamLongForm { get; set; } // Compliant | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public TimeSpan TimeSpan { get; set; } // Noncompliant {{Query parameter type 'TimeSpan' is not supported.}} | ||
// ^^^^^^^^ | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public TimeSpan? NullableTimeSpan { get; set; } // Noncompliant {{Query parameter type 'TimeSpan' is not supported.}} | ||
// ^^^^^^^^^ | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public Nullable<TimeSpan> NullableTimeSpanLongForm { get; set; } // Noncompliant {{Query parameter type 'TimeSpan' is not supported.}} | ||
// ^^^^^^^^^^^^^^^^^^ | ||
[Parameter] | ||
[SupplyParameterFromQuery] | ||
public TimeSpan[] TimeSpanArrayLongForm { get; set; } // Noncompliant {{Query parameter type 'TimeSpan' is not supported.}} | ||
// ^^^^^^^^^^ | ||
[Parameter] | ||
public TimeSpan TimeSpanParam { get; set; } // Compliant | ||
[Parameter] | ||
public TimeSpan? NullableTimeSpanParam { get; set; } // Compliant | ||
[Parameter] | ||
public Nullable<TimeSpan> NullableTimeSpanLongFormParam { get; set; } // Compliant | ||
[Parameter] | ||
public TimeSpan[] TimeSpanArrayLongFormParam { get; set; } // Compliant | ||
} | ||
public DateTime DateTimeParam { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters