Compare commits

...
Sign in to create a new pull request.

16 commits

Author SHA1 Message Date
Fedora Release Engineering
b12575ebc2 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:23:30 +00:00
Pavel Raiskup
6a08bf6f41 Update vcs-diff-lint to 6.7-1 2026-04-26 01:06:45 +02:00
Pavel Raiskup
f1dd919d1f Update vcs-diff-lint to 6.6-1 2026-04-24 14:19:28 +02:00
Pavel Raiskup
322eeb29bd Update vcs-diff-lint to 6.5-1 2026-04-24 12:03:34 +02:00
Fedora Release Engineering
f0ecdf8b60 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:48:46 +00:00
Fedora Release Engineering
64154e3d37 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:59:29 +00:00
Fedora Release Engineering
1f9b5e542f Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:09:22 +00:00
Pavel Raiskup
1ed0dd062d Update vcs-diff-lint to 6.4-1 2024-10-16 10:33:33 +02:00
Pavel Raiskup
115c104466 Update vcs-diff-lint to 6.3-1 2024-09-20 09:49:29 +02:00
Pavel Raiskup
5eeeb1690c Update vcs-diff-lint to 6.2-1 2024-09-07 07:22:13 +02:00
Pavel Raiskup
e2c779266e Update vcs-diff-lint to 6.1-1
Resolves: # - linter-tag option added
2024-08-28 10:04:41 +02:00
Miroslav Suchý
7dddd27538 convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-26 03:30:49 +02:00
Fedora Release Engineering
17605a299f Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:36:43 +00:00
Fedora Release Engineering
8bfbf557e7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:33:46 +00:00
Fedora Release Engineering
3ca98fbb10 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:27:31 +00:00
Fedora Release Engineering
d8ed9e0927 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:08:34 +00:00
3 changed files with 87 additions and 8 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/vcs-diff-lint-*.tar.gz
/vcs-diff-lint-testdata-1.0.0.bundle

View file

@ -1 +1,2 @@
SHA512 (vcs-diff-lint-4.tar.gz) = 8e1620b33efa4069d80ac4df307efa1a11104e65f24a41313356e234ec4762bca78bce12251571cff083ec179f69688593e6769f4069f382af08e3a92b34897f
SHA512 (vcs-diff-lint-6.7.tar.gz) = 0ac37a5b22309811d636aa4123c513df5e9f21ebac9df94b599dd6d04d293088c96c68b46675fb32bdd8345b3a7c73b60b7725103344246aaccbab8c779f69ae
SHA512 (vcs-diff-lint-testdata-1.0.0.bundle) = 59da14b42cf00ee793962784240e580a884312be3d1de1d7edc020c56c43afd4a6b6d4492d850a007b330add5569f45e48e764b1a0f6d09c0c8c350c7aa0320e

View file

@ -1,20 +1,42 @@
Name: vcs-diff-lint
Version: 4
Release: 1%{?dist}
Version: 6.7
Release: 2%{?dist}
Summary: VCS Differential Code Analysis Tool
BuildArch: noarch
License: GPLv2+
%if 0%{?rhel} == 10
# missing csdiff / pylint
%bcond_with check
%else
%bcond_without check
%endif
License: GPL-2.0-or-later
URL: https://github.com/fedora-copr/vcs-diff-lint
# Source is created by:
# git clone %%url && cd vcs-diff-lint
# tito build --tgz --tag %%name-%%version-%%release
Source0: %name-%version.tar.gz
Source1: https://github.com/praiskup/vcs-diff-lint-testdata/releases/download/v1.0.0/vcs-diff-lint-testdata-1.0.0.bundle
Requires: csdiff
Requires: git
Requires: pylint
Requires: python3-mypy
Requires: git-core
Recommends: pylint
Recommends: python3-mypy
Recommends: python3-types-requests
Recommends: ruff
Recommends: yamllint
%if %{with check}
BuildRequires: csdiff
BuildRequires: git-core
BuildRequires: pylint
BuildRequires: rpmdevtools
BuildRequires: python3-pytest
BuildRequires: yamllint
%endif
%description
Analyze code, and print only reports related to a particular change.
@ -29,6 +51,9 @@ added (or even fixed, as opt-in) analyzers' warnings.
%prep
%autosetup
%if %{with check}
cp %{SOURCE1} ./
%endif
%build
@ -40,15 +65,67 @@ install -d %buildroot%_bindir
install -p vcs-diff-lint %buildroot%_bindir
install -p vcs-diff-lint-csdiff-pylint %buildroot%_bindir
install -p vcs-diff-lint-csdiff-mypy %buildroot%_bindir
install -p vcs-diff-lint-csdiff-ruff %buildroot%_bindir
install -p vcs-diff-lint-csdiff-yamllint %buildroot%_bindir
%if %{with check}
%check
./run-tests.sh --no-cov
%endif
%files
%license LICENSE
%doc README
%doc README.md
%_bindir/vcs-diff-lint*
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 6.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sun Apr 26 2026 Pavel Raiskup <pavel@raiskup.cz> 6.7-1
- Handle (no traceback) "invalid-syntax" code from Ruff
- log.debug() all git commands
- do not let "git apply" pollute stderr with whitespace errors
* Fri Apr 24 2026 Pavel Raiskup <pavel@raiskup.cz> 6.6-1
- Fix stdout buffering
* Fri Apr 24 2026 Pavel Raiskup <pavel@raiskup.cz> 6.5-1
- yamllint support
- depend on git-core instead of git
* Wed Oct 16 2024 Pavel Raiskup <praiskup@redhat.com> 6.4-1
- add a basic test-suite
- drop duplicated check for empty list of changed files
* Fri Sep 20 2024 Pavel Raiskup <praiskup@redhat.com> 6.3-1
- don't require all the linters, just recommend them
- use requested linters only if they are available
- nicer info/debug output
* Sat Sep 07 2024 Pavel Raiskup <praiskup@redhat.com> 6.2-1
- drop unnecessary newline in the output
- ruff: don't prefix the error locations with absolute path
- ruff: don't optimize out the full Ruff run
- print the git sha1 being analyzed
- bugfix: correct matching filenames with endswith()
* Wed Aug 28 2024 Pavel Raiskup <praiskup@redhat.com> 6.1-1
- rpm: use SPDX License format
* Wed Aug 28 2024 Pavel Raiskup <praiskup@redhat.com> 6-1
- bugfix: correctly honor file renames
- bugfix: fix subproject detection for git worktree
- ruff: do full project scans (since Ruff is fast enough)
- check the new (changed) code in a side-directory
* Mon Aug 26 2024 Pavel Raiskup <praiskup@redhat.com> - 5-1
- support for fast "ruff" analyser
- --linter-tag option added
- subproject detection by .vcs-diff-lint.yml
* Fri Nov 18 2022 Pavel Raiskup <praiskup@redhat.com> 4-1
- don't print Mypy errors from files that are not explicitly analyzed