Bug 259268

Summary: [NEW PORT] devel/gocritic
Product: Ports & Packages Reporter: Robert Clausecker <fuz>
Component: Individual Port(s)Assignee: Li-Wen Hsu <lwhsu>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu
Priority: --- Keywords: feature
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://go-critic.com/
Attachments:
Description Flags
[NEW PORT] devel/gocritic fuz: maintainer-approval+

Description Robert Clausecker freebsd_committer freebsd_triage 2021-10-19 12:13:05 UTC
Created attachment 228835 [details]
[NEW PORT] devel/gocritic

Straightforward Go port with USES=go:modules.

***

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/

***

Tested with Poudriere on armv6 arm64 i386 amd64 FreeBSD 13.0.
Portlint says ok.
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-10-20 07:28:56 UTC
A commit in branch main references this bug:

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 (new)  | 18 ++++++++++++++++++
 devel/gocritic/distinfo (new)  |  5 +++++
 devel/gocritic/pkg-descr (new) |  9 +++++++++
 4 files changed, 33 insertions(+)