Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting for initscripts #3471

Merged
merged 3 commits into from
Apr 8, 2025
Merged

Conversation

neocturne
Copy link
Member

We did accidentally not lint initscripts. Extend the lint script, and fix or disable warnings in initscripts.

All scripts have been tested except for radv-filterd, l3roamd and mmfd.

- Implify filename check
- Check for ! in shebang
- Check for either /bin/sh or anything ending with the word bash
Detect initscripts by their shebang line. SC2034 is ignored additionally
for these scripts, to avoid needing to override it for setting START,
USE_PROCD, ... in every single script.
@neocturne neocturne requested a review from T-X April 7, 2025 17:39
@neocturne neocturne added this to the v2025.1 milestone Apr 7, 2025
@neocturne neocturne added the 2. status: waiting-on-review Awaiting review from the assignee but also interested parties. label Apr 7, 2025
@rotanid rotanid merged commit 091ced3 into freifunk-gluon:main Apr 8, 2025
39 checks passed
@rotanid rotanid removed the 2. status: waiting-on-review Awaiting review from the assignee but also interested parties. label Apr 8, 2025
@neocturne neocturne deleted the lint-initscripts branch April 8, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants