Skip to content
Open
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
8 changes: 8 additions & 0 deletions testdata/features/lint.feature
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ Feature: Lint
"""
And the exit status should be 0

Scenario: Lint an AsciiDoc sentence after a document-header attribute (#1112)
When I lint AsciiDoc "test4.adoc"
Then the output should contain exactly:
"""
test4.adoc:2:283:Test.Semicolons:semicolon match
"""
And the exit status should be 1

Scenario: Lint a DITA file
When I lint "test.dita"
Then the output should contain exactly:
Expand Down
3 changes: 3 additions & 0 deletions testdata/fixtures/formats/adoc/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ Test.Rule2 = YES

[test3.adoc]
BasedOnStyles = Vale

[test4.adoc]
Test.Semicolons = YES
7 changes: 7 additions & 0 deletions testdata/fixtures/formats/adoc/styles/Test/Semicolons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "semicolon match"
scope: sentence
level: error
nonword: true
tokens:
- ';'
3 changes: 3 additions & 0 deletions testdata/fixtures/formats/adoc/test4.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:pdf-fontsdir: {sourcedir}/docs/themes/fonts;GEM_FONTS_DIR
the component fails two checks the phase requires, and screenshot of the full table hides both. The first pass uses the stock Tailwind utilities `text-yellow-500`, `text-gray-400`, and `text-amber-700`, not the theme tokens, so a later brand change to the teal would skip this table; and it applies them as colored text on a white header, where the muted colors fall below the contrast bar in xref:#done[] (the brand teal on white is about 2.5:1, under the 4.5:1 minimum for text). The art-direction note already calls for the theme color as a fill rather than as text, so the fix is a token-bound `bg-theme-*` fill with dark text on top, which both binds to the token and clears the contrast bar. An empty `records` array renders an empty bordered table, which a reader can't tell apart from a broken page. The refresh feed returns no values in the initial load, so that state is real, and the first pass left it unhandled.
.. *Correction*