https://github.com/mrtazz/checkmake Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Copilot + Packages + Security + Code review + Issues + Discussions + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Skills + GitHub Sponsors + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} mrtazz / checkmake Public * Notifications * Fork 34 * Star 597 experimental linter/analyzer for Makefiles License MIT license 597 stars 34 forks Star Notifications * Code * Issues 15 * Pull requests 4 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights mrtazz/checkmake This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 3 tags Code * Clone HTTPS GitHub CLI [https://github.com/m] Use Git or checkout with SVN using the web URL. [gh repo clone mrtazz] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @mrtazz mrtazz add release notes for 0.2.1 ... 7c87b7f Feb 18, 2022 add release notes for 0.2.1 7c87b7f Git stats * 134 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github build standalone binaries on tag and upload to release Feb 18, 2022 buildenv Reads user name and email from git config or from environment variabl... Feb 26, 2020 cmd/checkmake Only display violations when there are some Apr 1, 2021 config increase unit test coverage for config package Jul 1, 2018 docs add release notes for 0.2.1 Feb 18, 2022 fixtures increase unit test coverage for config package Jul 1, 2018 formatters remove newline from custom formatter Sep 30, 2021 logger implement simple logger module Aug 29, 2016 man/man1 add CustomFormatter Sep 4, 2016 parser Various bugfixes Apr 11, 2020 rules Various bugfixes Apr 11, 2020 validator add maxbodylength rule Jul 27, 2017 vendor update to go 1.17 Feb 18, 2022 .codeclimate.yml exclude test files from codeclimate paths Sep 8, 2016 .gitignore build standalone binaries on tag and upload to release Feb 18, 2022 CHANGELOG.md add release notes structure Sep 30, 2021 CODE_OF_CONDUCT.md add CODE_OF_CONDUCT.md Jul 28, 2017 Dockerfile Try to fix the build of CI and Docker image Jun 21, 2021 LICENSE commit initial parser structure Aug 24, 2016 Makefile build standalone binaries on tag and upload to release Feb 18, 2022 README.md change build instructions to just use git clone Feb 18, 2022 checkmake.go make checkmake go install-able Jul 28, 2017 checkmake.ini add checkmake.ini Jul 28, 2017 go.mod update to go 1.17 Feb 18, 2022 go.sum update to go 1.17 Feb 18, 2022 View code [ ] checkmake Overview Usage Docker usage Installation Requirements Packages Build Inspiration README.md checkmake Build Status Coverage Status Code Climate Packagecloud MIT license Overview checkmake is an experimental tool for linting and checking Makefiles. It may not do what you want it to. Usage % checkmake Makefile % checkmake --help checkmake. Usage: checkmake [--debug|--config=] checkmake -h | --help checkmake --version Options: -h --help Show this screen. --version Show version. --debug Enable debug mode --config= Configuration file to read --list-rules List registered rules % checkmake fixtures/missing_phony.make RULE DESCRIPTION LINE NUMBER minphony Missing required phony target 0 "all" minphony Missing required phony target 0 "test" phonydeclared Target "all" should be 18 declared PHONY. Docker usage Build the image, or pull it: docker build --build-arg BUILDER_NAME='Your Name' --build-arg BUILDER_EMAIL=your.name@example.com . -t checker Then run it with your Makefile attached, below is an example of it assuming the Makefile is in your current working directory: docker run -v "$PWD"/Makefile:/Makefile checker Installation Requirements The pandoc document converter utility is required to run checkmate. You can find out if you have it via which pandoc. Install pandoc if the command was not found. Packages There are packages for linux up on packagecloud.io or build it yourself with the steps below. Build To build checkmake you will need to have golang installed. Once you have Go installed, you can simply clone the repo and build the binary and man page yourself with the following commands. git clone https://github.com/mrtazz/checkmake cd checkmake make Inspiration This is totally inspired by an idea by Dan Buch. About experimental linter/analyzer for Makefiles Topics lint makefile linter make Resources Readme License MIT license Code of conduct Code of conduct Stars 597 stars Watchers 7 watching Forks 34 forks Releases 2 Release 0.2.1 Latest Feb 18, 2022 + 1 release Packages 1 Used by 4 * @Ahmed-Sermani @Ahmed-Sermani / go-crawler * @joepvd @joepvd / table.go * @gary-beautypie @gary-beautypie / terraform-provider-tableau Contributors 10 * @mrtazz * @fdegier * @haysclark * @christian-weiss * @joakimr-axis * @ashmckenzie * @JonZeolla * @stephengroat-dd * @PeterDaveHello * @jimmywan Languages * Go 86.5% * Makefile 12.3% * Dockerfile 1.2% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.