Skip to content

Commit

Permalink
Merge pull request #10013 from pirj/fix-subdepartment-cop-docs-genera…
Browse files Browse the repository at this point in the history
…tion

Fix sub-department cop doc generation
  • Loading branch information
koic committed Aug 15, 2021
2 parents 94609c9 + 2c00072 commit 087bc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/documentation.rb
Expand Up @@ -8,7 +8,7 @@ module Documentation

# @api private
def department_to_basename(department)
"cops_#{department.downcase}"
"cops_#{department.to_s.downcase.tr('/', '_')}"
end

# @api private
Expand Down

0 comments on commit 087bc6c

Please sign in to comment.