All Projects → gsquire → Dll

gsquire / Dll

Licence: mit
Go linter for finding defer statements inside for loops

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Dll

Scalafix
Refactoring and linting tool for Scala
Stars: ✭ 597 (+2495.65%)
Mutual labels:  linter
Dockerfilelint
An opinionated Dockerfile linter.
Stars: ✭ 736 (+3100%)
Mutual labels:  linter
Jupyterlab Lsp
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Stars: ✭ 796 (+3360.87%)
Mutual labels:  linter
Phplint
🐛 A tool that can speed up linting of php files by running several lint processes at once.
Stars: ✭ 646 (+2708.7%)
Mutual labels:  linter
Interfacer
A linter that suggests interface types
Stars: ✭ 706 (+2969.57%)
Mutual labels:  linter
Pydocstyle
docstring style checker
Stars: ✭ 752 (+3169.57%)
Mutual labels:  linter
Undercover
Actionable code coverage - detects untested code blocks in recent changes
Stars: ✭ 574 (+2395.65%)
Mutual labels:  linter
Lintr
Static Code Analysis for R
Stars: ✭ 817 (+3452.17%)
Mutual labels:  linter
Tslint
🚦 An extensible linter for the TypeScript language
Stars: ✭ 5,922 (+25647.83%)
Mutual labels:  linter
Awesome Go Linters
A curated list of awesome Go linters. More than 60 linters and tools!
Stars: ✭ 801 (+3382.61%)
Mutual labels:  linter
Xo
❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
Stars: ✭ 6,277 (+27191.3%)
Mutual labels:  linter
Standard
🌟 JavaScript Style Guide, with linter & automatic code fixer
Stars: ✭ 26,433 (+114826.09%)
Mutual labels:  linter
Sonarts
Static code analyzer for TypeScript
Stars: ✭ 776 (+3273.91%)
Mutual labels:  linter
Stylelint Processor Styled Components
Lint your styled components with stylelint!
Stars: ✭ 639 (+2678.26%)
Mutual labels:  linter
Sublime Phpcs
🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter and Mess Detector Support for Sublime Text
Stars: ✭ 805 (+3400%)
Mutual labels:  linter
Devskim
DevSkim is a set of IDE plugins and rules that provide security "linting" capabilities.
Stars: ✭ 576 (+2404.35%)
Mutual labels:  linter
Ls Lint
An extremely fast directory and filename linter - Bring some structure to your project directories
Stars: ✭ 745 (+3139.13%)
Mutual labels:  linter
Sonar Jproperties Plugin
SonarQube Java Properties Analyzer
Stars: ✭ 5 (-78.26%)
Mutual labels:  linter
Dotenv Linter
⚡️Lightning-fast linter for .env files. Written in Rust 🦀
Stars: ✭ 802 (+3386.96%)
Mutual labels:  linter
Super Linter
Combination of multiple linters to install as a GitHub Action
Stars: ✭ 7,445 (+32269.57%)
Mutual labels:  linter

dll

Defer Loop Linter

Build Status

A simple linter to find defer statements inside of for loops in Go source.

Why?

It's often erroneous to use defer inside of a loop as it can lead to memory leaks or other unintended behavior. It can also be easy to miss this in a code review as using defer to close sockets or files is a common Go idiom. This tool aims to point these out by simply printing the line of a defer statement when it is found inside of a loop.

Install

go get github.com/gsquire/dll

Usage

dll source.go

dll *.go

Contributing

Found a bug? Found a case this didn't catch? Great! Feel free to open an issue or add a test case!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].