about summary refs log tree commit diff
path: root/xlint
Commit message (Collapse)AuthorAgeFilesLines
* xlint: escape slashes in scan() msg to prevent sed errorsclassabbyamp2022-05-171-1/+1
| | | | Closes: #244 [via git-merge-pr]
* xlint: check if manually defined wrksrc is defaultclassabbyamp2022-05-171-1/+8
| | | | | | | also add a regex_escape filter to reduce false-positives in a couple places Closes: #242 [via git-merge-pr]
* xlint: detect space before tabsLeah Neukirchen2022-05-161-0/+1
|
* xlint: deduplicate $pkgname and $versionclassabbyamp2022-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a slightly naïve solution that does not check if $pkgname matches the template's directory. That would not be very trivial to do to work with the git index functionality or subpackages, and I'm not quite sure how to handle that. Tested by putting two $pkgname and $version in a template. Before: ``` $ xlint chezmoi grep: the -P option only supports a single pattern chezmoi' chezmoi: 'pkgname' defined more than once chezmoi: 'version' defined more than once chezmoi: Place license= after pkgname= chezmoi: Place maintainer= after version= chezmoi:1: Header should be: # Template file for 'chezmoi chezmoi:4: revision does not appear immediately after version ``` After: ``` $ xlint chezmoi chezmoi: 'pkgname' defined more than once chezmoi: 'version' defined more than once chezmoi: Place license= after pkgname= chezmoi: Place maintainer= after version= chezmoi:4: revision does not appear immediately after version ```
* xlint: show line number of wrongly ordered linePiotr Wójcik2022-05-051-1/+5
|
* xlint: fix regexp for explain_make_checkLeah Neukirchen2022-03-281-1/+1
|
* xlint: check make_check comment v0.64Piotr Wójcik2022-03-261-0/+8
| | | | Closes: #220 [via git-merge-pr]
* xlint: reject underscore in versionPiotr Wójcik2022-03-261-1/+1
| | | | Closes: #110 [via git-merge-pr]
* xlint: fix bug in previous commitGonzalo Tornaría2022-02-211-3/+6
| | | | | | | | In scan() I was using $argument in the sed script, but oftentimes $arguments is a path including slashes which breaks havoc. Different way now, hopefully this is correct now. Note that $msg has to go through sed since some messages use `\2` to show the matching line.
* xlint: improvements to lint from git indexGonzalo Tornaría2022-02-201-7/+8
| | | | | | - do not leak $tmpfile in output from scan() - indent using tabs - add new options to README
* xlint: add option to lint from git indexGonzalo Tornaría2022-02-201-4/+17
| | | | | | | | | | | | | | This commit introduces two new uses of xlint: $ xlint :PKGNAME Lints the template corresponding to package PKGNAME as currently staged in the git index (i.e. the version that would be committed) $ xlint : Lints all templates that are changed in the git index. Useful to run from the pre-commit hook for the void-packages repo.
* xlint: check system_accounts underscore prefixPiotr Wójcik2021-10-041-0/+92
| | | | Existing accounts should keep their name.
* xlint: add nofixperms and nocheckperms variablesMichal Vasilek2021-08-261-0/+2
|
* xlint: clarify spaces were usedeater2021-07-121-1/+1
|
* xlint: add X11 to the list of vlicense-required licensesColin Booth2021-06-291-1/+1
| | | | | X11 is a derivative of the MIT license and contains the same license installation requirements.
* xlint: drop obsolete variable "only_for_archs"Leah Neukirchen2021-06-251-2/+0
|
* xlint: treat " WITH " as ", " in licenseĐoàn Trần Công Danh2021-05-291-1/+4
| | | | Closes: #211 [via git-merge-pr]
* xlint: ignore comments v0.63eater2021-02-151-0/+1
| | | | Closes: #177 [via git-merge-pr]
* xlint: allow make_check variable.Érico Rolim2021-02-121-0/+1
| | | | | | | See https://github.com/void-linux/void-packages/commit/2a748e7e6d9727a7e921d6b9a163e0eb17be98b9 Closes: #205 [via git-merge-pr]
* xlint: allow variable no_generic_pkgconfig_linkLeah Neukirchen2020-12-131-0/+1
|
* xlint: deprecate noarch.fosslinux2020-09-091-0/+1
|
* xlint: accept ignore_elf_dirs and ignore_elf_filesĐoàn Trần Công Danh2020-08-271-0/+2
| | | | | | | They're introduced by e0979275b4 (11-pkglint-elf-in-usrshare: allow explicit setting of exceptions, 2020-07-16) Closes: #195 [via git-merge-pr]
* xdbg,xi,xlint,xls,xq,xrs: redirect xdistdir stderr to /dev/null. v0.61Érico Rolim2020-07-261-1/+1
| | | | | | | These commands were outputting error messages from xdistdir when outside a void-packages folder, even though the command is supposed to fail silently. Closes: #190 [via git-merge-pr]
* xlint: accept pkgname as well as path to template. v0.60Érico Rolim2020-07-251-3/+12
| | | | Makes it possible to call xlint as: `xlint 0ad`.
* xlint: remove nonfree= checkStefano Ragni2020-07-251-1/+0
| | | | | | Fixes false positive on desc_option_nonfree= The deprecated nonfree=yes was removed from all templates so this check is not needed anymore
* xlint: preclude variables in homepagePiotr Wójcik2020-05-061-0/+1
|
* xlint: remove pycompile_version from list of acceptable variablesPiotr Wójcik2020-04-231-1/+0
| | | | Closes: #179 [via git-merge-pr]
* Revert "xlint: allow pycompile_module when pycompile_dirs is set"Piotr Wójcik2020-04-231-1/+0
| | | | This reverts commit 124b3b3ae9e42582abcd85ab30fb1a3c3f894632.
* xlint: add check for unverified python_versionAndrew J. Hesford2020-04-211-0/+1
| | | | Closes: #178 [via git-merge-pr]
* xlint: silence correct meson variables warningshtayerc2020-03-261-0/+3
| | | | Closes: #173 [via git-merge-pr]
* xlint: allow pycompile_module when pycompile_dirs is setĐoàn Trần Công Danh2020-01-301-0/+1
| | | | | | | | | Some packages likes Carla shippes python script in custom location, xbps-src hasn't been taught to detect it. Allow pycompile_module for those packages. Closes: #166 [via git-merge-pr]
* xlint: support autogenerated pycompile_module v0.57Piotr Wójcik2020-01-101-0/+1
|
* xlint: accept Public Domain as a licenseCameron Nemo2019-11-291-4/+4
| | | | Closes: #146 [via git-merge-pr]
* xlint: don't fail on meta templatesToyam Cox2019-10-201-1/+1
|
* xlint: check required-and-unique variablesLeah Neukirchen2019-10-201-0/+12
| | | | Closes #155.
* xlint: Ask to not install GPL family and Apache licensesPiotr Wójcik2019-09-131-0/+4
| | | | Closes: #152 [via git-merge-pr]
* xlint: improve message for non-SPDX licensesPiotr Wójcik2019-09-031-1/+1
| | | | Closes: #150 [via git-merge-pr]
* xlint: assert one newline at endPiotr Wójcik2019-07-301-0/+9
| | | | Closes: #144 [via git-merge-pr]
* xlint: read license list from LICENSE_LIST variablePiotr Wójcik2019-07-271-2/+3
| | | | Closes: #139 [via git-merge-pr]
* xlint: remove duplicated entry of revisionDoan Tran Cong Danh2019-07-011-1/+0
| | | | Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
* xlint: sync common hosting sites with xbps-srcPiotr Wójcik2019-06-301-3/+4
|
* xlint: deal with SPDX licenses.maxice82019-04-171-0/+13
|
* xlint: remove unrecognized variable.maxice82019-03-011-2/+0
| | | | | | | Recently all occurrences of noarch=yes have been replaced in a single 2k line commit. time to make sure nobody makes that mistake again.
* xlint: recognize archs=, stop caring about noarch= and replace it withmaxice82019-02-161-1/+3
| | | | archs=.
* xlint: add build_helpermaxice82019-01-261-0/+2
| | | | Closes: #118 [via git-merge-pr]
* xlint: add fetch_cmd to variable orderingmaxice82019-01-221-0/+1
| | | | Closes: #117 [via git-merge-pr]
* xlint: add fetch_cmd to list of acceptable variablesmaxice82019-01-221-0/+1
|
* xlint: refuse the SSPL licenseToyam Cox2019-01-161-0/+1
|
* xlint: don't enforce order for only_for_archsDuncaen2019-01-121-1/+1
| | | | Closes: #116 [via git-merge-pr]
* xlint: don't encourage large diffs by moving less used long variables from ↵Duncaen2019-01-111-2/+2
| | | | | | the end of the template into the middle, seperating build configuration and dependencies that are closely related Closes: #115 [via git-merge-pr]