summaryrefslogtreecommitdiff
path: root/devel/gocritic/Makefile
blob: 358a96994bebd53290962dab551333e59d869217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PORTNAME=	gocritic
DISTVERSIONPREFIX=	v
DISTVERSION=	0.11.2
PORTREVISION=	4
CATEGORIES=	devel

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Opinionated Go source code linter for code audit
WWW=		https://go-critic.com/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
GO_MODULE=	github.com/go-critic/go-critic
GO_TARGET=	./cmd/gocritic \
		./cmd/gocritic-analysis
GO_BUILDFLAGS=	-ldflags "-X main.Version=v${PKGVERSION}"

PLIST_FILES=	bin/gocritic \
		bin/gocritic-analysis

.include <bsd.port.mk>