Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Print source filename #20

Closed
dkniffin opened this issue Aug 22, 2016 · 1 comment
Closed

Print source filename #20

dkniffin opened this issue Aug 22, 2016 · 1 comment

Comments

@dkniffin
Copy link
Contributor

It'd be great if this gem could also print the filename the error was found in, specifically for when we run it on the whole app. It kinda works to know where it is in the application.js, but with a large project, it's hard to tell what source file that maps to.

I started looking into this, and it looks like right now there's no concept of where each line of application.js came from. We could loop over the files from sprockets, using Rails.application.assets.each_file, but I think we'd run into linting issues where variables are defined in different files. I may dig into this some more and see if there's a good solution, but I'd also love to hear some feedback on how feasible this sounds.

@dkniffin dkniffin mentioned this issue Aug 23, 2016
@dkniffin
Copy link
Contributor Author

@jonkessler This is resolved now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants