Questions tagged [lint]
Please tag questions about static analysis tools "static-analysis" unless they're actually about the Lint utility. One of the first static analyzers was the Lint utility which appeared in 1979 as part of the Unix 7 distribution kit. Lint was originally used to analyze C source code. This command was so popular that the word "lint" has become the generic term for static analysis tools.
lint
1,857
questions
0
votes
0
answers
23
views
How can I share Jupyter kernel along with Linter and Intellisense across multiple notebooks in VSCode
Intro
Sharing the same Jupyter kernel across notebooks is possible and useful in VSCode. When your notebooks grow very long, it becomes impossible to do analysis on the go - It is difficult to find ...
0
votes
1
answer
17
views
PyLint doesn't recognize Poetry environment: E0401: import-error
My VSCode doesn't recognize modules and libraries imported in Python scripts, and shouts Unable to import ### PylintE0401:import-error at every single module import statement.
The Python scripts run ...
-3
votes
2
answers
63
views
Why 'eslint' + 'typescript-eslint' used for TypeScript linting when 'tsc' appears to work better? [duplicate]
Goal: To create a strict TypeScript linter script
eslint checks for poor JavaScript code patterns.
The docs suggests initialising eslint with npm init @eslint/config@latest
This also installs ...
2
votes
0
answers
17
views
Why Lint recommends using standard Guava for an Android project
In my build.gradle I have defined Guava dependency as follows:
implementation("com.google.guava:guava:33.2.1-android")
This is flagged by Lint:
A newer version of com.google.guava:guava than ...
0
votes
1
answer
26
views
Gradle layout.buildDirectory Read-only file system issue
So I'm following Gradle's recommendation to remove the deprecated $project.buildDir property for the lint settings.
It was: htmlOutput file("$project.buildDir/outputs/lint/lint.html")
It ...
0
votes
1
answer
38
views
NextJS build error with typescript index signature
When I do pnpm run build I got this error:
✓ Compiled successfullyLinting and checking validity of types ..Failed to compile. .next/types/app/components/button/addNew/page.ts:
Type error: Type '...
0
votes
0
answers
53
views
Do i need the `languageOptions.globals` field in eslint flat config when using typescript-eslint?
Is it necessary to have languageOptions.globals in my eslint flat config when using the type-script-eslint plugin? Doesn't typescript eliminate the need for this field? Or should i keep this in my ...
0
votes
0
answers
22
views
Is @commitlint/cz-commitlint supposed to change the format of my commits?
I am trying to use commitizen with a custom commitlint configuration, and I discovered the @commitlint/cz-commitlint package.
After following the very easy setup steps, it seems like the CLI from ...
-1
votes
2
answers
106
views
Disable warnings for unused imports in VS Code for Java
It's so annoying to see the yellow warnings, how can I disable them?
I couldn't find the org.eclipse.jdt.core.prefs file as described here. (I'm not using a project)
Is there a particular global ...
0
votes
1
answer
254
views
Next Js eslint setup fix option not working
I'm developing a simple blog web app in Next Js with Typescript. I'm trying to learn and setup a lint check for my code. I went through multiple articles for the same and was able to follow them with ...
0
votes
1
answer
68
views
missed comma between flow collection entries in yaml file
trying to solve this issue.
I have a snippe of code:
{{- with .Values.taxnorway.service.ports }}
ports:
{{ toYaml . | nindent 2 }}
{{- end }}
Every time I try to do someting/fixing I get this ...
0
votes
0
answers
21
views
Python namespace with unused attribute detection
I want to refactor some constants so they share namespace in a Python project. Something like this:
class MyNamespace():
""" Does NOT need to be a class, this is just an example. &...
1
vote
0
answers
91
views
Linting Error in a Yaml File: expected the node content, but found '-' (syntax)
I have an existing set of yaml files for which I wrote a basic yaml linting configuration. But, I am always getting an error :
error syntax error: expected the node content, but found '-' (syntax)
...
0
votes
2
answers
44
views
How to postForEntity with response of type MultiValueMap?
This existing code compiles:
ResponseEntity<MultiValueMap> responseEntity = null;
...
responseEntity = restTemplate.postForEntity(serviceURL, entity,
MultiValueMap....
0
votes
0
answers
13
views
Tool/extension for scanning variable references across multiple js files in aspx project
I need to fix the Critical and Blocker issues in the Sonarqube for the aspx project. It contains several (around 500) js files.
Sonar is flagging issues in js files that variables should be ...