DEV Community

Cover image for Static Analysis Tool
Isabella Liu
Isabella Liu

Posted on

1 1

Static Analysis Tool

Alt Text

This week we covered the commonly used static analysis tools. After watching David's lecture, I feel lucky and happy that I chose to learn some Golang language while taking this course. Go has made things much easier and reduced unnecessary conflicts by forcing users to follow only one rule of formatting. It's meaningless to fight for which kind of indentation we should take, or if the curly braces should take another line or not.

For the formatting, actually, there is no need for me or any contributor to do manual formatting with Go, since Go would save the code to its pre-defined format. The following command can help to format the code too:

gofmt -w filename.go
Enter fullscreen mode Exit fullscreen mode

I chose Golint for the linter, and the user can execute the below command to force checking:

golint filename.go
Enter fullscreen mode Exit fullscreen mode

For the IDE Integration, I used VS Code, and the file setting.json under .vscode has been updated automatically after changing the setting of the extension.

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay