diff --git a/.markdown-style.rb b/.markdown-style.rb new file mode 100644 index 0000000..0be94f8 --- /dev/null +++ b/.markdown-style.rb @@ -0,0 +1,4 @@ +all # Import all rules +rule "MD007", :indent => 2 # Unordered list indentation: 2 spaces +rule "MD009", :br_spaces => 2 # Allow MD line breaks (` `, double spaces) +exclude_rule "MD013" # Ignore Line length diff --git a/.mdlrc b/.mdlrc new file mode 100644 index 0000000..7cc7d12 --- /dev/null +++ b/.mdlrc @@ -0,0 +1,2 @@ +style "#{File.dirname(__FILE__)}/.markdown-style.rb" +git_recurse true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..56022a6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +exclude: | + (?x) + .drawio$| + tsconfig.json$ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-executables-have-shebangs + - id: check-json + - id: check-merge-conflict + - id: check-symlinks + - id: check-xml + - id: check-yaml + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: mixed-line-ending + - id: no-commit-to-branch + - id: trailing-whitespace diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..d99602f --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,13 @@ +pipeline: + lint-markdown: + image: markdownlint/markdownlint:latest + commands: + - mdl . + + check-pre-commit: + image: python:latest + environment: + - SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check + commands: + - pip install pre-commit + - pre-commit run --all-files diff --git a/src/functions.js b/src/functions.js index df676ff..2a23890 100644 --- a/src/functions.js +++ b/src/functions.js @@ -28,7 +28,7 @@ mapRoom (rcRoom) { case 'c': room.preset = 'public_chat' break; - + case 'p': room.preset = 'private_chat' break;