Skip to content

Index file importing multiple files messes up results #7

Description

@ShootingStar91

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions