Use "golangci-lint -help" for more information about a command.Įxample success log Results of golangci-lint linter (version 1.33.0) trace-path string Path to trace output file mem-profile-path string Path to memory profile output file cpu-profile-path string Path to CPU profile output file With ESLint, you can also use JavaScript Standard Style as well as lint your TypeScript code. GoLand shows warnings and errors reported by ESLint right in the editor, as you type.
j, -concurrency int Concurrency (default NumCPU) (default 2) GoLand integrates with ESLint which brings a wide range of linting rules that can also be extended with plugins. If you want to customize it, put a configuration file (e.g.golangci.yml) in your repository. To start using GolangCI-Lint, enable it in your repository settings. color string Use color when printing can be 'always', 'auto', or 'never' (default "auto") GolangCI-Lint is a linter to aggregate multiple linters and a successor to Go Meta Linter which is deprecated. Linters List current linters configuration Run it in cloud for every GitHub pull request on Ĭompletion Generate the autocompletion script for the specified shell
Regular expression list for filtering files by their base names using regex full match. golangci-lint version golangci-lint has version v1.41.1. By the way, pay attention that golint disabled by default in golangci-lint.
Currently, these inspections not available as built-in in the code, feel free to go to GO-2220and vote for it to stay updated. You can add additional lint checks using the go.lintOnSave setting and configuring your choice of linting tool (staticcheck, golangci-lint, or revive) using the go.lintTool setting. Empty list excludes all files Ex: įile name regex filters. I assume that you enable File Watcher that is called golangci-lint. "*" matches any extension, "" matches empty extension. Override default CLI lint mode - file: Calls the linter for each file - list_of_files: Call the linter with the list of files as argument - project: Call the linter from the root of the projectĪllowed file extensions. User custom arguments to add in linter CLI call Ex: -s -foo "bar"Ĭustom regex including filter Ex: (src\|lib)Ĭustom regex excluding filter Ex: (test\|examples) Disable golangci-lint by adding GO_GOLANGCI_LINT in DISABLE_LINTERS variable.Enable golangci-lint by adding GO_GOLANGCI_LINT in ENABLE_LINTERS variable.See Index of problems detected by golangci-lint.