YunoHost / package_linter

Linter for YunoHost applications packages
https://yunohost.org/#/packaging_apps
GNU Affero General Public License v3.0
17 stars 13 forks source link

Fix regex in helpers_sourcing_after_official() #129

Closed oleole39 closed 4 months ago

oleole39 commented 4 months ago

Current regex will match any of the ten line after the official helper files starting with the string source. Thus, in my specific case in an install script for which I declare a variable named source_filename=$(basename $upstream_source_url), the linter will unecessarily display the following warning: ! Please avoid sourcing additional helpers after the official helpers (in this case file _filename=$(basename$upstream__url)). As it should be only interested in matching the command source (source path/to/file), a space should be appended to the current regex.