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

feature request: add Makefile linter #1627

Closed
wesley-dean opened this issue Jul 19, 2022 · 6 comments · Fixed by #1644
Closed

feature request: add Makefile linter #1627

wesley-dean opened this issue Jul 19, 2022 · 6 comments · Fixed by #1644
Labels
enhancement New feature or request

Comments

@wesley-dean
Copy link
Contributor

Is your feature request related to a problem? Please describe.

As a developer who uses Makefiles to coordinate building, testing, packaging, and deploying (distributing) source code, so that I may adhere to testable best-practices regarding Makefiles, I would like to add support for a Makefile linter to Megalinter.

Describe the solution you'd like

There currently exists tools that perform linting on Makefiles such as checkmake by Daniel Schauenberg (@mrtazz) that's written in Go. There are also packages available on packagecloud not to mention @cytopia 's repo and corresponding image on Dockerhub.

Not being deeply knowledgeable about how to add this functionality to Megalinter myself (you may recall how it went the last time I tried to contribute something), I'm afraid that it's improbable that I'll be able to meaningfully help in the of this beyond doing some research, digging up links, etc..

Describe alternatives you've considered

Currently, I run Checkmake directly on my system when I see that a developer has updated a Makefile and I copypasta the results as a comment on their Pull Requests. One could (but I haven't) setup a separate GitHub action to do the linting and post the results.

Additional context

This is not a priority request and I certainly do not wish to detract from the amazing work being done on v6.

@wesley-dean wesley-dean added the enhancement New feature or request label Jul 19, 2022
@nvuillam
Copy link
Member

Are you talking about this one ? https://github.com/mrtazz/checkmake

That could be doable :)

@wesley-dean
Copy link
Contributor Author

Yes, exactly.

Also, 🤦 for including everything but that link.

@nvuillam
Copy link
Member

The doc is not really clear about how to install via commande line on alpine

Once they reply it should be quite easy :)

mrtazz/checkmake#71

@nvuillam
Copy link
Member

@wesley-dean it's done :)

https://oxsecurity.github.io/megalinter/beta/descriptors/makefile_checkmake/

Please can you check with oxsecurity/megalinter@beta ? :)

@wesley-dean-flexion
Copy link
Contributor

@nvuillam I was able to bump to @beta and it worked perfectly!

https://github.com/IMLS/estimating-wifi/runs/7583627032?check_suite_focus=true

@nvuillam
Copy link
Member

Great, thanks for the feedback :)
It will be delivered in MegaLinter v6.2.0 :) (today or tomorrow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants