All Projects → nishanths → dedupimport

nishanths / dedupimport

Licence: BSD-3-Clause license
Deduplicate named/unnamed imports that have the same import path in Go files

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to dedupimport

Elm Analyse
A tool that allows you to analyse your Elm code, identify deficiencies and apply best practices.
Stars: ✭ 418 (+1990%)
Mutual labels:  linter, ast
unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 119 (+495%)
Mutual labels:  linter, ast
Bellybutton
Custom Python linting through AST expressions
Stars: ✭ 196 (+880%)
Mutual labels:  linter, ast
Solhint
Solhint is an open source project created by https://protofire.io. Its goal is to provide a linting utility for Solidity code.
Stars: ✭ 363 (+1715%)
Mutual labels:  linter, ast
Unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 96 (+380%)
Mutual labels:  linter, ast
Graphql Go Tools
Tools to write high performance GraphQL applications using Go/Golang.
Stars: ✭ 96 (+380%)
Mutual labels:  linter, ast
predeclared
Find definitions and declarations in Go source code that shadow predeclared identifiers
Stars: ✭ 26 (+30%)
Mutual labels:  linter, ast
eslint-config-kingstinct-react-native
Eslint configuration for React-native based on Airbnb with some great tweaks
Stars: ✭ 23 (+15%)
Mutual labels:  linter
arduino-lint
Tool to check for problems with Arduino projects
Stars: ✭ 63 (+215%)
Mutual labels:  linter
gradle2kts
Gradle Groovy to Gradle Kotlin conversion tool - discontinued spike
Stars: ✭ 34 (+70%)
Mutual labels:  ast
relint
General purpose RegEx based file linter.
Stars: ✭ 33 (+65%)
Mutual labels:  linter
redot
Graphviz dot file processor powered by plugins based on @unifiedjs
Stars: ✭ 60 (+200%)
Mutual labels:  ast
robotframework-robocop
Tool for static code analysis of Robot Framework language
Stars: ✭ 112 (+460%)
Mutual labels:  linter
atom-minimap-linter
Atom package to display linter markers on minimap
Stars: ✭ 26 (+30%)
Mutual labels:  linter
babel-codemod-example
An example of how to use babel as a codemod
Stars: ✭ 24 (+20%)
Mutual labels:  ast
arcanist-linters
A collection of custom Arcanist linters
Stars: ✭ 64 (+220%)
Mutual labels:  linter
Headache
Programming Language that compiles to 8 Bit Brainfuck
Stars: ✭ 59 (+195%)
Mutual labels:  ast
laravel-prose-linter
Syntax-aware proofreading for your Laravel application.
Stars: ✭ 91 (+355%)
Mutual labels:  linter
TypeInferencer
Algorithm W and Algorithm M in F#
Stars: ✭ 33 (+65%)
Mutual labels:  ast
eval-estree-expression
Safely evaluate JavaScript (estree) expressions, sync and async.
Stars: ✭ 22 (+10%)
Mutual labels:  ast

dedupimport

Build Status Godoc

Remove duplicate imports that have the same import path but different import names.

go get -u github.com/nishanths/dedupimport

See godoc for flags and usage.

Example

Given the file

package pkg

import (
	"code.org/frontend"
	fe "code.org/frontend"
)

var client frontend.Client
var server fe.Server

running dedupimport on it with default options

dedupimport file.go

will produce

package pkg

import (
	"code.org/frontend"
)

var client frontend.Client
var server frontend.Server
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].