From 3deb35067759577bc921f4ecc94785452d6d4b5e Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Wed, 24 Aug 2022 08:33:19 +0900 Subject: [PATCH] Fix incorrect documentation URLs when using `rubocop --show-docs-url` --- changelog/fix_incorrect_documentation_urls.md | 1 + config/default.yml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 changelog/fix_incorrect_documentation_urls.md diff --git a/changelog/fix_incorrect_documentation_urls.md b/changelog/fix_incorrect_documentation_urls.md new file mode 100644 index 0000000000..f4b56fc579 --- /dev/null +++ b/changelog/fix_incorrect_documentation_urls.md @@ -0,0 +1 @@ +* [#299](https://github.com/rubocop/rubocop-performance/pull/299): Fix incorrect documentation URLs when using `rubocop --show-docs-url`. ([@r7kamura][]) diff --git a/config/default.yml b/config/default.yml index 0b5f4c5a5d..ee6aaad3d8 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1,5 +1,9 @@ # This is the default configuration file. +Performance: + Enabled: true + DocumentationBaseURL: https://docs.rubocop.org/rubocop-performance + Performance/AncestorsInclude: Description: 'Use `A <= B` instead of `A.ancestors.include?(B)`.' Reference: 'https://github.com/JuanitoFatas/fast-ruby#ancestorsinclude-vs--code'