Skip to content

Add sh linter; improve Makefile(s)#196

Closed
sebrandon1 wants to merge 1 commit into
openshift-kni:mainfrom
sebrandon1:add_sh_linter
Closed

Add sh linter; improve Makefile(s)#196
sebrandon1 wants to merge 1 commit into
openshift-kni:mainfrom
sebrandon1:add_sh_linter

Conversation

@sebrandon1
Copy link
Copy Markdown
Contributor

Notable changes:

  • Adding a Github Actions workflow for linting shell scripts in this repo.
  • Ran shfmt -w against the shell scripts in this repo so they pass the linter.
  • Added some Makefile lint paths.

Shell Formatting Enhancements:

  • .github/workflows/pre-main.yml: Added a new GitHub Actions workflow named "Shell Format Check" to validate shell script formatting using shfmt on pull requests and pushes to the main branch.

Makefile Updates:

Code Style Improvements:

These changes collectively aim to improve code quality, enforce consistent formatting, and streamline development workflows.

@openshift-ci openshift-ci Bot requested review from fedepaol and yuvalk May 28, 2025 20:57
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sebrandon1
Once this PR has been reviewed and has the lgtm label, please assign imiller0 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@imiller0
Copy link
Copy Markdown
Collaborator

Can we consider shfmt -w -i 2? With tabs the lines display in reviews (here in github) with a significant amount of whitespace which can lead to lines running off the screen.

@sebrandon1 sebrandon1 force-pushed the add_sh_linter branch 2 times, most recently from 7b4a6bc to 69a66c1 Compare June 9, 2025 19:51
@sebrandon1 sebrandon1 force-pushed the add_sh_linter branch 3 times, most recently from 0e8e064 to 2e0dd87 Compare December 1, 2025 21:45
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jan 13, 2026

@sebrandon1: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/lintcheck 05e8c9b link true /test lintcheck

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@sebrandon1 sebrandon1 closed this Jan 16, 2026
@sebrandon1 sebrandon1 deleted the add_sh_linter branch April 30, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants