Skip to content

Commit

Permalink
Fix a build error
Browse files Browse the repository at this point in the history
This commit fixes the following build error.

```console
% cd path/to/rubocop
% bundle exec rake
(snip)

  1) RuboCop Project Changelog future entries For
  /Users/koic/src/github.com/rubocop/rubocop/spec/../changelog/fix_comments_negated_if_else_condition_cop.md
  entry link to related issue has a valid URL
     Failure/Error: expect(issue[:url]).to match(pattern)

       expected "#9429" to
       match
       /^https:\/\/github\.com\/rubocop\/rubocop\/(?:issues|pull)\/9429$/
       Diff:
       @@ -1 +1 @@
       -/^https:\/\/github\.com\/rubocop\/rubocop\/(?:issues|pull)\/9429$/
       +"#9429"
     Shared Example Group: "has Changelog format" called from
       ./spec/project_spec.rb:261
     # ./spec/project_spec.rb:192:in `block (6 levels) in
       <top (required)>'
     # ./spec/project_spec.rb:188:in `each'
     # ./spec/project_spec.rb:188:in `block (5 levels) in
       <top (required)>'
     # tasks/spec_runner.rake:70:in `run_worker'
     # tasks/spec_runner.rake:30:in `block in run_specs'
     # tasks/spec_runner.rake:44:in `with_encoding'
     # tasks/spec_runner.rake:28:in `run_specs'
     # tasks/spec_runner.rake:116:in `block in <top (required)>'

1 deprecation logged to /tmp/test_queue_worker_27584_output
```
  • Loading branch information
koic committed Mar 7, 2021
1 parent 7addc3d commit cd1448c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changelog/fix_comments_negated_if_else_condition_cop.md
@@ -1 +1 @@
* [#9429](https://github.com/rubocop-hq/rubocop/issues/9429): Fix `Style/NegatedIfElseCondition` autocorrect to keep comments in correct branch. ([@tejasbubane][])
* [#9429](https://github.com/rubocop/rubocop/issues/9429): Fix `Style/NegatedIfElseCondition` autocorrect to keep comments in correct branch. ([@tejasbubane][])

0 comments on commit cd1448c

Please sign in to comment.