{"repo":"Antonboom/testifylint","free":true,"listed":false,"github":"https://github.com/Antonboom/testifylint","clone":"git clone https://github.com/Antonboom/testifylint.git","description":"The Golang linter that checks usage of github.com/stretchr/testify.","language":"Go","stars":172,"topics":["go","golang","linter","static-analysis","testify"],"license":"MIT","category":"dev-tools","readme_excerpt":"testifylint Checks usage of github.com/stretchr/testify. Table of Contents Problem statement Installation & usage Configuring Checkers Chain of warnings testify v2 Problem statement Tests are also program code and the requirements for them should not differ much from the requirements for the code under tests 🙂 We should try to maintain the consistency of tests, increase their readability, reduce the chance of bugs and speed up the search for a problem. testify is the most popular Golang testing framework in recent years. But it has a terrible ambiguous API in places, and the purpose of this linter is to protect you from annoying mistakes . JetBrains \"The State of Go Ecosystem\" reports 2021 and 2022. Installation & usage Fixing Fixing with golangci-lint is currently unavailable due to golangci/golangci-lint#1779. Be aware that there may be unused imports after the fix, run go fmt . Configuring CLI golangci-lint https://golangci-lint.run/docs/linters/configuration/#testifylint Checkers - ✅ – yes - ❌ – no - 🤏 – partially Name Enabled By Default Autofix ----------------------------------------------------- -------------------- --------- blank-import ✅ ❌ bool-compare ✅ ✅ compares ✅ ✅ contains ✅ 🤏 empty ✅ ✅ encoded-compare ✅ ✅ equal-values ✅ ✅ error-is-as ✅ 🤏 error-nil ✅ ✅ expected-actual ✅ ✅ float-compare ✅ ❌ formatter ✅ 🤏 go-require ✅ ❌ len ✅ ✅ mock-expect ✅ 🤏 negative-positive ✅ ✅ nil-compare ✅ ✅ regexp ✅ ✅ require-error ✅ ❌ suite-broken-parallel ✅ ✅ suite-dont-use-pkg ✅ ✅","default_branch":null,"files":null,"tree":[],"storefront":"/r/Antonboom","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Antonboom/testifylint/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}