All Projects → mvdan → Unparam

mvdan / Unparam

Licence: bsd-3-clause
Find unused parameters in Go

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Unparam

Graphql For Vscode
GraphQL syntax highlighting, linting, auto-complete, and more!
Stars: ✭ 265 (-14.79%)
Mutual labels:  linter
Lint Review
An automated code linting bot that integrates various code lint tools with github pull requests.
Stars: ✭ 279 (-10.29%)
Mutual labels:  linter
Bandit
Bandit is a tool designed to find common security issues in Python code.
Stars: ✭ 3,763 (+1109.97%)
Mutual labels:  linter
Typescript Tslint Plugin
TypeScript TSLint language service plugin
Stars: ✭ 270 (-13.18%)
Mutual labels:  linter
Linter
Static Analysis Compiler Plugin for Scala
Stars: ✭ 273 (-12.22%)
Mutual labels:  linter
Typl
The Type Linter for JS
Stars: ✭ 282 (-9.32%)
Mutual labels:  linter
awesome-react-app
Always the latest version of "create-react-app" with awesome configurations (lint, commit lint, husk, editor config, etc)
Stars: ✭ 44 (-85.85%)
Mutual labels:  linter
Pytype
A static type analyzer for Python code
Stars: ✭ 3,545 (+1039.87%)
Mutual labels:  linter
Coala Bears
Bears for coala
Stars: ✭ 276 (-11.25%)
Mutual labels:  linter
Go Consistent
Source code analyzer that helps you to make your Go programs more consistent.
Stars: ✭ 293 (-5.79%)
Mutual labels:  linter
Wotan
Pluggable TypeScript and JavaScript linter
Stars: ✭ 271 (-12.86%)
Mutual labels:  linter
Tlint
Tighten linter for Laravel conventions
Stars: ✭ 274 (-11.9%)
Mutual labels:  linter
Darglint
A python documentation linter which checks that the docstring description matches the definition.
Stars: ✭ 285 (-8.36%)
Mutual labels:  linter
Goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Stars: ✭ 2,943 (+846.3%)
Mutual labels:  linter
Awesome Standard
Documenting the explosion of packages in the standard ecosystem!
Stars: ✭ 300 (-3.54%)
Mutual labels:  linter
Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (-16.4%)
Mutual labels:  linter
Vim Terraform Completion
A (Neo)Vim Autocompletion and linter for Terraform, a HashiCorp tool
Stars: ✭ 280 (-9.97%)
Mutual labels:  linter
Gts
☂️ TypeScript style guide, formatter, and linter.
Stars: ✭ 3,714 (+1094.21%)
Mutual labels:  linter
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+1360.13%)
Mutual labels:  linter
Eclint
Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.
Stars: ✭ 288 (-7.4%)
Mutual labels:  linter

unparam

go get mvdan.cc/unparam

Reports unused function parameters and results in your code.

To minimise false positives, it ignores certain cases such as:

  • Exported functions (by default, see -exported)
  • Unnamed and underscore parameters
  • Funcs that may satisfy an interface
  • Funcs that may satisfy a function signature
  • Funcs that are stubs (empty, only error, immediately return, etc)
  • Funcs that have multiple implementations via build tags

It also reports results that always return the same value, parameters that always receive the same value, and results that are never used. In the last two cases, a minimum number of calls is required to ensure that the warnings are useful.

False positives can still occur by design. The aim of the tool is to be as precise as possible - if you find any mistakes, file a bug.

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].