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

Index file importing multiple files messes up results #7

Open
ShootingStar91 opened this issue Jun 4, 2024 · 0 comments
Open

Index file importing multiple files messes up results #7

ShootingStar91 opened this issue Jun 4, 2024 · 0 comments

Comments

@ShootingStar91
Copy link

I'm using sequelize and I have a models/index.js which does this:

import { Car } from './car.js'
import { Bike } from './bike.js'

// ... defining sequelize relations here ..

// then:

module.exports = {
  Car, Bike
}

Then if another file vehicularMadness.js imports Car via this index file, also bike.js gets calculated as imported by vehicularMadness.js. And in fact all files that module/index.js imports get assigned the same usage.

Is there a way to configure deprank to not work like this or is there another tool that does not do this?

@ShootingStar91 ShootingStar91 changed the title Index file which imports multiple files messes up using deprank Index file importing multiple files messes up using deprank Jun 4, 2024
@ShootingStar91 ShootingStar91 changed the title Index file importing multiple files messes up using deprank Index file importing multiple files messes up results Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant