Skip to content

Should __dirname be ignored in detect-non-literal-require? #49

@achimkoellner

Description

@achimkoellner

const utils = require(__dirname + '/utils');
results in security/detect-non-literal-require warning although using the node constant __dirname is a common pattern.

Shouldn't this be handeled by a global whitelist?

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