Skip to content

Commit 34b847b

Browse files
authored
Merge pull request #84 from mimmi20/updates
add config for yamllint
2 parents a770d57 + c5addc6 commit 34b847b

File tree

8 files changed

+44
-10
lines changed

8 files changed

+44
-10
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*.txt text eol=lf
1616
*.ini text eol=lf
1717
*.sh text eol=lf
18+
*.stub text eol=lf
1819
*.tmp text eol=lf
1920

2021
# binary files
@@ -30,6 +31,7 @@
3031
.mega-linter.yml export-ignore text eol=lf
3132
.php-cs-fixer.php export-ignore text eol=lf
3233
.phplint.yml export-ignore text eol=lf
34+
.yamllint.yml export-ignore text eol=lf
3335
codecov.yml export-ignore text eol=lf
3436
infection.json export-ignore text eol=lf
3537
infection.json5 export-ignore text eol=lf

.github/labels.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@
5858
#- color: 5319e7
5959
# name: "new useragents"
6060
# description: ""
61-

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ template: |
88
$CONTRIBUTORS
99
1010
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
11-
change-title-escapes: "\<*_&#@`" # You can add # and @ to disable mentions, and add ` to disable code blocks.
11+
change-title-escapes: '\<*_&#@`' # You can add # and @ to disable mentions, and add ` to disable code blocks.
1212
no-changes-template: "- No changes"
1313

1414
exclude-labels:

.github/workflows/codeql.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "master" ]
16+
branches:
17+
- master
1718
pull_request:
1819
# The branches below must be a subset of the branches above
19-
branches: [ "master" ]
20+
branches:
21+
- master
2022
schedule:
2123
- cron: '28 0 * * 0'
2224

@@ -32,7 +34,8 @@ jobs:
3234
strategy:
3335
fail-fast: false
3436
matrix:
35-
language: [ 'javascript' ]
37+
language:
38+
- 'javascript'
3639
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3740
# Use only 'java' to analyze code written in Java, Kotlin or both
3841
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
@@ -59,7 +62,6 @@ jobs:
5962
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
6063
# queries: security-extended,security-and-quality
6164

62-
6365
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
6466
# If this step fails, then you should remove it and run the build manually (see below)
6567
- name: Autobuild

.github/workflows/lock-closed-issues.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Lock closed issue
22

33
on:
44
issues:
5-
types: [closed]
5+
types:
6+
- closed
67

78
jobs:
89
lock:

.github/workflows/reactions.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ name: 'Reaction Comments'
44

55
on:
66
issue_comment:
7-
types: [created, edited]
7+
types:
8+
- created
9+
- edited
810
pull_request_review_comment:
9-
types: [created, edited]
11+
types:
12+
- created
13+
- edited
1014

1115
permissions:
1216
actions: write

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
types: [opened, reopened, synchronize]
1414
# pull_request_target event is required for autolabeler to support PRs from forks
1515
pull_request_target:
16-
types: [opened, reopened, synchronize]
1716

1817
permissions:
1918
contents: read

.yamllint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
3+
yaml-files:
4+
- '*.yaml'
5+
- '*.yml'
6+
- '.yamllint'
7+
8+
rules:
9+
brackets:
10+
forbid: false
11+
min-spaces-inside: 0
12+
max-spaces-inside: 1
13+
min-spaces-inside-empty: 0
14+
max-spaces-inside-empty: 1
15+
16+
document-start: disable
17+
18+
empty-lines:
19+
max: 1
20+
21+
line-length:
22+
max: 120
23+
allow-non-breakable-words: true
24+
allow-non-breakable-inline-mappings: true
25+
level: warning
26+
27+
new-line-at-end-of-file: enable

0 commit comments

Comments
 (0)