You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
changed the title
Index file importing multiple files messes up using deprank
Index file importing multiple files messes up results
Jun 4, 2024
I'm using sequelize and I have a
models/index.js
which does this:Then if another file
vehicularMadness.js
imports Car via this index file, also bike.js gets calculated as imported byvehicularMadness.js
. And in fact all files thatmodule/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?
The text was updated successfully, but these errors were encountered: