question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linter doesn't work on a multi object file

See original GitHub issue

I was working with my YAML object files and previously I have every single object in a separated file and I recently noticed that for a “Deployment” object file I have the following linting warning:

One or more containers do not have resource limits - this could starve other processes

Before fixing that issue, I decided to refactor my object definition a bit and define more than one object in a single file if they are related. So now I have the same Deployment as before along with a Volume Claim and a Service, everything in the same file.

But then I noted that the linting warning doesn’t show up for the Deployment, but it does show up if I delete the Service and Volume Claim from the file, leaving the Deployment alone.

So I suppose the linting code is not taking into account the possibility of having many objects definition per file.

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

18reactions
ahokacommented, Jul 23, 2020

@mukesh-p are you referring to the One or more containers do not have resource limits - this could starve other processes message? Do you want to disable all linting warnings?

The issue here is different so maybe we can open a new issue. The problem is that this linting warning (and any other i guess) disappear when having multiple objects in the same file.

That would be great if there was a way to disable this warning. I don’t want to enable cpu limits due to their non-intuitive behavior and having my half yaml file underlined in yellow degrades usability.

3reactions
msolano00commented, May 10, 2020

I still see this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linter doesn't work on a multi object file · Issue #359 - GitHub
The problem is that this linting warning (and any other i guess) disappear when having multiple objects in the same file.
Read more >
How do I fix the multiple errors that I'm facing on Atom with the ...
[Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective' at Object.
Read more >
Linting Python in Visual Studio Code
To perform linting, open the Command Palette (Ctrl+Shift+P), filter on "linting", and select Python: Run Linting. Linting will run automatically when you save...
Read more >
Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
How To Lint and Format Code with ESLint in Visual Studio Code
You will also configure ESLint to automatically fix syntax errors when you save your files. Prerequisites. To complete this tutorial, you will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found