diff options
author | classabbyamp <dev@placeviolette.net> | 2022-05-01 23:50:46 -0400 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-05-05 15:51:19 +0200 |
commit | dc3688eb4fa1e475dd0ac6906fc16a261d46fafc (patch) | |
tree | e4d5269757508a6f1e201dfb034e6df33bc5a5fe /xq | |
parent | 9469a0daba9cdf56a390abf18bb7729c7469bc2d (diff) | |
download | xtools-dc3688eb4fa1e475dd0ac6906fc16a261d46fafc.tar.gz xtools-dc3688eb4fa1e475dd0ac6906fc16a261d46fafc.tar.xz xtools-dc3688eb4fa1e475dd0ac6906fc16a261d46fafc.zip |
xlint: deduplicate $pkgname and $version
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 ```
Diffstat (limited to 'xq')
0 files changed, 0 insertions, 0 deletions