Skip to content

Commit

Permalink
Use common/ folder for ASCIIdoc parts shared between languages (#3679)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-kebets-sonarsource authored Feb 23, 2024
1 parent 1a0597f commit 2f4d9c3
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 30 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion rules/S6827/html/rule.adoc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include::../rule.adoc[]
include::../common/rule.adoc[]
2 changes: 1 addition & 1 deletion rules/S6827/javascript/rule.adoc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include::../rule.adoc[]
include::../common/rule.adoc[]
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions rules/S6841/html/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include::../why.adoc[]
include::../common/why.adoc[]

include::../how.adoc[]
include::../common/how.adoc[]

=== Code examples

Expand All @@ -27,4 +27,4 @@ include::../how.adoc[]
</div>
----

include::../resources.adoc[]
include::../common/resources.adoc[]
6 changes: 3 additions & 3 deletions rules/S6841/javascript/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include::../why.adoc[]
include::../common/why.adoc[]

include::../how.adoc[]
include::../common/how.adoc[]

=== Code examples

Expand Down Expand Up @@ -36,4 +36,4 @@ function MyDiv() {
}
----

include::../resources.adoc[]
include::../common/resources.adoc[]
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions rules/S6846/html/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../why.adoc[]
include::../common/why.adoc[]

[source,html,diff-id=1,diff-type=noncompliant]
----
Expand All @@ -12,4 +12,4 @@ Do not use ``accesskey``s at all.
<div />
----

include::../resources.adoc[]
include::../common/resources.adoc[]
4 changes: 2 additions & 2 deletions rules/S6846/javascript/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../why.adoc[]
include::../common/why.adoc[]

[source,javascript,diff-id=1,diff-type=noncompliant]
----
Expand All @@ -16,4 +16,4 @@ function div() {
}
----

include::../resources.adoc[]
include::../common/resources.adoc[]
File renamed without changes.
4 changes: 2 additions & 2 deletions rules/S6850/html/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../rule.adoc[tag=header]
include::../common/rule.adoc[tag=header]

=== Code examples

Expand Down Expand Up @@ -42,4 +42,4 @@ include::../rule.adoc[tag=header]
<p>Understanding how to declare and use functions in JavaScript.</p>
----

include::../rule.adoc[tag=footer]
include::../common/rule.adoc[tag=footer]
4 changes: 2 additions & 2 deletions rules/S6850/javascript/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include::../rule.adoc[tag=header]
include::../common/rule.adoc[tag=header]

=== Code examples

Expand Down Expand Up @@ -54,4 +54,4 @@ function JavaScript101() {
}
----

include::../rule.adoc[tag=footer]
include::../common/rule.adoc[tag=footer]
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions rules/S6851/html/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include::../why.adoc[]
include::../common/why.adoc[]

include::../how.adoc[]
include::../common/how.adoc[]

=== Code examples

Expand All @@ -18,4 +18,4 @@ include::../how.adoc[]
<img src="sunrise.jpg" alt="a sunrise over a mountain range" />
----

include::../resources.adoc[]
include::../common/resources.adoc[]
6 changes: 3 additions & 3 deletions rules/S6851/javascript/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include::../why.adoc[]
include::../common/why.adoc[]

include::../how.adoc[]
include::../common/how.adoc[]

=== Code examples

Expand All @@ -22,4 +22,4 @@ function MyImage() {
}
----

include::../resources.adoc[]
include::../common/resources.adoc[]
File renamed without changes.
8 changes: 4 additions & 4 deletions rules/S6853/html/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include::../rule.adoc[tag=why]
include::../common/rule.adoc[tag=why]

include::../rule.adoc[tag=how]
include::../common/rule.adoc[tag=how]

include::../rule.adoc[tag=examples]
include::../common/rule.adoc[tag=examples]

include::../rule.adoc[tag=resources]
include::../common/rule.adoc[tag=resources]
8 changes: 4 additions & 4 deletions rules/S6853/javascript/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include::../rule.adoc[tag=why]
include::../common/rule.adoc[tag=why]

include::../rule.adoc[tag=how]
include::../common/rule.adoc[tag=how]

include::../rule.adoc[tag=examples]
include::../common/rule.adoc[tag=examples]

==== Noncompliant code example

Expand All @@ -21,4 +21,4 @@ include::../rule.adoc[tag=examples]
</label>
----

include::../rule.adoc[tag=resources]
include::../common/rule.adoc[tag=resources]

0 comments on commit 2f4d9c3

Please sign in to comment.