简体   繁体   中英

golint support for JetBrains GoLand

I'm using GoLand IDE for developing Go applications. I decided to use this as lots of things worked out of the box and I'm used to JetBrains IDEs (Android Studio, AppCode, IntelliJ) and I feel very effective with the learned keyboard shortcuts.

Today, I wanted to enable golint on the project I'm working on, however, I didn't find any standard, simple way to add golint to GoLand.

How can I have the linter go through my code and display a warning or error in JetBrains GoLand? I don't want to rely on the command-line tool to execute the command every time, I want to have it in the editor.

Based on the golint output, it seems like it should not be too hard to integrate the output (it includes the file path, line, column, and the error in each line) and display it as an error right in the editor (with the little red lamp).

I followed the only guide I found, Configure GoLand with golint , but unfortunately, I don't consider it a good enough solution. The end result of that tutorial is that the IDE open a "console" at the bottom of the page, and it just outputs the command result in the IDE. I want to find a way to include it within my code.

it's an interesting question . Becauese i hava the same trouble like this. the terminal remind the golint not found . I try to add the order 'golint' to zsh . But I found the Golang IDE's preference -- tool --file watching , then you can add the template , the 'golangci-lint' is the tool that you want , though it's not 'golint'. You could use it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM