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
The Lint/ScriptPermission Cop checks that files that have a shebang line as their first line also have execute permissions. However, just adding execute permissions to the file does NOT invalidate the rubocop cache, so the check continues to fail.
Expected behavior
Rubocop caches should be invalidated for any kind of file change, including permission changes.
Actual behavior
Permission changes do not invalidate the cache, meaning correcting Lint/ScriptPermission cop violations by adding execute permission to a file does not satisfy the cop unless the cache is manually invalidated or deleted.
Steps to reproduce the problem
create a script with a #! line and without execute permissions
run rubocop on it
fix permissions
run rubocop again boom
The Lint/ScriptPermission Cop checks that files that have a shebang line as their first line also have execute permissions. However, just adding execute permissions to the file does NOT invalidate the rubocop cache, so the check continues to fail.
Expected behavior
Rubocop caches should be invalidated for any kind of file change, including permission changes.
Actual behavior
Permission changes do not invalidate the cache, meaning correcting Lint/ScriptPermission cop violations by adding execute permission to a file does not satisfy the cop unless the cache is manually invalidated or deleted.
Steps to reproduce the problem
create a script with a #! line and without execute permissions
run rubocop on it
fix permissions
run rubocop again
boom
Rubocop Version:
The text was updated successfully, but these errors were encountered: