All Projects → ryanrolds → sqlclosecheck

ryanrolds / sqlclosecheck

Licence: MIT license
Linter that confirms that DB rows and stats are closed properly.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to sqlclosecheck

node-lintspaces
A validator for checking different kinds of whitespaces in your files.
Stars: ✭ 31 (+47.62%)
Mutual labels:  linter
yamburger
YAML syntax got you down? That's a YAMBURGER!
Stars: ✭ 32 (+52.38%)
Mutual labels:  linter
flexlint
A flexible linter with rules defined by regular expression
Stars: ✭ 19 (-9.52%)
Mutual labels:  linter
elm-lint
elm-lint lints Elm source code, to add additional guarantees to your project.
Stars: ✭ 27 (+28.57%)
Mutual labels:  linter
repolint
Tool to check github user/organization repositories for some simple and common issues.
Stars: ✭ 19 (-9.52%)
Mutual labels:  linter
prlint
GitHub App for linting pull request meta data
Stars: ✭ 122 (+480.95%)
Mutual labels:  linter
spec
🐣 easy to use eslint/stylelint/tslint/prettier/...
Stars: ✭ 60 (+185.71%)
Mutual labels:  linter
actionlint
Static checker for GitHub Actions workflow files
Stars: ✭ 1,385 (+6495.24%)
Mutual labels:  linter
vscode-linter
Extension for code linting, all in one package. New linters can be easily added through an extension framework.
Stars: ✭ 47 (+123.81%)
Mutual labels:  linter
flake8-spellcheck
❄️ Spellcheck variables, classnames, comments, docstrings etc
Stars: ✭ 71 (+238.1%)
Mutual labels:  linter
f2e-spec
Alibaba Front-end Coding Guidelines and Relevant Tools
Stars: ✭ 548 (+2509.52%)
Mutual labels:  linter
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+1776.19%)
Mutual labels:  linter
nimfmt
Nim code formatter / linter / style checker
Stars: ✭ 75 (+257.14%)
Mutual labels:  linter
flake8-putty
Flake8 plugin to control reporting per file and line
Stars: ✭ 38 (+80.95%)
Mutual labels:  linter
healthier
🧘‍♀️ Healthier is an opinionated style agnostic code linter – a friendly companion to Prettier
Stars: ✭ 78 (+271.43%)
Mutual labels:  linter
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (+1714.29%)
Mutual labels:  linter
nano-staged
Tiny tool to run commands for modified, staged, and committed files in a GIT repository.
Stars: ✭ 347 (+1552.38%)
Mutual labels:  linter
codeclimate-apexmetrics
ApexMetrics - Code Climate engine for Salesforce [DISCONTINUED use CC PMD instead)
Stars: ✭ 46 (+119.05%)
Mutual labels:  linter
retext-assuming
Check for unhelpful ‘assuming’ phrases such as ‘just’, ‘simply’ or ‘obviously’ with retext
Stars: ✭ 15 (-28.57%)
Mutual labels:  linter
linter-terraform-syntax
terraform validate linter and formatter for atom
Stars: ✭ 19 (-9.52%)
Mutual labels:  linter

sqlclosecheck

ryanrolds

Linter that checks if SQL rows/statements are closed. Unclosed rows and statements may cause DB connection pool exhaustion.

Running

make build
make install

In your project directory:

go vet -vettool=$(which sqlclosecheck) ./...

CI

go install github.com/ryanrolds/sqlclosecheck@latest
go vet -vettool=${GOPATH}/bin/sqlclosecheck ./...

Roadmap

  • Get linter working
  • Added some basic test cases
  • Require that Close be deferred
  • Add sqlx checking
  • Test across a bunch of projects
  • Introduce linter to golangci-lint.
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].