Skip to content

Commit

Permalink
Merge pull request #3124 from slry/3035_yamllint
Browse files Browse the repository at this point in the history
#3035: Add yamllint GHA
  • Loading branch information
yegor256 authored Apr 22, 2024
2 parents 91f6cba + 28cd4e7 commit c0e591c
Show file tree
Hide file tree
Showing 288 changed files with 490 additions and 187 deletions.
1 change: 1 addition & 0 deletions .0pdd.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
errors:
- [email protected]
# alerts:
Expand Down
1 change: 1 addition & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# @todo #1326:30min Enable only necessary tests. Several checks
# are not available for the project. For example a lot of
# package name contains capital letter and such names are conventional.
---
exclude_paths:
- "eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EOencaged$EOencage.java"
- "eo-runtime/src/main/java/EOorg/EOeolang/Cages.java"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
codecov:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: teatimeguest/[email protected]
with:
update-all-packages: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: daily
on:
schedule:
Expand All @@ -7,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: teatimeguest/[email protected]
with:
update-all-packages: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ebnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: ebnf
on:
push:
paths-ignore: ['paper/**', 'sandbox/**']
paths-ignore: [ 'paper/**', 'sandbox/**' ]
pull_request:
branches:
- master
Expand All @@ -13,7 +13,7 @@ jobs:
env:
CONVERT_PATH: /tmp/antlr4-to-bnf-converter
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: |
sudo apt-get update
sudo apt-get -y install ghostscript imagemagick texlive-extra-utils pdf2svg inkscape
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/gpt-code-review.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
name: GPT-code-review
on:
pull_request:
branches: [master]
branches: [ master ]
permissions:
pull-requests: write
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
Expand All @@ -23,4 +24,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_SHA: ${{ github.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/loc-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
loc-badge:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: shadowmoose/[email protected]
with:
debug: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
env:
CONVERT_PATH: /tmp/antlr4-to-bnf-converter
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reports-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: reports-check
on:
issues:
types: [opened]
types: [ opened ]
permissions:
issues: write
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/simian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
paths-ignore: ['paper/**', 'sandbox/**']
paths-ignore: [ 'paper/**', 'sandbox/**' ]
pull_request:
branches:
- master
Expand All @@ -16,7 +16,7 @@ jobs:
simian:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
sonar:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- uses: teatimeguest/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
up:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: |-
git fetch --tags --force && \
latest=$(git tag --sort=creatordate | tail -1) && \
Expand All @@ -25,4 +25,4 @@ jobs:
delete-branch: true
title: 'New version in README'
assignees: yegor256
base: master
base: master
2 changes: 1 addition & 1 deletion .github/workflows/xcop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
xcop:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: g4s8/[email protected]
with:
files: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

name: yamllint
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
yamllint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ibiqlik/action-yamllint@v3
with:
config-file: .yamllint.yml
5 changes: 3 additions & 2 deletions .github/workflows/year.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
name: year
on:
schedule:
- cron: '0 1 22 * *' # Runs at 01:00 UTC on the 22nd of every month
- cron: '0 1 22 * *' # Runs at 01:00 UTC on the 22nd of every month
concurrency:
group: year-${{ github.ref }}
cancel-in-progress: true
jobs:
license:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v3
Expand Down
3 changes: 2 additions & 1 deletion .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Default state for all rules
default: true

Expand All @@ -7,7 +8,7 @@ MD013:

# Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.33.0/doc/md033.md
MD033:
allowed_elements: [img]
allowed_elements: [ img ]

# Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.33.0/doc/md040.md
MD040: false
Expand Down
1 change: 1 addition & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
architect:
- yegor256
ec2:
Expand Down
12 changes: 12 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

extends: default

rules:
line-length: disable
brackets:
min-spaces-inside: 1
max-spaces-inside: 2
truthy:
level: warning
allowed-values: [ 'on', 'true', 'false', 'yes', 'no' ]
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
sheets:
- /org/eolang/maven/add_rust/add_rust.xsl
document:
Expand Down Expand Up @@ -55,4 +56,4 @@ document:
asserts:
- /program/rusts/rust[@code_loc='Φ.org.eolang.creates-object.r.α0']
- /program/rusts/rust/dependencies/dependency[@name='72 65 6F 3A 20 30 2E 30 2E 32']
- /program/rusts/rust/dependencies/dependency[@name='72 61 6E 64 3A 20 30 2E 35 2E 35']
- /program/rusts/rust/dependencies/dependency[@name='72 61 6E 64 3A 20 30 2E 35 2E 35']
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/wrap-method-calls.xsl
- /org/eolang/parser/optimize/globals-to-abstracts.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/maven/pre/classes.xsl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# The aim of this test is to check that entire pipeline with
# scoped objects works as expected without creating any warnings or errors.
# Pay attention and to-java.xsl transformations.
---
xsls:
- /org/eolang/parser/errors/not-empty-atoms.xsl
- /org/eolang/parser/critical-errors/duplicate-names.xsl
Expand Down Expand Up @@ -58,10 +59,10 @@ eo: |
+tests
+package org.eolang
+version 0.0.0
# This is the default 64+ symbols comment in front of named abstract object.
[] > main
* 0 (* 1 2) > arr
eq > @
* ((arr.at 1).at 1)
* 2
* 2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/parser/explicit-data.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/maven/pre/classes.xsl
Expand All @@ -13,7 +14,7 @@ eo: |
[] > foo
5 > five
a > @
# This is the default 64+ symbols comment in front of named abstract object.
[] > a
# This is the default 64+ symbols comment in front of named abstract object.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/wrap-method-calls.xsl
- /org/eolang/parser/optimize/globals-to-abstracts.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/parser/wrap-method-calls.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/parser/optimize/abstracts-float-up.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/maven/pre/classes.xsl
- /org/eolang/maven/pre/package.xsl
Expand All @@ -6,7 +7,7 @@ tests:
- //class[@name='bar' and @package='foo.long-name']
eo: |
+package foo.long-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > bar
"hello"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# The aim of this test is to check that entire pipeline with
# scoped objects works as expected without creating any warnings or errors.
# Pay attention to to-java.xsl transformations.
---
xsls:
- /org/eolang/parser/errors/not-empty-atoms.xsl
- /org/eolang/parser/critical-errors/duplicate-names.xsl
Expand Down Expand Up @@ -58,10 +59,10 @@ eo: |
+tests
+package org.eolang
+version 0.0.0
# This is the default 64+ symbols comment in front of named abstract object.
[] > method
* 1 (* "one" "two") 3 > res
eq > @
* res.length ((res.at 1).at 1)
* 3 "two"
* 3 "two"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/maven/pre/classes.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/optimize/abstracts-float-up.xsl
- /org/eolang/maven/pre/classes.xsl
Expand All @@ -12,7 +13,7 @@ tests:
- //o[@base='ω2c' and @name='c']
eo: |
+tests
# This is the default 64+ symbols comment in front of named abstract object.
[] > a
# This is the default 64+ symbols comment in front of named abstract object.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/wrap-method-calls.xsl
- /org/eolang/parser/optimize/globals-to-abstracts.xsl
Expand All @@ -17,7 +18,7 @@ tests:
- //java[contains(text(), '@Test')]
eo: |
+tests
# This is the default 64+ symbols comment in front of named abstract object.
[] > works
1.eq 1 > @
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/stars-to-tuples.xsl
- /org/eolang/parser/stars-to-tuples.xsl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-default-package.xsl
- /org/eolang/maven/pre/classes.xsl
Expand Down
Loading

0 comments on commit c0e591c

Please sign in to comment.