Skip to content

Symlinks cause problems with exclude_paths #22

@jdelStrother

Description

@jdelStrother

Heya - I ran into a problem with exclude_paths and symlinks that took me a while to figure out. It's not clear to me if it's a bug in codeclimate-eslint or the codeclimate base (or even if it's a bug at all), but :

I have a directory structure like:

- vendor
  \-  javascripts
  \-  stylesheets

Both of javascripts & stylesheets are symlinked to another directory. My exclude_paths is set to vendor/**/*.

It appears that when figuring out which files to exclude, CC doesn't follow symlinks. However, when figuring out which files to analyse, CC-Eslint does follow symlinks, so it was analysing all my files under the symlinked directory.

It's fixable from the user's side by setting exclude_paths to :

- vendor/javascripts/**/*
- vendor/stylesheets/**/*

but I wonder if either the codeclimate repo should be updated to follow symlinks, or codeclimate-eslint should be updated to ignore them. WDYT?

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