golangci lint command not found

# Mainly related to generics support since go1.18. If no configuration file has been found, GolangCI-Lint will try to find one in your home directory. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. GOARCH="amd64" # A list of packages for the list type specified. # Report pre-allocation suggestions on for loops. # only those changes are analyzed, else only changes in HEAD~ are analyzed. GOHOSTARCH="amd64" # we confidently recognize autogenerated files. # Consider enums only in package scopes, not in inner scopes. --exclude-use-default Use or not use default excludes: # EXC0001 errcheck: Almost all programs ignore errors on these functions and in most cases it's ok, - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). # Standard section: captures all standard packages. golangci-lint follows semantic versioning. # If the number of lines in a case block is equal to or lager than this. Fast linters runner for Go. # Glob patterns such as 'rules-*.go' may be specified. # See https://github.com/mgechev/revive#command-line-flags. # Which checks should be enabled; can't be combined with 'disabled-checks'. # Has higher priority than max-decl-chars. # Custom section: groups all imports with the specified Prefix. MOLPRO: is there an analogue of the Gaussian FCHK file? # used for error variables to check for in the conditional. Choose the download for your platform and install it. Although it will not cause CI . # which is impossible to exclude via `nolint` comments. Looking out for up-and-coming members of the GolangCI community who might want to serve as Core Team members. # (in addition to defaults context.WithCancel,context.WithDeadline,context.WithTimeout,context.WithValue, # errors.New,fmt.Errorf,fmt.Sprint,fmt.Sprintf,sort.Reverse), # Comma-separated list of names of methods of type func() string whose results must be used. Finds commonly misspelled English words in comments, Finds naked returns in functions greater than a specified function length. # Default: "http\\.Dir\\(\"\\/\"\\)|http\\.Dir\\('\\/'\\)", # Maximum allowed permissions mode for os.Mkdir and os.MkdirAll, # Maximum allowed permissions mode for os.OpenFile and os.Chmod, # Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. redocly cli is installed globally. # If severity rules are defined and the issues do not match or no severity is provided to the rule. Golangci-lint can be run in two ways: With configuration file (usually .golangci.yml); And without it. # Default: "(?i)passwd|pass|password|pwd|secret|token|pw|apiKey|bearer|cred". # Suggest the use of constant.Kind.String(). We believe in open source and GolangCI is an open source project. GOENV="/root/.config/go/env" # It's not practical to fix all existing issues at the moment of integration: # much better don't allow issues in new code. Microsoft Azure joins Collectives on Stack Overflow. # Require the use of a single 'import' declaration only. # Require the use of grouped global 'var' declarations. can be used to install the latest version of golangci-lint: It can also be installed through macports Install golangci-lint On my machine; On CI/CD systems. This is the command I used as shown on the redocly documentation. # Require the use of a single global 'var' declaration only. # List of regexps of issue texts to exclude. Computes and checks the cyclomatic complexity of functions, Tool for detection of FIXME, TODO and other comment keywords, Golang linter to check the errors handling expressions, Gofmt checks whether code was gofmt-ed. # The builtin exclusions can be disabled by setting `use-builtin-exclusions` to `false`. # Minimum occurrences of constant string count to trigger issue. # Maximum number of open files at the same time. Did you mean to break out of the outer loop, # EXC0006 gosec: Too many false-positives on 'unsafe' usage, # EXC0007 gosec: Too many false-positives for parametrized shell calls, - Subprocess launch(ed with variable|ing should be audited), # EXC0008 gosec: Duplicated errcheck checks, # EXC0009 gosec: Too many issues in popular repos, - (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less), # EXC0010 gosec: False positive is triggered by 'src, err := ioutil.ReadFile(filename)', # EXC0011 stylecheck: Annoying issue about not having a comment. # Checks that there is no simultaneous return of `nil` error and an invalid value. # Set to true if no external program/library imports your code. (Optional), # Reason why the recommended module should be used. To see which config file is being used and where it was sourced from run golangci-lint with -v option. # Output path can be either `stdout`, `stderr` or path to the file to write to. # Values always ignored: "1", "1.0", "0" and "0.0". # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#flag-parameter, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#function-result-limit, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#function-length, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#get-return, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#identical-branches, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#if-return, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#increment-decrement, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#indent-error-flow, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#imports-blacklist, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#import-shadowing, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#line-length-limit, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#max-public-structs, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#modifies-parameter, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#modifies-value-receiver, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#nested-structs, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#optimize-operands-order, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#package-comments, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#range, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#range-val-in-closure, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#range-val-address, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#receiver-naming, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#redefines-builtin-id, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#string-of-int, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#string-format, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#struct-tag, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#superfluous-else, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#time-equal, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#time-naming, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-naming, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-declaration, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unconditional-recursion, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unexported-naming, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unexported-return, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unhandled-error, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unnecessary-stmt, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unreachable-code, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-receiver, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#useless-break, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#waitgroup-by-value, # SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks, # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks, # https://staticcheck.io/docs/configuration/options/#dot_import_whitelist, # Default: ["github.com/mmcloughlin/avo/build", "github.com/mmcloughlin/avo/operand", "github.com/mmcloughlin/avo/reg"], # https://staticcheck.io/docs/configuration/options/#initialisms, # Default: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"], # https://staticcheck.io/docs/configuration/options/#http_status_code_whitelist. # Comments to be checked: `declarations`, `toplevel`, or `all`. rev2023.1.18.43175. Here is the recommended way to install golangci-lint v1.50.1: It is advised that you periodically update the version of golangci-lint as the project is under active development By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Download Thanks for contributing an answer to Stack Overflow! or even without --enable-all when one upstream linter is upgraded. # By default, it allows using errors, empty interfaces, anonymous interfaces. The official document says that different OSs have different ways of installation (for example, Linux and Windows can get a binary file).. We need to modify the document as N/A (OS-specific).. GolangCI-Lint also searches for config files in all directories from the directory of the first analyzed path up to the root. By clicking Sign up for GitHub, you agree to our terms of service and GOMOD="" # Checks the number of statements in a function. Why is sending so few tanks to Ukraine considered significant? # `camel` is used for `json` and `yaml` (can be overridden), # Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`. How were Acorn Archimedes used outside education? # Check that each sentence starts with a capital letter. This is the text that must appear at the top of source files. # Print linter name in the end of issue text. # `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`. An adverb which means "doing without understanding", First story where the hero/MC trains a defenseless village against raiders. # Presence of "default" case in switch statements satisfies exhaustiveness. # Section configuration to compare against. The rare codebase has such comments, - comment on exported (.+) should be of the form "(.+)", # EXC0015 revive: Annoying issue about not having a comment. Sign in Two parallel diagonal lines on a Schengen passport stamp. An existing configuration option or linter is deprecated. Remark: We can still install golangci-lint by go install using such command: In this case, the tap formula, which is updated automatically, If you would like to contribute we have a guide for contributors. zsh: command not found: redocly. # The following configurations check for all mentioned invisible unicode runes. # See the License for the specific language governing permissions and. # Blocked module with version constraint. # If set to true exclude and exclude-rules regular expressions become case-sensitive. the go tool trace command and visualization tool. # The numbers should be written as string. # binary will be $(go env GOPATH)/bin/golangci-lint, curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1, curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1, # In alpine linux (as it does not come with curl by default), wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1, docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.50.1 golangci-lint run -v, docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/v1.50.1:/root/.cache -w /app golangci/golangci-lint:v1.50.1 golangci-lint run -v, docker run -t --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.50.1 golangci-lint run -v, go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1, it's stability depends on a user's Go version (e.g. # Print struct with more effective memory layout or not. It's not the same thing as the staticcheck binary. How can citizens assist at an aircraft crash site? # Default: [".Errorf(", "errors.New(", "errors.Unwrap(", ".Wrap(", ".Wrapf(", ".WithMessage(", ".WithMessagef(", ".WithStack("]. # See the dedicated "output" documentation section. # If false (default) - golangci-lint acquires file lock on start. Being available to review longstanding/forgotten pull requests. # Forbid the following identifiers (list of regexp). # it can be disabled by `exclude-use-default: false`. # See the https://github.com/polyfloyd/go-errorlint for caveats. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. # List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. This is most likely the case. # These are the defaults for `golangci-lint`. The GolangCI Core Team is a group of contributors that have demonstrated a lasting enthusiasm for the project and community. # Comma-separated list of predeclared identifiers to not report on. --new-from-rev REV Show only new issues created after git revision REV, --new-from-patch PATH Show only new issues created in git patch with file path PATH, --whole-files Show issues in any part of update files (requires new-from-rev or new-from-patch), --fix Fix found issues (if it's supported by the linter), -h, --help help for run, --color string Use color when printing; can be 'always', 'auto', or 'never' (default "auto"), -j, --concurrency int Concurrency (default NumCPU) (default 8), --cpu-profile-path string Path to CPU profile output file, --mem-profile-path string Path to memory profile output file, --trace-path string Path to trace output file, -v, --verbose verbose output, --version Print version. # Minimal complexity of if statements to report. GOPATH="/root/go" # This means that linting errors with less than 0.8 confidence will be ignored. # You may obtain a copy of the License at: # http://www.apache.org/licenses/LICENSE-2.0, # Unless required by applicable law or agreed to in writing, software. I'm attaching my Bash file just incase it's related - PasteBin # Specify rules by which the linter ignores certain files for consideration. ): -bash: __git_ps1: command not found. golangci-lint module Version: v1.10.1LatestLatest This package is not in the latest version of its module. isn't immediately available via homebrew core due to manual updates that need to occur from homebrew core maintainers. Why are there two different pronunciations for the word Tee? # Default is to use a neutral variety of English. -n, --new Show only new issues: if there are unstaged changes or untracked files, only those changes are analyzed, else only changes in HEAD~ are analyzed. Being available to answer high-level questions about vision and future. Defaults to assignments or calls looking, # Causes an error when an If statement that checks an error variable doesn't. There is a .golangci.reference.yml file with all supported options, their description, and default values. # Which dirs to skip: issues from them won't be reported. Whitespace Linter - Forces you to use empty lines. # the regex is used to ignore names within pkg. # To specify a set of rules to explicitly exclude. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. # ruleguard prints the specific Where() condition that was rejected. Config options inside the file are identical to command-line options. Christian Science Monitor: a socially acceptable source among conservative Christians? enforces standards of using ginkgo and gomega, Checks that no init functions are present in Go code, Computes and checks the cognitive complexity of functions, Finds repeated strings that could be replaced by a constant. You should expect to see the respective path that you have set. . It's a set of rules from staticcheck. What are possible explanations for why Democratic states appear to have higher homeless rates per capita than Republican states? This is an example usage of a plugin linter. # Analyzer name, run `go tool vet help` to see all analyzers. # Exclude following linters from requiring an explanation. # and interfaces provided by the standard library. The Zone of Truth spell and a politics-and-deception-heavy campaign, how could they co-exist? # Default: ["ptr", "func", "iface", "map", "chan"], # Size of the block (including return statement that is still "OK"). # Severities should match the supported severity names of the selected out format. # see https://github.com/kisielk/errcheck#the-deprecated-method for details. # Example: "checkstyle:report.json,colored-line-number". # Default: ["argument", "case", "condition", "operation", "return", "assign"]. # marks code that should be optimized before merging, # marks hack-around that should be removed before merging. GolangCI is built by developers for developers. . By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. # Exit code when at least one issue was found. # with golangci-lint call it on a directory with the changed file. # See the dedicated "run" documentation section. It's a super-useful option for integration of golangci-lint into existing large codebase. See the dedicated linters-settings documentation section. # An array of strings that specify regular expressions of signatures to ignore. # Optional list of variable names that should be ignored completely. Drop-in replacement of golint. # Run `go tool vet help` to see all analyzers. # The path to the plugin *.so. # The matching patterns can use matching syntax from https://pkg.go.dev/path#Match. Not the answer you're looking for? # See https://github.com/go-critic/go-critic#usage -> section "Tags". # Whether to be strict about shadowing; can be noisy. # The struct packages have the form `example.com/package.ExampleStruct`. # Report pre-allocation suggestions on range loops. # Comma-separated list of disabled groups or skip empty to enable everything. # See the dedicated "severity" documentation section. All text editor integrations. Why Go Case Studies Common problems companies solve with Go. # Do strict checking when assigning from append (x = append(x, y)). # Define here const type values in format k:v. # Put here copyright header template for source code files. The first option is nice, but that implies to have this setup done for every single job. GOFLAGS="" # For most programs usage of prealloc will be a premature optimization. # To list all excluded by default patterns execute `golangci-lint run --help`, # Default: https://golangci-lint.run/usage/false-positives/#default-exclusions, # Excluding configuration per-path, per-linter, per-text and per-source. These unchecked errors can be critical bugs in some cases, Linter for Go source code that specializes in simplifying code, Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string, Detects when assignments to existing variables are not used. # If it's higher than 0.0 (float) the check is enabled. # but there is no need to include all autogenerated files. # The default order of sections is `standard > default > custom > blank > dot`. Replaced by revive(var-naming). (Basically Dog-people). CGO_LDFLAGS="-g -O2" This section is not present unless explicitly enabled. Check import statements are formatted according to the 'goimport' command. # Maximum allowed value of entropy/string length. Note that the Core Team and all GolangCI contributors are open source volunteers; membership on the Core Team is expressly not an obligation. # Comma-separated list of file paths containing ruleguard rules. For CI setups, prefer --new-from-rev=HEAD~, as --new can skip linting the current patch if any scripts generate unstaged files before golangci-lint runs. # Suppress the wrong length assertion warning. Minor release (might break your lint build because of newly found issues), A major or minor version update of a specific linter that results in. # An array of strings that specify globs of packages to ignore. # Required order of `type`, `const`, `var` and `func` declarations inside a file. The owner seems to have abandoned the linter. # Supports two types 'const` and `regexp`. Either way when running this command from a script in my Jenkins build you get an error about no terminal and a blank 0B file: docker run --rm -ti\ -v "$ {PWD}:/go/src/app" \ -w "/go/src/app" \ <repo>/go-build \ golangci-lint run ./. CGO_CXXFLAGS="-g -O2" You signed in with another tab or window. To see which config file is being used and where it was sourced from run golangci-lint with -v option. # - 'import': ruleguard rule imports a package that cannot be found. # Only run exhaustive check on switches with "//exhaustive:enforce" comment. golang / lint Public archive Notifications Fork 528 Star 4k Code Issues Pull requests Actions Security Insights zsh: command not found: golint #494 Closed if yes, check for the bin folder if the specified package is installed, if not install the package . What happened: The master code executes the make lint project check and there is an error. Once it is installed, you run golangci-lint with the command: golangci-lint run Because golangci-lint runs so many tools (as of this writing, it runs 10 different linters by default, and allows you to enable another 50), it's inevitable that your team disagrees with some of its suggestions. In the Pern series, what are the "zebeedees"? # List of custom rules to check against, where each rule is a single logger pattern, useful for wrapped loggers. and is constantly being improved. Details. AR="ar" Once it is installed, you run golangci-lint with the command: golangci-lint run. You can configure specific linters' options only within the config file (not the command-line). How dry does a rock/metal vocal have to be during recording? GOCACHE="/root/.cache/go-build" x, checks for duplicate words in the source code, check for two durations multiplied together. # Report pre-allocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them. # Show functions with maintainability index lower than N. # A high index indicates better maintainability (it's kind of the opposite of complexity). A tag already exists with the provided branch name. When the --cpu-profile-path or --mem-profile-path arguments are specified, golangci-lint writes runtime profiling data # DEPRECATED comma-separated list of pairs of the form pkg:regex. # If true, `init` func can be anywhere in file (does not have to be declared before all other functions). # Enforces newlines (or comments) after every multi-line if statement. Set to 0 to disable (default 50), --max-same-issues int Maximum count of issues with the same text. goGo is an open source programming language that makes it easy to build simple, reliable, and efficient software. GolangCI-Lint is designed to be as flexible as possible for a wide range of use cases. (Optional), "`mod` is the official go.mod parser library.". # The list of ids of default excludes to include or disable. You signed in with another tab or window. --verbose --no-config --out-format checkstyle > golangci-lint.out`. # distributed under the License is distributed on an "AS IS" BASIS. Recursively counting files in a Linux directory, Bash ignoring error for a particular command, Set environment variables from file of key/value pairs, "ERROR: column "a" does not exist" when referencing column alias. # if check-error-free-encoding is set to true and errcheck linter is enabled. # Suggest the use of sql.LevelXX.String(). comment|comment should be of the form), # EXC0003 golint: False positive when tests are defined in package 'test', - func name will be used as test\.Test. golangci-lint Alex Murray (alexmurray) Development Utilities latest/stable 1.50.1 Install Fast linters runner for Go Runs linters in parallel, uses caching, supports yaml config, has integrations with all major IDE and has dozens of linters included. Ignoring lints list of enabled/disabled linters) are combined from the command-line and config file. $ go version go version go1.15.2 linux/amd64 What I want I want to make a microservice implemented by Go. How to tell a vertex to have its normal perpendicular to the tangent of its edge? # As alternative of directive 'template', you may put the path to file with the template source. # List of function patterns to exclude from analysis. Occasionally check issues, offer input, and categorize with GitHub issue labels. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Can accept both string prefixes and string glob patterns. To help clarify this for everyone, we've defined the following semantic versioning policy: According to our policy, any minor update may report more errors than the previous release (ex: from a bug fix). # Require the use of grouped global 'const' declarations. fn create app go-oci-app fn list apps connection refused fn start fn --verbose deploy --app go-oci-app --local knative.dev/serving/pkg/apis/autoscaling/v1alpha1. # Causes an error if a short declaration (:=) cuddles with anything other than. Finds the code that returns nil even if it checks that the error is not nil. This section is not present unless explicitly enabled. CGO_ENABLED="1" MOLPRO: is there an analogue of the Gaussian FCHK file? GOROOT="/usr/lib/go-1.13" However, due to the nature of golangci-lint as a code quality tool, Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted. # If this list is empty, all structs are tested. # Which checks should be disabled; can't be combined with 'enabled-checks'. # Additional functions to ignore while checking unhandled errors. # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#add-constant, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#argument-limit, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#atomic, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#banned-characters, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#bare-return, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#blank-imports, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#bool-literal-in-expr, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#call-to-gc, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#cognitive-complexity, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-naming, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-results, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#constant-logical-expr, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-as-argument, "*testing.T,*github.com/user/repo/testing.Harness", # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-keys-type, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#cyclomatic, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#datarace, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#deep-exit, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#defer, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#dot-imports, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#duplicated-imports, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#early-return, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#empty-block, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#empty-lines, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#error-naming, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#error-return, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#error-strings, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#errorf, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#exported, # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#file-header.