Skip to content

Could not find custom rule directory (codelyzer) #67

Description

@efueger

Hi @tkqubo! Thanks for the request to bump the plugin -- we updated that on June 19.

I'm working with a user who's running into the "Could not find custom rule directory" when using Codelyzer. There have been a couple of other issues related to this:

Troubleshooting with an oss repo, I'm seeing:

/usr/src/app/node_modules/tslint/lib/configuration.js:57
        throw new error_1.FatalError("Failed to load " + configPath + ": " + error.message, error);
        ^

FatalError: Failed to load /tmp/codeclimate-tslint/322be5549801493ac98a0cf91b90a10adf8628140a83a36d8272795ac3f5be9d.json: Could not find custom rule directory: /code/codelyzer
    at new FatalError (/usr/src/app/node_modules/tslint/lib/error.js:27:28)
    at Object.findConfiguration (/usr/src/app/node_modules/tslint/lib/configuration.js:57:15)
    at new TsLinter (/usr/src/app/dist/tsLinter.js:35:57)
    at Object.<anonymous> (/usr/src/app/dist/index.js:15:18)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)

Do you have any ideas of how to troubleshoot this further? Typically, these dependencies work when packaged with the plugin, and codelyzer already is. 🤔 I'm not as familiar with Codelyzer and how it interacts with TSLint, so I'd love to see if you can help on that side.

Thanks 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions