Bug 259268 - [NEW PORT] devel/gocritic
Summary: [NEW PORT] devel/gocritic
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Li-Wen Hsu
URL: https://go-critic.com/
Keywords: feature
Depends on:
Blocks:
 
Reported: 2021-10-19 12:13 UTC by Robert Clausecker
Modified: 2021-10-20 07:29 UTC (History)
1 user (show)

See Also:


Attachments
[NEW PORT] devel/gocritic (2.51 KB, patch)
2021-10-19 12:13 UTC, Robert Clausecker
fuz: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)