Skip to content
#

linter

Here are 1,466 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
nicothin
nicothin commented Jan 27, 2021

What is the problem you're trying to solve?

Prohibiting the use of a specific selector (btn) in any combination:

.page > .btn
.catalog > .btn

But not in combinations like

.osx > .btn
.macos > .btn

Inside the angular of the application, I am forced to use the global SCSS file with button styles, I want to prohibit the modification of button styles by context.
But

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
)
dec5e
dec5e commented Jan 28, 2021

Describe the bug

git diff-tree used by linter on push checks only files from the last commit and regardless of files status, so deleted or renamed files are also checked.

There are now 2 different git commands used for finding the list of broken files (find them here: https://github.com/github/super-linter/blob/v3.14.4/lib/functions/buildFileList.sh#L59-L105). git diff-tree is u

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