Skip to content

Commit

Permalink
Tweak the doc for Lint/RedundantDirGlob cop
Browse files Browse the repository at this point in the history
Indentation is required to generate the `Safety` section.
https://docs.rubocop.org/rubocop/1.26/cops_lint.html#lintredundantdirglobsort
  • Loading branch information
koic committed Mar 14, 2022
1 parent f9ef49f commit 577d2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rubocop/cop/lint/redundant_dir_glob_sort.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module Lint
# This cop checks for redundant `sort` method to `Dir.glob` and `Dir[]`.
#
# @safety
# This cop is unsafe, in case of having a file and a directory with
# identical names, since directory will be loaded before the file, which
# will break `exe/files.rb` that rely on `exe.rb` file.
# This cop is unsafe, in case of having a file and a directory with
# identical names, since directory will be loaded before the file, which
# will break `exe/files.rb` that rely on `exe.rb` file.
#
# @example
#
Expand Down

0 comments on commit 577d2f6

Please sign in to comment.