Skip to content

Commit

Permalink
Skip rule Lint/MixedRegexpCaptureTypes
Browse files Browse the repository at this point in the history
  - This rule is rubocop/ruby-style-guide#793
  - Perhaps we can investigate what can be done with this regular
    expression, to not need those extra capture groups?
  • Loading branch information
olleolleolle committed Nov 21, 2020
1 parent db2310d commit 5c04502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/github_changelog_generator/reader.rb
Expand Up @@ -29,8 +29,8 @@ def initialize(options = {})
defaults = {
heading_level: "##",
heading_structures: [
/^## \[(?<version>.+?)\]\((?<url>.+?)\)( \((?<date>.+?)\))?$/,
/^## (?<version>.+?)( \((?<date>.+?)\))?$/
/^## \[(?<version>.+?)\]\((?<url>.+?)\)( \((?<date>.+?)\))?$/, # rubocop:disable Lint/MixedRegexpCaptureTypes
/^## (?<version>.+?)( \((?<date>.+?)\))?$/ # rubocop:disable Lint/MixedRegexpCaptureTypes
]
}

Expand Down

0 comments on commit 5c04502

Please sign in to comment.