git: 8e45ebaccd8d - main - devel/gocritic: (New) Opinionated Go source code linter for code audit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Oct 2021 07:28:47 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8e45ebaccd8dc11964dd837fbd21d0b0902434d9
commit 8e45ebaccd8dc11964dd837fbd21d0b0902434d9
Author: Robert Clausecker <fuz@fuz.su>
AuthorDate: 2021-10-19 11:56:38 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
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 <bsd.port.mk>
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 <checkname> gives a checker description
+
+WWW: https://go-critic.com/