Skip to content

Commit

Permalink
Merge pull request #467 from mimmi20/updates
Browse files Browse the repository at this point in the history
add config for yamllint
  • Loading branch information
mimmi20 committed Jun 4, 2023
2 parents d10b681 + 46be2a5 commit b11b9a9
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 10 deletions.
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

Check warning on line 62 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Run CI / Validate yaml

62:121 [line-length] line too long (225 > 120 characters)
# 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

0 comments on commit b11b9a9

Please sign in to comment.