departments/rspec.yml in sevenwire-rubocop-1.1.2 vs departments/rspec.yml in sevenwire-rubocop-1.1.3
- old
+ new
@@ -1,5 +1,15 @@
require:
- rubocop-rspec
+# Required for VSCode to auto-correct rspec files. It writes the file to /tmp/**/tmp.rb
+# rubocop-rspec ignores that file because it doesn't match the file pattern by default.
+# FIXME: This could be dangerous because we'll run this on all Ruby files, not just rspec.
+AllCops:
+ RSpec:
+ Patterns:
+ - _spec.rb
+ - "(?:^|/)spec/"
+ - tmp.rb
+
RSpec/NestedGroups:
Max: 4