Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Lint rule: check node paths #246

Open
Shinigami92 opened this issue Nov 4, 2023 · 1 comment
Open

New Lint rule: check node paths #246

Shinigami92 opened this issue Nov 4, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Shinigami92
Copy link
Contributor

I'm not sure if there is a CLI tool yet for that, but I would like to check that my project does not miss any path or has an incorrect path in use.

So I would like to prevent:

  1. having a node path like @onready var timer: Timer = $Timer, but then $Timer does not exists
    this would need to check the .tscn file 🤔
  2. even further, check if the file really exists in the system
    so when I have a res://assets/my_asset.png, but there is not my_asset.png, show an error

I accidentally missed to check in a file e.g. here:

and then fixed it with an additional commit:

@Scony Scony added the enhancement New feature or request label Nov 5, 2023
@Scony Scony added this to the 4.x milestone Nov 5, 2023
@Scony
Copy link
Owner

Scony commented Dec 6, 2023

That would require some high-level linter that would take the entire project as input.
I've been thinking about it already. Anyway, that's the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants