Skip to content

Commit

Permalink
Merge branch 'MFlowCode:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
haochey authored Nov 19, 2024
2 parents f2a8013 + dbfa2ba commit 2e4fa7d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/line-count.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Line Counts
name: Lines of Code

on: [push, pull_request, workflow_dispatch]

Expand Down
31 changes: 20 additions & 11 deletions .github/workflows/lint-source.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
name: Lint Source Code
name: Lint Source

on: [push, pull_request, workflow_dispatch]

jobs:
lint:
name: Lint Source Code
runs-on: macos-latest
file-changes:
name: Detect File Changes
runs-on: 'ubuntu-latest'
outputs:
checkall: ${{ steps.changes.outputs.checkall }}
steps:
- name: Clone
uses: actions/checkout@v4

- name: Detect Changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: ".github/file-filter.yml"

lint-source:
name: Lint Source
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v4
Expand All @@ -14,10 +29,4 @@ jobs:
run: pip install fortitude-lint ansi2txt

- name: Lint the source code
run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* &> lint.txt || true

- name: Sanitize
run: cat lint.txt | ansi2txt > lint2.txt

- name: Output Summary
run: cat lint2.txt << EOF > $GITHUB_STEP_SUMMARY
run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* || true
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Lint
name: Lint Toolchain

on: [push, pull_request, workflow_dispatch]

jobs:
docs:
lint-toolchain:
name: Lint Toolchain
runs-on: ubuntu-latest

Expand Down

0 comments on commit 2e4fa7d

Please sign in to comment.