64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
Name: vcs-diff-lint
|
|
Version: 4
|
|
Release: 1%{?dist}
|
|
Summary: VCS Differential Code Analysis Tool
|
|
BuildArch: noarch
|
|
|
|
License: GPLv2+
|
|
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
|
|
|
|
Requires: csdiff
|
|
Requires: git
|
|
Requires: pylint
|
|
Requires: python3-mypy
|
|
|
|
%description
|
|
Analyze code, and print only reports related to a particular change.
|
|
|
|
From within a VCS directory (only Git is supported for now) first analyze set of
|
|
changed files against given changeset (origin/main by default) so we know what
|
|
files need to be analyzed. Then run code analyzers (e.g. PyLint) against the
|
|
old code (before changes), run analyzers against the actual code (not yet pushed
|
|
changes), perform a diff (using csdiff utility), and finally print a set of
|
|
added (or even fixed, as opt-in) analyzers' warnings.
|
|
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
|
|
%build
|
|
# Intentionally empty — nothing to build in this package.
|
|
|
|
|
|
%install
|
|
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
|
|
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README
|
|
%_bindir/vcs-diff-lint*
|
|
|
|
|
|
%changelog
|
|
* Fri Nov 18 2022 Pavel Raiskup <praiskup@redhat.com> 4-1
|
|
- don't print Mypy errors from files that are not explicitly analyzed
|
|
|
|
* Thu Nov 10 2022 Pavel Raiskup <praiskup@redhat.com> 3-1
|
|
- print the headers back to stdout again
|
|
- non-monorepo use-case fixed
|
|
- add support for Mypy
|
|
|
|
* Thu Oct 20 2022 Pavel Raiskup <praiskup@redhat.com> 2-1
|
|
- don't pollute stdout so csgrep can read it
|
|
|
|
* Thu Sep 29 2022 Pavel Raiskup <praiskup@redhat.com> 1-1
|
|
- new package built with tito
|