• Kevin Daudt's avatar
    apkbuild-lint: allow double underscore as argument · c4e38033
    Kevin Daudt authored
    apkbuild-lint guards against parameters starting with a double
    underscore as they are reserved. But the check for this is a bit too
    eager and also warns when something starts with a double underscore
    which is not a variable.
    
    For example:
    
    ```sh
    function foo() {
        make -D__VAR=value
    }
    ```
    
    is a legal construct, but this resulted in a warning. This is because
    the start-of-string / tab part was marked optional, which makes the test
    look for anything starting with a double underscore.
    
    Remove the `?` from the group to actual anchor the check.
    
    Fixes #24
    c4e38033
Name
Last commit
Last update
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
alint.5.scd Loading commit data...
apkbuild-fixer Loading commit data...
apkbuild-fixer.1.scd Loading commit data...
apkbuild-lint Loading commit data...
apkbuild-lint.1.scd Loading commit data...
aports-lint Loading commit data...
aports-lint.1.scd Loading commit data...
build.do Loading commit data...
check.do Loading commit data...
clean.do Loading commit data...
conf Loading commit data...
default.man.do Loading commit data...
initd-lint Loading commit data...
initd-lint.1.scd Loading commit data...
install.do Loading commit data...
manpages.do Loading commit data...