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
After upgrading to Rubocop 0.93.0 or a more recent version, symbolic links pointing to directories that are excluded in .rubocop.yml are no longer excluded.
The behavior change was introduced by this PR: #8815
I'm not sure whether you'd consider this a bug, but it's definitely a behavior change that caught us off guard while trying to upgrade Rubocop to a more recent version.
Expected behavior
With Rubocop 0.92.0 or older versions, symbolic links pointing to directories that are excluded in .rubocop.yml were themselves excluded.
E.g. with the following file tree:
$ ls -lR .
total 16
-rw-r--r-- 1 ob staff 109 Mar 23 22:34 .rubocop.yml
-rw-r--r-- 1 ob staff 172 Mar 23 22:29 Gemfile
-rw-r--r-- 1 ob staff 631 Mar 23 22:29 Gemfile.lock
drwxr-xr-x 3 ob staff 96 Mar 23 22:21 build
drwxr-xr-x 3 ob staff 96 Mar 23 22:26 foo
./build:
total 0
drwxr-xr-x 3 ob staff 96 Mar 23 22:24 protoc_out
./build/protoc_out:
total 8
-rw-r--r-- 1 ob staff 764 Mar 23 22:22 ping_pb.rb
./foo:
total 0
lrwxr-xr-x 1 ob staff 19 Mar 23 22:26 protoc_out -> ../build/protoc_out
After upgrading to Rubocop 0.93.0 or a more recent version, symbolic links pointing to directories that are excluded in
.rubocop.yml
are no longer excluded.The behavior change was introduced by this PR: #8815
I'm not sure whether you'd consider this a bug, but it's definitely a behavior change that caught us off guard while trying to upgrade Rubocop to a more recent version.
Expected behavior
With Rubocop 0.92.0 or older versions, symbolic links pointing to directories that are excluded in
.rubocop.yml
were themselves excluded.E.g. with the following file tree:
and a
.rubocop.yml
as follows:then the contents fo
foo/protoc_out
were excluded, because the link resolves tobuild/protoc_out
which is itself excluded:Actual behavior
With Rubocop 0.93.0 or more recent, symbolic links pointing to directories that are excluded in
.rubocop.yml
are no longer excluded:Steps to reproduce the problem
Set up a file structure as above, and run Rubocop 0.93.0 or more recent.
RuboCop version
The text was updated successfully, but these errors were encountered: