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

Atom eslint and jsx/react setup

I'm having trouble getting my eslint atom package to work with jsx. My eslint package references a global .eslintrc in my home directory. Following the eslint docs I have my .eslintrc file set up as follows: { "parser": "babel-eslint", …
0
votes
1 answer

Atom: Unable to install linter-ui-default package

I wanted to use linter with the latest atom editor, so I tried the below command on my newly installed editor: C:\Users\rmishra>apm install linter-ui-default Installing linter-ui-default to C:\Users\rmishra\.atom\packages failed And here is the…
Rajkaran Mishra
  • 4,532
  • 2
  • 36
  • 61
0
votes
1 answer

Atom Editor - linter ignore for web2py identifiers

I recently started using Atom IDE on Linux and I really like it. But I have come to small annoyance while developing a web2py application. I have installed linter and have tried several python extensions for linter (linter-python, pylint, etc.) but…
0
votes
1 answer

rubocop_todo / how to re-include specific files for rules

Having the following part in rubocop_todo.yml Metrics/AbcSize: Max: 749 What i'd like to do, would be to add specific files that would have to respect the default (in other words : 'every files can reach mega-high Metrics/AbcSize, but the ones…
Ben
  • 5,030
  • 6
  • 53
  • 94
0
votes
0 answers

megacheck complains about a package exist in both vendors?

git.domain.com/a/b/main.go: import ( "github.com/spf13/cobra" "git.domain.com/x/y/tlsgenerate" ) func main() { rootCmd.AddCommand(tlsgenerate.CobraCommand) } git.domain.com/x/y/tlsgenerate/cmd.go: package tlsgenerate import ( …
quanta
  • 3,960
  • 4
  • 40
  • 75
0
votes
1 answer

linting and intellisense on Visual Studio Code

I installed ms-python.python. Normally I use Atom and I switch to VS Code for trying. I have 2 questions : I set linter to flake8 : Is it possible to verify in real time like Atom the python syntax or only possible when I save the file ? Also, Atom…
0
votes
1 answer

Need help to complete installation of linter-stylelint for Atom

I am really sorry for this newbie question but I can't see how solve that... I installed linter-stylelint and tried to configure it like it's said there: https://atom.io/packages/linter-stylelint So: - I placed a stylelint.config.js file in my…
Monsieur Paul
  • 91
  • 1
  • 4
0
votes
1 answer

Atom PHP-Linter Setup: System can't find path

I just installed the php-linter for Atom. I'm pretty sure that I configured the path to the php.exe right. But somehow there is still a problem with php-linter. I copied the error code from the console. The German is in English: "The system can't…
Tim Sigl
  • 45
  • 1
  • 8
0
votes
1 answer

SublimeLinter for JavaScript - enable unused variables warnings

I installed SublimeLinter for linting JavaScript in Sublime. It works, but i want to change it's settings so it'll always detect unused variables. I managed to do it by adding // jshint unused:true to top of the .js file itself, but i want to make…
0
votes
1 answer

How to fix a block statement from a eslint arrow body error?

I have the following: const MyPage = (props) => { return ( ... I need to pass props to MyLayout, problem is eslint doesn't like this and is rejecting the code w: unexpected block statement surrounding arrow…
AnnaSm
  • 2,190
  • 6
  • 22
  • 32
0
votes
0 answers

JSHint - ES6 configuration is not working in global

Almost seven hours in a row, I tried everything, but it still does not want to work in a global mode with syntax es6 ~_~
Yu Da Chi
  • 99
  • 3
  • 13
0
votes
1 answer

Disable compiling including lint or linter

Im having issues building my website (built from vue-cli scaffolding) which is meant to also be homework for students. Linter rules such as tabulation and extra spaces are causing the app to display them as a fatal error. Code and syntax violations…
tatsu
  • 2,316
  • 7
  • 43
  • 87
0
votes
0 answers

AtomLinter - Create new linter for GAMS language

I am interested in working (playing around) on a GAMS linter provider for AtomLinter. However, I could not figure out an entry point for the project, as most existing linter packages seem to link the Atom linter package with existing linters.…
Christoph Pahmeyer
  • 513
  • 1
  • 5
  • 17
0
votes
0 answers

2 eslint rule in a js file then which will be applied in ST3?

I was checking for eslint rules and try adding custom eslint rule within a particular js file in sublime-text3 added 2 rule for same property as below /*eslint no-console: "error"*/ /*eslint no-console: ["error", { allow: ["warn", "error"] }]…
xkeshav
  • 53,360
  • 44
  • 177
  • 245
0
votes
0 answers

Atom Editor: Failed to spawn command ruby with .rbenv path

I've installed Atom 1.18.0 x64 on my Windows 10. Then added linter-ruby package and edited this in my config.cson as suggested here: "linter-ruby": ignoredExtensions: "erb, md" rubyExecutablePath: "/home/myusername/.rbenv/shims/ruby" where the…
matiss
  • 747
  • 15
  • 36