Skip to content
Draft
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
59 changes: 59 additions & 0 deletions tests-beta/.markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
// Additional lint rules for tests-beta/
// NOTE: The no-tool-references-in-tests rule only applies to files in this directory
// This rule enforces that tests should reference @MASTG-TECH-xxxx instead of @MASTG-TOOL-xxxx
// Since search-replace rules arrays don't merge, we must include all parent rules here
"config": {
"search-replace": {
"rules": [
{
"name": "curly-double-quotes",
"message": "Do not use curly double quotes.",
"searchPattern": "/“|”/g",
"replace": "\"",
"searchScope": "text"
},
{
"name": "nbsp",
"message": "Don't use no-break spaces",
"searchPattern": "/ /g",
"replace": " ",
"searchScope": "all"
},
{
"name": "curly-single-quotes",
"message": "Don't use curly single quotes",
"searchPattern": "/‘|’/g",
"replace": "'",
"searchScope": "text"
},
{
"name": "gender-neutrality",
"message": "Ensure gender-neutral language is used.",
"searchPattern": "/\\bhe\\b|\\bshe\\b|\\bhis\\b|\\bhimself\\b|\\bherself\\b|\\bher\\b|\\bhim\\b|\\bhers\\b/g",
"replace": ""
},
{
"name": "trailing-spaces",
"message": "Avoid trailing spaces",
"searchPattern": "/ +$/gm",
"replace": "",
"searchScope": "all"
},
{
"name": "double-spaces",
"message": "Avoid double spaces",
"searchPattern": "/([^\\s>]) ([^\\s|])/g",
"replace": "$1 $2",
"searchScope": "text"
},
{
"name": "no-tool-references-in-tests",
"message": "MASTG-TOOLs should not be referenced directly in tests. Use @MASTG-TECH-xxxx instead.",
"searchPattern": "/@MASTG-TOOL-\\d{4}/g",
"searchScope": "text"
}
]
}
}
}
Loading