.\" Generated by scdoc 1.11.3 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "apkbuild-fixer" "1" "2024-10-14" .PP .SH NAME .PP apkbuild-fixer - Fix violations found by apkbuild-lint .PP .SH SYNOPSIS .PP \fBapkbuild-fixer\fR [-sh] [-p path] .PP .SH OPTIONS .PP \fB-h\fR .RS 4 Show help mesage and quit .PP .RE \fB-s\fR .RS 4 Be strict, only fix policy violations we are certain are not false positives .PP .RE \fB-p\fR .RS 4 Path to binary used to find violations, defaults to \fBapkbuild-lint\fR .PP .RE .SH DESCRIPTION .PP apkbuild-fixer fixes linting violations found by \fBapkbuild-lint(1)\fR by modifying the APKBUILD in-place.\& It calls \fBapkbuild-lint\fR after each fix to a particular violation done.\& .PP Note that not all violations have automatic fixes and while care is taken to avoid breaking the APKBUILD it might happen in some edge cases.\& .PP .SH FIXES .PP The following violations can be fixed automatically, but manual review is recommended: .PP .PD 0 .IP \(bu 4 AL1 (default-builddir-value) .RS 4 .IP \(bu 4 Remove the \fBbuilddir\fR variable .RE .IP \(bu 4 AL2 (unnecessary-return-1) .RS 4 .IP \(bu 4 Removes the \fB|| return 1\fR from the line .IP \(bu 4 Removes the line if only the \fB|| return 1\fR is present .RS 4 .IP \(bu 4 Checks previous line for \fB\e \fR and removes it.\& .RE .RE .IP \(bu 4 AL5 (empty-variable) .RS 4 .IP \(bu 4 Remove the empty variable .RE .IP \(bu 4 AL8 (trailing-whitespace) .RS 4 .IP \(bu 4 Removes trailing whitespace on given line .RE .IP \(bu 4 AL10 (space-before-function-parenthesis) .RS 4 .IP \(bu 4 Fixed by rewriting the function name to match the norm.\& .RE .IP \(bu 4 AL11 (space-after-function-parenthesis) .RS 4 .IP \(bu 4 Fixed by rewriting the function name to match the norm.\& .RE .IP \(bu 4 AL13 (superfluous-cd-builddir) .RS 4 .IP \(bu 4 Remove the \fBcd "$builddir"\fR and any following empty lines .RE .IP \(bu 4 AL29 (pkgname-used-in-source) .RS 4 .IP \(bu 4 Replace $pkgname with the value of the variable .RE .IP \(bu 4 AL32 (braced-variable) .RS 4 .IP \(bu 4 Remove the braces around the variable .RE .IP \(bu 4 AL49 (invalid-option) .RS 4 .IP \(bu 4 Remove the invalid option from the line, ignoring comments .RE .IP \(bu 4 AL57 (invalid-arch) .RS 4 .IP \(bu 4 Remove the invalid option from the line, ignoring comments .PD .PP .RE apkbuild-fixer will also rename \fB_builddir\fR to \fBbuilddir\fR as it is very common from before the \fBbuilddir\fR variable was a thing.\& .PP .SH AUTHORS .PP Maintained by Leo .PP .SH SEE ALSO .PP \fBalint(5)\fR \fBapkbuild-lint(1)\fR