Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add config for yamllint #467

Merged
merged 1 commit into from
Jun 4, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
.mega-linter.yml export-ignore text eol=lf
.php-cs-fixer.php export-ignore text eol=lf
.phplint.yml export-ignore text eol=lf
.yamllint.yml export-ignore text eol=lf
codecov.yml export-ignore text eol=lf
infection.json export-ignore text eol=lf
infection.json5 export-ignore text eol=lf
Expand All @@ -41,4 +42,5 @@ phpunit.xml export-ignore text eol=lf
psalm.xml export-ignore text eol=lf
rector.php export-ignore text eol=lf
/tests export-ignore
/tools export-ignore
/.github export-ignore
1 change: 0 additions & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@
#- color: 5319e7
# name: "new useragents"
# description: ""

2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ template: |
$CONTRIBUTORS

change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
change-title-escapes: "\<*_&#@`" # You can add # and @ to disable mentions, and add ` to disable code blocks.
change-title-escapes: '\<*_&#@`' # You can add # and @ to disable mentions, and add ` to disable code blocks.
no-changes-template: "- No changes"

exclude-labels:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches:
- master
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
branches:
- master
schedule:
- cron: '28 0 * * 0'

Expand All @@ -32,7 +34,8 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language:
- 'javascript'
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
Expand All @@ -59,7 +62,6 @@ jobs:
# 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
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Lock closed issue

on:
issues:
types: [closed]
types:
- closed

jobs:
lock:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/reactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ name: 'Reaction Comments'

on:
issue_comment:
types: [created, edited]
types:
- created
- edited
pull_request_review_comment:
types: [created, edited]
types:
- created
- edited

permissions:
actions: write
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, reopened, synchronize]

permissions:
contents: read
Expand Down
27 changes: 27 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'

rules:
brackets:
forbid: false
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 1

document-start: disable

empty-lines:
max: 1

line-length:
max: 120
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
level: warning

new-line-at-end-of-file: enable