Skip to content

Commit

Permalink
Use UTC in Rubocop todo file generation
Browse files Browse the repository at this point in the history
Most of our team is distributed, so this is what the diff for our todo file
usually looks like:

```
- # on 2020-06-05 11:48:43 +1000 using RuboCop version 0.80.1.
+ # on 2020-06-12 12:23:47 -0300 using RuboCop version 0.80.1.
```
  • Loading branch information
mauro-oto authored and marcandre committed Jun 12, 2020
1 parent 37dc1a8 commit 8b3cd93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-05-23 16:26:03 +0200 using RuboCop version 0.84.0.
# on 2020-06-12 17:42:47 UTC using RuboCop version 0.85.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -13,7 +13,7 @@ InternalAffairs/NodeDestructuring:
# Offense count: 48
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 190
Max: 186

# Offense count: 198
# Configuration parameters: CountComments, ExcludedMethods.
Expand All @@ -33,13 +33,13 @@ RSpec/AnyInstance:
- 'spec/rubocop/cop/team_spec.rb'
- 'spec/rubocop/target_finder_spec.rb'

# Offense count: 972
# Offense count: 981
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false

# Offense count: 3766
# Offense count: 3810
# Configuration parameters: Max.
RSpec/ExampleLength:
Enabled: false
Expand All @@ -58,7 +58,7 @@ RSpec/ExpectOutput:
- 'spec/rubocop/result_cache_spec.rb'
- 'spec/rubocop/target_finder_spec.rb'

# Offense count: 430
# Offense count: 434
RSpec/MultipleExpectations:
Max: 25

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@

* [#8111](https://github.com/rubocop-hq/rubocop/pull/8111): Add auto-correct for `Style/StructInheritance`. ([@tejasbubane][])
* [#8113](https://github.com/rubocop-hq/rubocop/pull/8113): Let `expect_offense` templates add variable-length whitespace with `_{foo}`. ([@eugeneius][])
* [#8146](https://github.com/rubocop-hq/rubocop/pull/8146): Use UTC in Rubocop todo file generation. ([@mauro-oto][])

### Bug fixes

Expand Down Expand Up @@ -4590,3 +4591,4 @@
[@burnettk]: https://github.com/burnettk
[@andrykonchin]: https://github.com/andrykonchin
[@avrusanov]: https://github.com/avrusanov
[@mauro-oto]: https://github.com/mauro-oto
2 changes: 1 addition & 1 deletion lib/rubocop/formatter/disabled_config_formatter.rb
Expand Up @@ -74,7 +74,7 @@ def command
end

def timestamp
@options[:no_auto_gen_timestamp] ? '' : "on #{Time.now} "
@options[:no_auto_gen_timestamp] ? '' : "on #{Time.now.utc} "
end

def output_offenses
Expand Down

0 comments on commit 8b3cd93

Please sign in to comment.