14 lines
501 B
YAML
14 lines
501 B
YAML
---
|
|
name: gitlab_base.CodeblockFences
|
|
description: |
|
|
Ensures all codeblock language tags use the full name, not aliases.
|
|
extends: existence
|
|
message: "Instead of '%s' for the code block, use yaml, ruby, plaintext, markdown, javascript, shell, go, python, dockerfile, or typescript."
|
|
link: https://docs.gitlab.com/development/documentation/styleguide/#code-blocks
|
|
vocab: false
|
|
level: error
|
|
nonword: true
|
|
scope: raw
|
|
tokens:
|
|
- '^[ 1\.-]*\`\`\`(yml|rb|text|md|bash|sh$|js$|golang$|py$|docker$|ts|irb)'
|