Skip to content

Commit

Permalink
Merge branch 'dev' into feat/code-formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Mar 28, 2024
2 parents e2198ea + 7530463 commit c9d2a01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/launch-lizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

i = lizard.analyze(files)

print(f"""Lizard report
print(f"""### Lizard report
---
Listing only functions with cyclomatic complexity >= 15 or NLOC >= 100 or parameters >= 10.
Expand All @@ -22,8 +22,9 @@

if func.cyclomatic_complexity >= 15 or func.nloc >= 100 or param_count >= 10:
data.append([
f"{filename} | {func.start_line}:{func.end_line} | `{func.name}` | {param_count} | {func.nloc}", func.cyclomatic_complexity
f"{filename} | {func.start_line}:{func.end_line} | `{func.name}` | {param_count} | {func.nloc}",
func.cyclomatic_complexity
])

for line in sorted(data, key=lambda e: e[1], reverse=True):
print(f"| {line[0]} | {line[1]} |")
print(f"| {line[0]} | {line[1]} |")
5 changes: 3 additions & 2 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Build output
body-includes: Static analysis report

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## Static analysis report
${{ steps.lizard.outputs.report }}
---
## CppCheck report
### CppCheck report
```
${{ steps.cppcheck.outputs.report }}
```
Expand Down

0 comments on commit c9d2a01

Please sign in to comment.