Questions tagged [linter]

NOTE: It is recommend to use the tag static-analysis instead. "Linter" is slang for static analyzer, a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs at compile-time. The slang "linter" originates from the specific product PC Lint.

"Linter" is slang for static analyzer, a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs at compile-time. Whereas a dynamic analyzer is a tool that performs similar analysis in run-time.

The slang "linter" originates from the specific product PC Lint, though there are many other such tools for various programming languages and coding standards.

The first linter was written by Stephen C. Johnson in 1978 while working in the Unix operating system at Bell Labs. After that, many other linters have appeared for different purposes and languages, not only C.


Tag usage

Since "linter is slang and not a formal term, it is recommend to use the tag instead. Always use that tag in combination with tags for the specific language, standard and tool used.

Tag usage example: .

Also include versions of the programming language, coding standard and tool where applicable.

326 questions
0
votes
1 answer

Modify Parse Tree to evaluate inheritance in a templating language

I'm building a linter program for a templating (like jinja, Twig) language that has a structure called "block". I'm sure many of you are familiar with the concept of a block in templating languages. Now, a template that contains these blocks can be…
leonidas
  • 13
  • 2
0
votes
1 answer

Disable warnings (ids selector) in linter-csslint on Atom?

How to disable warnings in linter-csslint on Atom like iDs selector warning
Daniel
  • 103
  • 3
0
votes
1 answer

Sass linter with BEM - Class should be written in lowercase with hyphens

The error I am getting is Class should be written in lowercase with hyphens .video_wrapper { //styles &__controls { //more styles Should I and can I suppress this error?
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
0
votes
1 answer

Disable stylelint warnings in certain cases

I'm trying to use autoprefixer in a project. And I'm setting indentation to 2 spaces and max line lenght to 80 characters. The thing is that these two settings seem to conflict with one another in several cases. Let's say i have: @mixin…
Rigil Kent
  • 75
  • 10
0
votes
1 answer

Where to find rules for jshint in Atom text editor for angularJS (1.xx) development?

I'm new to LINTER plugins on Atom text editor. I used LINTER(a plugin for Atom) and ESLINT(a plugin for Atom) to develop react native apps few month ago. So, I used some rules to configure Atom called 'rallycoding' using npm as follows. npm install…
Lakshitha Kanchana
  • 844
  • 2
  • 12
  • 32
0
votes
1 answer

Linter not working for Java in Atom

I have the linter and linter-javac packages installed in Atom, however, none of my errors for .java files are ever linted. I have tested this by deliberately making mistakes like : int test = "test"; but the status on the bottom left corner…
Markeazy
  • 76
  • 10
0
votes
0 answers

A elegant way to call functions from HTML?

I have something like this: function removeProduct(dataProduct) { console.log(dataProduct) }
0
votes
1 answer

How to find where a linter is installed in order to work for SublimeLinter in Sublime 3?

So, I have installed cpplint in Sublime 3 via the Package Control, in a Windows 8.1 64bits machine. However, it seems that cpplint cannot be found, as discussed in this troubleshooting…
RAs
  • 377
  • 3
  • 13
0
votes
3 answers

How do I find all possible configs in coala?

In coala, the code analysis software (https://github.com/coala/coala), what's the easiest way to find a list of all the bears/plugins and the list of the configurations ? Also, how do I get a list of all possible configurations available by all…
AbdealiLoKo
  • 3,261
  • 2
  • 20
  • 36
0
votes
1 answer

Flake8-linter Atom include excluded files

I somehow excluded all my "admin.py" files from linter-flake8 2.0.2 for atom. So every file is perfectly monitored by the linter-flake8 except my admin.py files in different folders. I don't know how that happened. It's not in the .flake8 -…
ChrisRob
  • 1,515
  • 2
  • 18
  • 30
0
votes
1 answer

Expected an identifier instead saw '{'

I am using Atom Editor with the linter and linter-jslint packages I have my first line of code look like this : import {WakandaClient} from "wakanda-client"; And I get this error : Expected an identifier instead saw '{' Would appreciate some…
Ganbin
  • 2,004
  • 2
  • 12
  • 19
0
votes
0 answers

linter-jslint for atom - how do I configure it?

I have recently started using the linter-jslint plugin for atom and there are a few issues that I would like to override. Things like setting it up so that it doesn't say "unexpected 'this'" and the like. However try as I may, I cannot find any…
pragmatic84
  • 67
  • 10
-1
votes
1 answer

Disable linting for a specific file in VsCode

I have a file, "GeneratedCode" that at times is .ts .py or .c I want to programmatically disable linting in VsCode whenever I view it.
D.S.
  • 29
  • 6
-1
votes
1 answer

A persistent warning when using //nolint:godox in Golang

WARN [runner/nolint] Found unknown linters in //nolint directives: godox todo: fix once roles are in place This warning keeps coming up when I am building my Golang project. What does this mean? What is the meaning of unknown linters here? I…
-1
votes
2 answers

Flake8 Errors not shown in VS Code

I have been using flake8 for linting but somehow it stopped showing me errors in the code in any of my workspaces (the squiggly underlines in the editor). flake8 is installed in my conda environment. Here is my settings.json: { …
mi-les
  • 9
  • 2
1 2 3
21
22