KEMBAR78
Prevent --display-time CLI option from invalidating cache by lovro-bikic · Pull Request #14479 · rubocop/rubocop · GitHub
Skip to content

Conversation

@lovro-bikic
Copy link
Contributor

Currently, running RuboCop with --display-time option will invalidate cache. This PR disables the option from affecting cache.

# @api private
class ResultCache
NON_CHANGING = %i[color format formatters out debug fail_level
NON_CHANGING = %i[color format formatters out debug display_time fail_level
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new specs because not all other non-changing options have been tested either, only a small set.

@koic
Copy link
Member

koic commented Aug 26, 2025

Can you add a changelog entry?

@lovro-bikic lovro-bikic force-pushed the display-time-shouldnt-impact-cache branch from 5535443 to 5849328 Compare August 26, 2025 16:42
@lovro-bikic lovro-bikic force-pushed the display-time-shouldnt-impact-cache branch from 5849328 to d500cc9 Compare August 26, 2025 16:43
@lovro-bikic
Copy link
Contributor Author

Can you add a changelog entry?

Done

@koic koic merged commit f5c5e75 into rubocop:master Aug 26, 2025
22 checks passed
@koic
Copy link
Member

koic commented Aug 26, 2025

Thanks!

@lovro-bikic lovro-bikic deleted the display-time-shouldnt-impact-cache branch August 26, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants