Skip to content

Commit

Permalink
Fix link to documentation about configuration in .rubocop.yml
Browse files Browse the repository at this point in the history
The link in the generated .rubocop.yml is outdated.

- I updated it.
- I updated the spec that controls the content of .rubocop.yml.
- I also updated the link to the same page where it appears in the docs.
  • Loading branch information
davidstosik authored and bbatsov committed Jun 21, 2020
1 parent e013060 commit 555e301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/usage/basic_usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ $ rubocop -h
| Inspect files in order of modification time and stops after first file with offenses.

| `--fail-level`
| Minimum link:configuration.md#severity[severity] for exit with error code. Full severity name or upper case initial can be given. Normally, auto-corrected offenses are ignored. Use `A` or `autocorrect` if you'd like them to trigger failure.
| Minimum xref:configuration.adoc#severity[severity] for exit with error code. Full severity name or upper case initial can be given. Normally, auto-corrected offenses are ignored. Use `A` or `autocorrect` if you'd like them to trigger failure.

| `--force-exclusion`
| Force excluding files specified in the configuration `Exclude` even if they are explicitly passed as arguments.
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cli/command/init_dotfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def run
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
# See https://docs.rubocop.org/rubocop/configuration
DESC

File.open(DOTFILE, 'w') do |f|
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def and_with_args
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
# See https://docs.rubocop.org/rubocop/configuration
YAML
end
end
Expand Down

0 comments on commit 555e301

Please sign in to comment.