-
Updated
Jul 27, 2021 - JavaScript
{{ message }}
ShellCheck, a static analysis tool for shell scripts
Find and fix problems in your JavaScript code.
Optional static typing for Python 3 and 2 (PEP 484)
Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
What is the problem you're trying to solve?
I want to ignore only specific pseudo classes. In Angular its very common to use :host pseudo class, so this always takes 1 place in calculating nested depth
What solution would you like to see?
rules: {
'max-nesting-depth': [
1,
{
ignoreAtRules: [':host'],
},
],
},A curated list of static analysis (SAST) tools for all programming languages, config files, build tools, and more.
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
)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
A framework for managing and maintaining multi-language pre-commit hooks.
Dockerfile linter, validate inline bash, written in Haskell
A Python utility / library to sort imports.
Staticcheck - The advanced Go linter
Catch insensitive, inconsiderate writing
A static code analysis tool for the Elixir language with a focus on code consistency and teaching.
Static code analysis for Kotlin
DEPRECATED: Use https://github.com/golangci/golangci-lint
Affects PMD Version: 6.30.0-SNAPSHOT
Rule: UselessOverridingMethod
Description:
Note: There seems to be a difference when having the class in the auxclasspath or not (typeresolution).
Code Sample demonstrating the issue:
Many repositories need to fix, so please help if you like.
If you could help, it would be helpful if you could comment before starting the work not to overlapping.
Run exit command after lint.
echo '::group:: Running golangci-lint with reviewdog 🐶 ...'
goIt's not just a linter that annoys you!
Describe the bug
In the docs found here:
https://bandit.readthedocs.io/en/latest/plugins/index.html#complete-test-plugin-listing
B109 and B111 show a description instead of a plugin name. This looks inconsistent since all the other plugin names are listed. I believe this is a result of a recent change to remove these deprecated plugins.
To Reproduce
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 foundwhile
$ mypy map.py
map.py:5: error: Argument 1 to "map" has incompatible type "CaA Golang tool that does static analysis, unit testing, code review and generate code quality report.
Add a description, image, and links to the linter topic page so that developers can more easily learn about it.
To associate your repository with the linter topic, visit your repo's landing page and select "manage topics."
Is your feature request related to a problem? Please describe.
I'm kicking the tires on changing our
Gemfiletogems.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
Gemfileor a `gems.