Skip to content
#

linter

Here are 1,454 public repositories matching this topic...

tools
sebmck
sebmck commented Aug 8, 2020

I've recently switched to Webstorm and was impressed with a lot of the rules they offer with code inspection. I haven't seen some of these in ESLint.

  • Unnecessary continue as the last statement in a loop
  • Simplify statement or boolean expression
  • Expression statement that is not assignment or call
  • Single character regex alternations can be a charset
  • Unused shadowed bindings
stylelint
golangci-lint
howardjohn
howardjohn commented Nov 3, 2020

Config:

linters:
  disable-all: true
  enable:
  - goimports
  - gci
  fast: false

linters-settings:
  goimports:
    local-prefixes: istio.io/

Input:

package main

import (
	"fmt"
	"istio.io/istio/pkg/test/framework/resource"
	"os"

	"istio.io/istio/pkg/test/framework/resource"
)

var (
	_ = resource.Cluster
	_ = fmt.Println
	_ = os.Stdout
)

Improve this page

Add a description, image, and links to the linter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the linter topic, visit your repo's landing page and select "manage topics."

Learn more