summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace dependency on libsimple with boilerplate codeMattias Andrée2022-01-046-7/+133
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Rename to makelMattias Andrée2022-01-043-10/+10
| | | | | | | | | | | Suggested by Laslo Hunhold, "Makel" is German for defect, deficiency, impurity, or imperfection (both singular and plural); a flaw. This change is to avoid confusion between make(1) and mk(1) Signed-off-by: Mattias Andrée <maandree@kth.se>
* don't print argv0NRK2022-01-041-2/+2
| | | | | | imo a good linter should be concise and helpful. printing argv0 doesn't add much value but instead adds noise to the output. i've left printerrorf untouched however, since it calls exit.
* miscMattias Andrée2022-01-043-8/+64
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Remove unnecessary bracketsMattias Andrée2022-01-021-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Lint line continuation and whitespace issuesMattias Andrée2022-01-014-9/+220
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Move some functions into makefile.cMattias Andrée2022-01-014-87/+96
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix replacement character insertion for invalid UTF-8Mattias Andrée2022-01-011-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Validate UTF-8 encoding and check for long linesMattias Andrée2022-01-017-97/+199
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Change [warn] to [warning]Mattias Andrée2022-01-011-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* improve WC_EXTRA_MAKEFILE warningNRK2022-01-011-3/+4
| | | | | | | | | | | | | | currently if open_default_makefile() finds a standard makefile it will print info message but then warn about the same file being "additional." [nrk mklint master]% ./mklint ./mklint: [info] found standard makefile to use: Makefile (-wmakefile) ./mklint: [warn] found additional standard makefile: Makefile (-wextra-makefile) this makes it so that it doesn't produce warning about the the makefile that it already found as "additional." also declares the default_makefiles pointer as const for good measures.
* Rename to mklint to avoid confusion with pre-existing tool with opposite goalMattias Andrée2022-01-013-10/+10
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2021-12-311-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* First commitMattias Andrée2021-12-317-0/+378
Signed-off-by: Mattias Andrée <maandree@kth.se>