-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4962104
commit caab66a
Showing
17 changed files
with
631 additions
and
0 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
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,12 @@ | ||
StylesPath = ../test/docs | ||
MinAlertLevel = suggestion | ||
|
||
[[!_]**.{md,rst}] | ||
BasedOnStyles = IBMQuantum | ||
|
||
[apidocs/ibm-runtime.rst] | ||
IBMQuantum.Headings = NO | ||
|
||
# skip './stubs' | ||
[stubs/**] | ||
BasedOnStyles = '' |
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,7 @@ | ||
extends: existence | ||
message: "Do not use periods in all-uppercase abbreviations such as '%s'." | ||
link: 'https://www.ibm.com/developerworks/library/styleguidelines/index.html#N100DC' | ||
level: error | ||
nonword: true | ||
tokens: | ||
- '\b(?:[A-Z]\.){3,5}' |
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,13 @@ | ||
extends: existence | ||
message: "Add spaces around the dash in '%s'." | ||
link: 'https://www.ibm.com/developerworks/library/styleguidelines/index.html#N106BF' | ||
ignorecase: true | ||
nonword: true | ||
level: error | ||
action: | ||
name: edit | ||
params: | ||
- remove | ||
- ' ' | ||
tokens: | ||
- '[^\s][—–][^\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
extends: conditional | ||
message: "Define acronyms and abbreviations (such as '%s') on first occurrence if they're likely to be unfamiliar." | ||
link: 'https://www.ibm.com/developerworks/library/styleguidelines/index.html#N100DC' | ||
level: suggestion | ||
ignorecase: false | ||
# Ensures that the existence of 'first' implies the existence of 'second'. | ||
first: '\b([A-Z]{3,5}s?)\b' | ||
second: '\(([A-Z]{3,5}s?)\)' | ||
# ... with the exception of these: | ||
exceptions: | ||
- API | ||
- ASP | ||
- CLI | ||
- CPU | ||
- CNOT | ||
- CSS | ||
- CSV | ||
- DEBUG | ||
- DOM | ||
- DPI | ||
- FAQ | ||
- GCC | ||
- GDB | ||
- GET | ||
- GPU | ||
- GTK | ||
- GUI | ||
- HTML | ||
- HTTP | ||
- HTTPS | ||
- IBM | ||
- IDE | ||
- JAR | ||
- JSON | ||
- JSX | ||
- LESS | ||
- LLDB | ||
- NBQA | ||
- NET | ||
- NOTE | ||
- NVDA | ||
- OSS | ||
- PATH | ||
- PHP | ||
- POST | ||
- QPU | ||
- RAM | ||
- REPL | ||
- RSA | ||
- SCM | ||
- SCSS | ||
- SDK | ||
- SQL | ||
- SSH | ||
- SSL | ||
- SVG | ||
- SWAT | ||
- TBD | ||
- TCP | ||
- TODO | ||
- URI | ||
- URL | ||
- USB | ||
- UTF | ||
- XML | ||
- XSS | ||
- YAML | ||
- ZIP |
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,28 @@ | ||
extends: capitalization | ||
message: "'%s' should use sentence-style capitalization." | ||
link: 'https://www.ibm.com/developerworks/library/styleguidelines/index.html#N1030C' | ||
level: warning | ||
scope: heading | ||
match: $sentence | ||
indicators: | ||
- ':' | ||
- '.' | ||
- ')' | ||
exceptions: | ||
- API | ||
- App ID | ||
- IBM | ||
- IBM Quantum | ||
- Qiskit | ||
- Runtime | ||
- Sampler | ||
- Estimator | ||
- Terraform | ||
- Trotter | ||
- Grover | ||
- Hamiltonian | ||
- Hamiltonians | ||
- Cloud | ||
- Spectroscopic Eigensolver Algorithm | ||
- Variational Quantum Eigensolver | ||
- (\d+)\. |
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,7 @@ | ||
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: 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
extends: substitution | ||
message: "Use '%s' instead of '%s'." | ||
link: 'https://www.ibm.com/developerworks/library/styleguidelines/index.html#wordlist' | ||
ignorecase: true | ||
level: error | ||
nonword: true | ||
action: | ||
name: replace | ||
swap: | ||
'\b(?:eg|e\.g\.)[\s,]': for example | ||
'\b(?:ie|i\.e\.)[\s,]': that is | ||
'\betc\.': and so on | ||
'\bvs\.': versus |
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,6 @@ | ||
extends: existence | ||
message: "Use the Oxford comma in '%s'." | ||
link: 'https://www.ibm.com/developerworks/library/styleguidelines/index.html#N106BF' | ||
level: suggestion | ||
tokens: | ||
- '(?:[^,]+,){1,}\s\w+\sand' |
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,9 @@ | ||
extends: existence | ||
message: "Don't use '%s'" | ||
link: 'https://github.com/IBM/ibm-quantum-style-guide/issues/16' | ||
ignorecase: true | ||
level: error | ||
tokens: | ||
- please | ||
- thanks | ||
- thank you |
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,6 @@ | ||
extends: repetition | ||
message: "'%s' is repeated!" | ||
level: error | ||
alpha: true | ||
tokens: | ||
- '[^\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extends: spelling | ||
message: "Unknown word '%s'; fix or add to dictionary." | ||
level: error | ||
ignore: | ||
- dictionary.txt |
Oops, something went wrong.