From nobody Wed Oct 20 07:28:47 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DDDD317F99B8; Wed, 20 Oct 2021 07:28:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HZ2KW5tH2z55ZB; Wed, 20 Oct 2021 07:28:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AB8ED236AD; Wed, 20 Oct 2021 07:28:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19K7SlZg078068; Wed, 20 Oct 2021 07:28:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19K7SlER078067; Wed, 20 Oct 2021 07:28:47 GMT (envelope-from git) Date: Wed, 20 Oct 2021 07:28:47 GMT Message-Id: <202110200728.19K7SlER078067@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 8e45ebaccd8d - main - devel/gocritic: (New) Opinionated Go source code linter for code audit List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8e45ebaccd8dc11964dd837fbd21d0b0902434d9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=8e45ebaccd8dc11964dd837fbd21d0b0902434d9 commit 8e45ebaccd8dc11964dd837fbd21d0b0902434d9 Author: Robert Clausecker AuthorDate: 2021-10-19 11:56:38 +0000 Commit: Li-Wen Hsu CommitDate: 2021-10-20 07:27:44 +0000 devel/gocritic: (New) Opinionated Go source code linter for code audit PR: 259268 --- devel/Makefile | 1 + devel/gocritic/Makefile | 18 ++++++++++++++++++ devel/gocritic/distinfo | 5 +++++ devel/gocritic/pkg-descr | 9 +++++++++ 4 files changed, 33 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d7d0ff577f36..5523b10b8fa1 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -882,6 +882,7 @@ SUBDIR += gob2 SUBDIR += gobject-introspection SUBDIR += gocheese + SUBDIR += gocritic SUBDIR += godot SUBDIR += godot-tools SUBDIR += godot2 diff --git a/devel/gocritic/Makefile b/devel/gocritic/Makefile new file mode 100644 index 000000000000..6eb6c9dadb10 --- /dev/null +++ b/devel/gocritic/Makefile @@ -0,0 +1,18 @@ +PORTNAME= gocritic +DISTVERSIONPREFIX= v +DISTVERSION= 0.6.0 +CATEGORIES= devel + +MAINTAINER= fuz@fuz.su +COMMENT= Opinionated Go source code linter for code audit + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +GO_MODULE= github.com/go-critic/go-critic +GO_TARGET= ./cmd/gocritic + +PLIST_FILES= bin/gocritic + +.include diff --git a/devel/gocritic/distinfo b/devel/gocritic/distinfo new file mode 100644 index 000000000000..63ae8ad6c6de --- /dev/null +++ b/devel/gocritic/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1634600015 +SHA256 (go/devel_gocritic/gocritic-v0.6.0/v0.6.0.mod) = ab1326bb84fff6d0cc652ca40cb688d574868a5f5319c6a975d7f577244e1077 +SIZE (go/devel_gocritic/gocritic-v0.6.0/v0.6.0.mod) = 840 +SHA256 (go/devel_gocritic/gocritic-v0.6.0/v0.6.0.zip) = fde5b7a5a2022e1cc12666f28c47a15f5190e88e59a72a46f8746f7ecb84a55b +SIZE (go/devel_gocritic/gocritic-v0.6.0/v0.6.0.zip) = 306249 diff --git a/devel/gocritic/pkg-descr b/devel/gocritic/pkg-descr new file mode 100644 index 000000000000..ea3cf9bc423d --- /dev/null +++ b/devel/gocritic/pkg-descr @@ -0,0 +1,9 @@ +Highly extensible Go source code linter providing checks currently +missing from other linters. Features: + + - Almost 100 diagnostics that check for bugs, performance and style issues + - Extensible without re-compilation with dynamic rules + - Includes #opinionated checks with very strict and specific requirements + - Self-documented: gocritic doc gives a checker description + +WWW: https://go-critic.com/