diff options
Diffstat (limited to 'rubocop/cop/project_path_helper.rb')
-rw-r--r-- | rubocop/cop/project_path_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/project_path_helper.rb b/rubocop/cop/project_path_helper.rb index bc2454e5b1f..ec3f847faf9 100644 --- a/rubocop/cop/project_path_helper.rb +++ b/rubocop/cop/project_path_helper.rb @@ -5,7 +5,7 @@ module RuboCop class ProjectPathHelper < RuboCop::Cop::Cop MSG = 'Use short project path helpers without explicitly passing the namespace: ' \ '`foo_project_bar_path(project, bar)` instead of ' \ - '`foo_namespace_project_bar_path(project.namespace, project, bar)`.'.freeze + '`foo_namespace_project_bar_path(project.namespace, project, bar)`.' METHOD_NAME_PATTERN = /\A([a-z_]+_)?namespace_project(?:_[a-z_]+)?_(?:url|path)\z/.freeze |