mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 13:11:09 +00:00
283b19bad5
Backport #27284 by @lunny Fix #27268 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
46 lines
717 B
YAML
46 lines
717 B
YAML
extends: default
|
|
|
|
rules:
|
|
braces:
|
|
min-spaces-inside: 0
|
|
max-spaces-inside: 1
|
|
min-spaces-inside-empty: 0
|
|
max-spaces-inside-empty: 0
|
|
|
|
brackets:
|
|
min-spaces-inside: 0
|
|
max-spaces-inside: 1
|
|
min-spaces-inside-empty: 0
|
|
max-spaces-inside-empty: 0
|
|
|
|
comments:
|
|
require-starting-space: true
|
|
ignore-shebangs: true
|
|
min-spaces-from-content: 1
|
|
|
|
comments-indentation:
|
|
level: error
|
|
|
|
document-start:
|
|
level: error
|
|
present: false
|
|
ignore: |
|
|
/.drone.yml
|
|
|
|
document-end:
|
|
present: false
|
|
|
|
empty-lines:
|
|
max: 1
|
|
|
|
indentation:
|
|
spaces: 2
|
|
|
|
line-length: disable
|
|
|
|
truthy:
|
|
allowed-values: ["true", "false", "on", "off"]
|
|
|
|
ignore: |
|
|
.venv
|
|
node_modules
|