Skip to main content

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
0 votes
0 answers
17 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 ...
AOK's user avatar
  • 503
0 votes
0 answers
13 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 ...
Makoto Miyazaki's user avatar
-3 votes
2 answers
47 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 ...
menglinmaker's user avatar
2 votes
0 answers
14 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 ...
FilozoF's user avatar
  • 21
0 votes
1 answer
25 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 ...
Goltsev Eugene's user avatar
-1 votes
0 answers
27 views

looking for flake8 plugin to flag importing from local module instead of library [closed]

Say I have three files in a python package. __init__.py foo.py bar.py foo.py: from datetime import datetime in bar.py from foo import datetime I'm looking for a flake8 plugin (or any other linting ...
John's user avatar
  • 76
0 votes
1 answer
30 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 '...
Sebastian Coronel's user avatar
0 votes
0 answers
39 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 ...
gamertike's user avatar
0 votes
0 answers
18 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 ...
Thanh-Quy Nguyen's user avatar
-1 votes
2 answers
100 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 ...
Joy's user avatar
  • 81
0 votes
1 answer
228 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 ...
program_bumble_bee's user avatar
0 votes
1 answer
56 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 ...
Michał Picheta's user avatar
0 votes
0 answers
20 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. &...
Raúl Núñez de Arenas Coronado's user avatar
1 vote
0 answers
82 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) ...
Shiva Shukla's user avatar
0 votes
2 answers
42 views

How to postForEntity with response of type MultiValueMap?

This existing code compiles: ResponseEntity<MultiValueMap> responseEntity = null; ... responseEntity = restTemplate.postForEntity(serviceURL, entity, MultiValueMap....
Mikhail T.'s user avatar
  • 3,422

15 30 50 per page
1
2 3 4 5
125