Skip to content

Commit

Permalink
finl ylm linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Gibb authored and Scott Gibb committed Nov 18, 2023
1 parent a218048 commit 480b3db
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 53 deletions.
103 changes: 51 additions & 52 deletions .github/workflows/Static Analysis.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,57 @@
---

name: Static Analysis
name: Static Analysis
on: [push]

Check warning on line 4 in .github/workflows/Static Analysis.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

4:1 [truthy] truthy value should be one of [false, true]

on: [push]
jobs:
Shell_Check:
name: Shell Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install -y shellcheck
- name: Shell Check
run: |
echo "Checking shell scripts"
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck
jobs:
Shell_Check:
name: Shell Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install -y shellcheck
- name: Shell Check
run: |
echo "Checking shell scripts"
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck
Markdown_Lint_Check:
name: Markdown Lint Check
runs-on: ubuntu-latest
steps:
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: Checkout code
uses: actions/checkout@v2
- name: Run markdownlint
run: |
echo "Checking Markdown files"
find . -type f -name "*.md" -print0 | xargs -0 markdownlint
Markdown_Lint_Check:
name: Markdown Lint Check
runs-on: ubuntu-latest
steps:
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: Checkout code
uses: actions/checkout@v2
- name: Run markdownlint
run: |
echo "Checking Markdown files"
find . -type f -name "*.md" -print0 | xargs -0 markdownlint
YAML_Lint_Check:
name: YAML Lint Check
runs-on: ubuntu-latest
steps:
- name: Install yamllint
run: sudo apt install yamllint
- name: Checkout code
uses: actions/checkout@v2
- name: Run yamllint
run: |
echo "Checking YAML files"
find . -type f -name "*.yml" -print0 | xargs -0 yamllint
find . -type f -name "*.yaml" -print0 | xargs -0 yamllint
YAML_Lint_Check:
name: YAML Lint Check
runs-on: ubuntu-latest
steps:
- name: Install yamllint
run: sudo apt install yamllint
- name: Checkout code
uses: actions/checkout@v2
- name: Run yamllint
run: |
echo "Checking YAML files"
find . -type f -name "*.yml" -print0 | xargs -0 yamllint
find . -type f -name "*.yaml" -print0 | xargs -0 yamllint
Python_Lint_Check:
name: Python Lint Check
runs-on: ubuntu-latest
steps:
- name: Install pylint
run: |
pip install pylint
- name: Run Pylint
run: |
echo "Checking source files with pylint"
pylint --fail-under=4 **/*.py
Python_Lint_Check:
name: Python Lint Check
runs-on: ubuntu-latest
steps:
- name: Install pylint
run: |

Check failure on line 52 in .github/workflows/Static Analysis.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

52:14 [colons] too many spaces after colon
pip install pylint
- name: Run Pylint
run: |

Check failure on line 55 in .github/workflows/Static Analysis.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

55:14 [colons] too many spaces after colon
echo "Checking source files with pylint"
pylint --fail-under=4 **/*.py
2 changes: 1 addition & 1 deletion utils/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ services:
# DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"

volumes:
portainer_data:
portainer_data:

0 comments on commit 480b3db

Please sign in to comment.