-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba39dc4
commit 8080641
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | ||
|
||
PortSystem 1.0 | ||
PortGroup golang 1.0 | ||
|
||
go.setup github.com/go-critic/go-critic 0.5.5 v | ||
revision 0 | ||
|
||
description The most opinionated Go source code linter for code audit. | ||
|
||
long_description {*}${description} Highly extensible Go source code \ | ||
linter providing checks currently missing from other \ | ||
linters. | ||
|
||
categories devel | ||
maintainers {gmail.com:herby.gillot @herbygillot} \ | ||
openmaintainer | ||
license MIT | ||
installs_libs no | ||
|
||
github.tarball_from \ | ||
archive | ||
|
||
set bin_name gocritic | ||
|
||
# Allow downloading deps at build time | ||
build.env-delete GO111MODULE=off GOPROXY=off | ||
build.target ./cmd/${bin_name} | ||
|
||
destroot { | ||
xinstall -m 0755 ${worksrcpath}/${bin_name} ${destroot}${prefix}/bin/ | ||
} | ||
|
||
checksums rmd160 ecb7348c8683c720be1afd15981fcb32f7c2aac8 \ | ||
sha256 9be5e4c714d561a67bbfc3145b1e533ca0f4011b36adb07af36073bfd184eb4f \ | ||
size 145166 |