-
Notifications
You must be signed in to change notification settings - Fork 39
feat: general fixes #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: general fixes #196
Changes from all commits
e5c1a23
bc64d44
a752f92
eeb29f2
c58345d
b2c88d6
055c6ab
bf05b34
fd74479
8b5f186
ce13e2d
59baf77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ scope: raw | |
| nonword: true | ||
| level: warning | ||
| tokens: | ||
| - '^[ \t]*[$%]' | ||
| - '^[ \t]*[$%] [^\s]+' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -143,7 +143,7 @@ rules: | |
| expect: | ||
| triggers: [] | ||
| severity: error | ||
| 004-Canonical-product-names: # Not currently working for multi-word terms | ||
| 004-Canonical-product-names: | ||
| cases: | ||
| - id: canonical-product-names | ||
| filetypes: [md, rst] | ||
|
|
@@ -232,6 +232,11 @@ rules: | |
| Ubuntu Server is for data centres. | ||
| The Ubuntu project is open source. | ||
| Ubuntu provides a range of tools. | ||
| Lets try websites: | ||
| snapcraft.io is the Snapcraft website. | ||
| api.snapcraft.io is the Snapcraft API site. | ||
| https://api.snapcraft.io is using a protocol. | ||
|
Comment on lines
+235
to
+238
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be possible to add a couple of usages with angle brackets, to check that they're not flagged? To exercise the rules and also as representative of real docs (I'm curious how the angle brackets appear in practice).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, a good idea. This is the trouble with using a test file and then forgetting to translate some things to the formal test cases. |
||
| And :ref:`Snapcraft <snapcraft>` is a named reference. | ||
| expect: | ||
| triggers: [] | ||
| severity: error | ||
|
|
@@ -723,13 +728,30 @@ rules: | |
| - '50000' | ||
| - '65536' | ||
| severity: suggestion | ||
| - id: valid-comma-separated | ||
| filetypes: [md, rst] | ||
| - id: valid-comma-separated-rst | ||
| filetypes: [rst] | ||
| content: | | ||
| The file is 10,000 bytes. | ||
| Port 8080 is common. | ||
| Use 1234 as the identifier. | ||
| The value is 999 items. | ||
| The machine ID is ``12345``. | ||
| .. code:: | ||
| Port 555555 is invalid. | ||
| expect: | ||
| triggers: [] | ||
| severity: suggestion | ||
| - id: valid-comma-separated-md | ||
| filetypes: [md] | ||
| content: | | ||
| The file is 10,000 bytes. | ||
| Port 8080 is common. | ||
| Use 1234 as the identifier. | ||
| The value is 999 items. | ||
| The machine ID is `12345`. | ||
| ``` | ||
| Port 555555 is invalid. | ||
| ``` | ||
| expect: | ||
| triggers: [] | ||
| severity: suggestion | ||
|
|
@@ -744,12 +766,14 @@ rules: | |
| $ sudo apt update | ||
| % make install | ||
| $ snap install lxd | ||
| $ ./run-me.sh | ||
| ``` | ||
| expect: | ||
| triggers: | ||
| - '$' | ||
| - '%' | ||
| - ' $' | ||
| - '$ sudo' | ||
| - '% make' | ||
| - ' $ snap' | ||
| - '$ ./run-me.sh' | ||
| severity: warning | ||
| - id: prompts-in-rst-code | ||
| filetypes: [rst] | ||
|
|
@@ -760,18 +784,22 @@ rules: | |
|
|
||
| $ snap install lxd | ||
| % make build | ||
| $ ./run-me.sh | ||
| expect: | ||
| triggers: | ||
| - ' $' | ||
| - ' %' | ||
| - ' $ snap' | ||
| - ' % make' | ||
| - ' $ ./run-me.sh' | ||
| severity: warning | ||
| - id: valid-no-prompts | ||
| filetypes: [md, rst] | ||
| content: | | ||
| Reading package lists... | ||
| Building dependency tree... | ||
| ``` | ||
| Reading package lists "${variable}"... | ||
| Building dependency 5 % 2 == 1 | ||
| 0 upgraded, 1 newly installed. | ||
| Setting up lxd (latest) ... | ||
| ``` | ||
| expect: | ||
| triggers: [] | ||
| 016-No-inline-comments: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, is this a regex
?or a regular??There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regex, means that it accepts
APIandAPIs