ci: add static analysis #49

Merged
marfavi merged 7 commits from static-analysis-41 into main 2026-03-27 12:33:02 +01:00
Owner

Add the following jobs to the Linter workflow:

  • Rust Linter
  • Rust Code Formatter
  • Dockerfile Linter

They are all defined in the same file. Not sure if this is good practice, but it feels like it would be overkill to have separate workflows for each job.

Fixes #41

Add the following jobs to the Linter workflow: - Rust Linter - Rust Code Formatter - Dockerfile Linter They are all defined in the same file. Not sure if this is good practice, but it feels like it would be overkill to have separate workflows for each job. Fixes #41
CI: Add rustfmt (Rust formatter) and hadolint (Dockerfile linter)
Some checks failed
Lint / Clippy (push) Waiting to run
Lint / Rustfmt (push) Waiting to run
Lint / Hadolint (push) Waiting to run
Lint / Clippy (pull_request) Has been cancelled
Lint / Rustfmt (pull_request) Has been cancelled
Lint / Hadolint (pull_request) Has been cancelled
498c94b7a8
Fix runs-on to 'docker'
Some checks failed
Lint / Clippy (push) Failing after 8s
Lint / Rustfmt (push) Failing after 6s
Lint / Hadolint (push) Failing after 6s
Lint / Clippy (pull_request) Failing after 5s
Lint / Rustfmt (pull_request) Failing after 5s
Lint / Hadolint (pull_request) Failing after 6s
affba874fc
CI: fix Lint workflow to use manual installs for Forgejo runner compatibility
Some checks failed
Lint / Clippy (push) Failing after 18m53s
Lint / Rustfmt (push) Successful in 2m38s
Lint / Hadolint (push) Successful in 24s
Lint / Clippy (pull_request) Has been cancelled
Lint / Rustfmt (pull_request) Has been cancelled
Lint / Hadolint (pull_request) Has been cancelled
88948bc81c
Fix if-statement by collapsing it
Some checks failed
Lint / Clippy (push) Successful in 22m21s
Lint / Rustfmt (push) Failing after 2m55s
Lint / Hadolint (push) Successful in 23s
Lint / Clippy (pull_request) Has been cancelled
Lint / Rustfmt (pull_request) Has been cancelled
Lint / Hadolint (pull_request) Has been cancelled
22655ad77d
Style: Fix formatting
Some checks failed
Lint / Rustfmt (push) Successful in 1m5s
Lint / Hadolint (push) Failing after 7s
Lint / Clippy (pull_request) Successful in 3m34s
Lint / Clippy (push) Successful in 22m32s
Lint / Rustfmt (pull_request) Successful in 28s
Lint / Hadolint (pull_request) Successful in 26s
06ced9671d
Fix Hadolint installation script to download the correct binary for x86_64 architecture
All checks were successful
Lint / Clippy (push) Successful in 3m14s
Lint / Rustfmt (push) Successful in 29s
Lint / Hadolint (push) Successful in 6s
Lint / Clippy (pull_request) Successful in 41s
Lint / Rustfmt (pull_request) Successful in 28s
Lint / Hadolint (pull_request) Successful in 5s
4bbf7626a7
Owner

i changed the runner to an x86_64 machine, so I also changed your Hadolint install to get the correct version

i changed the runner to an x86_64 machine, so I also changed your Hadolint install to get the correct version
marfavi changed title from static-analysis-41 to ci: add static analysis 2026-03-17 18:06:02 +01:00
marfavi self-assigned this 2026-03-17 18:07:05 +01:00
Author
Owner

Reminder for this PR, I think it is ready to be merged.

Reminder for this PR, I think it is ready to be merged.
marfavi force-pushed static-analysis-41 from 4bbf7626a7
All checks were successful
Lint / Clippy (push) Successful in 3m14s
Lint / Rustfmt (push) Successful in 29s
Lint / Hadolint (push) Successful in 6s
Lint / Clippy (pull_request) Successful in 41s
Lint / Rustfmt (pull_request) Successful in 28s
Lint / Hadolint (pull_request) Successful in 5s
to d3963c0c27
All checks were successful
Lint / Clippy (push) Successful in 2m42s
Lint / Rustfmt (push) Successful in 29s
Lint / Hadolint (push) Successful in 4s
Lint / Clippy (pull_request) Successful in 3m20s
Lint / Rustfmt (pull_request) Successful in 30s
Lint / Hadolint (pull_request) Successful in 5s
2026-03-27 12:32:17 +01:00
Compare
marfavi scheduled this pull request to auto merge when all checks succeed 2026-03-27 12:32:50 +01:00
marfavi approved these changes 2026-03-27 12:32:58 +01:00
marfavi left a comment

Let's go

Let's go
marfavi deleted branch static-analysis-41 2026-03-27 12:33:02 +01:00
marfavi referenced this pull request from a commit 2026-03-27 12:33:04 +01:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
DevOpps/minitwit!49
No description provided.