diff options
| author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-16 15:21:50 +0100 |
|---|---|---|
| committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-16 16:48:18 +0100 |
| commit | 9722158c15300dd4507cbb49b4230ab36b36ae65 (patch) | |
| tree | 234b63916e51894916d59aea2c13c967c65a9b27 /lib/api/snippets.rb | |
| parent | 454942da67911ed6968b799f23c6b9080da7b856 (diff) | |
| download | gitlab-ce-9722158c15300dd4507cbb49b4230ab36b36ae65.tar.gz | |
Fix detecting nested EE constants in RuboCop
The InjectEnterpriseEditionModule cop would not detect certain nested EE
constants such as `EE::Foo::Bar::Baz`. This could result in it not
enforcing `prepend` being placed on the last line. This commit fixes
this by just performing a string match on the line, instead of relying
on AST matching.
Diffstat (limited to 'lib/api/snippets.rb')
0 files changed, 0 insertions, 0 deletions
