Skip to content

Commit

Permalink
Disable "form-dup-name" rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Aug 4, 2023
1 parent 998c4ef commit 7d00a5e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/Modules/OrchardCore.Commerce/Views/Checkout.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@using OrchardCore.Commerce.Controllers;
@using OrchardCore.Commerce.Tax.Extensions
@using OrchardCore.Mvc.Core.Utilities;

@model CheckoutViewModel

Expand Down Expand Up @@ -99,7 +97,7 @@
prop-NetTotal="@Model.NetTotal"
prop-GrossTotal="@Model.GrossTotal"
prop-PublishableKey="@Model.StripePublishableKey"
prop-ClientSecret="@Model.PaymentIntentClientSecret"/>
prop-ClientSecret="@Model.PaymentIntentClientSecret"/>
}
else
{
Expand Down
18 changes: 18 additions & 0 deletions test/OrchardCore.Commerce.Tests.UI/.htmlvalidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": [
"html-validate:recommended"
],

"rules": {
"attribute-boolean-style": "off",
"no-trailing-whitespace": "off",
"no-inline-style": "off",
"wcag/h30": "off",
"wcag/h32": "off",
"wcag/h36": "off",
"wcag/h37": "off",
"wcag/h67": "off",
"wcag/h71": "off",
"form-dup-name": "off"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@
<ProjectReference Include="..\OrchardCore.Commerce.Tests.UI.Shortcuts\OrchardCore.Commerce.Tests.UI.Shortcuts.csproj" />
</ItemGroup>


<ItemGroup>
<None Update=".htmlvalidate.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>

0 comments on commit 7d00a5e

Please sign in to comment.