New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naming/FileName with ExpectMatchingDefinition and CheckDefinitionPathHierarchy does not enforce in custom folders #10220
Comments
I can reproduce it with:
RuboCop only detects a single offenses for code which is inside Edit: I've added the actual directory structure 🤦 |
Finally got that working by hacking the gem and using |
8 tasks
opened #10224 to fix |
grosser
added a commit
to grosser/rubocop
that referenced
this issue
Nov 15, 2021
…y roots configurable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
and
should be invalid because
something != Bar
Actual behavior
it is valid (nothing with
--debug
either)Steps to reproduce the problem
see expected
RuboCop version
Misc
I tried poking around in
lib/rubocop/cop/naming/file_name.rb
but none of the methods in there are getting called if the filename matches the expected constant (also tried with --cache=false)The text was updated successfully, but these errors were encountered: