The Wayback Machine - https://web.archive.org/web/20210817022643/https://github.com/topics/linter
Skip to content
#

linter

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

ngan
ngan commented Mar 10, 2021

Is your feature request related to a problem? Please describe.

I'm kicking the tires on changing our Gemfile to gems.rb. However, we have many internal gems within our monorepo and it just occurred to me that it would be cool to have a configurable cop that enforces one or the other.

Describe the solution you'd like

A cop that checks to make sure you have a Gemfile or a `gems.

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
)
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

reviewdog
vuryleo
vuryleo commented Nov 8, 2019

e.g.

# map.py
def func(a: int) -> float:
    return float(a)

map(func, ['str'])
$ pytype map.py
Computing dependencies
Analyzing 1 sources with 0 local dependencies
ninja: Entering directory `/[redacted]/.pytype'
ninja: no work to do.
Success: no errors found

while

$ mypy map.py
map.py:5: error: Argument 1 to "map" has incompatible type "Ca

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