-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tweaks to rules from usage (#26)
* Add tweaks to rules from usage * Pull in changed from qiskit-ibm-runtime * Switch to regex and fix tests
- Loading branch information
1 parent
01ebd01
commit a2fd971
Showing
8 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extends: existence | ||
message: "Remove the hyphen in '%s'." | ||
level: suggestion | ||
tokens: | ||
- 'non-(\w+)' |
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,7 +1,6 @@ | ||
extends: existence | ||
message: Double-check your punctuation around 'however' (see github.com/IBM/ibm-quantum-style-guide/issues/10 for more information). | ||
level: suggestion | ||
code: false | ||
ignorecase: true | ||
ignorecase: false | ||
raw: | ||
- ([^;,] however|however[^,]) |
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,16 +1,13 @@ | ||
extends: existence | ||
message: Link names should make sense without context; change "%s" to something more descriptive. | ||
level: suggestion | ||
code: false | ||
scope: link | ||
scope: raw | ||
ignorecase: true | ||
tokens: | ||
- click here | ||
- here | ||
- link | ||
- more | ||
- more information | ||
- page | ||
- read more | ||
- this link | ||
- this page | ||
# Manually match markdown / rst links | ||
- '(?<=\[)(click )?here(?=\](\s*?)\()' | ||
- '(?<=`)(click )?here(?=((\s*?)<(.+?)>)?`_)' | ||
- '(?<=\[)(read )?more( information)?(?=\](\s*?)\()' | ||
- '(?<=`)(read )?more( information)?(?=((\s*?)<(.+?)>)?`_)' | ||
- '(?<=\[)(this )?(link|page)(?=\](\s*?)\()' | ||
- '(?<=`)(this )?(link|page)(?=((\s*?)<(.+?)>)?`_)' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a sentence with a non-contracted word. |