Skip to content

fix: obey rubocop autofix#59

Closed
pauldambra wants to merge 3 commits intomasterfrom
fix/rubocop
Closed

fix: obey rubocop autofix#59
pauldambra wants to merge 3 commits intomasterfrom
fix/rubocop

Conversation

@pauldambra
Copy link
Copy Markdown
Member

@pauldambra pauldambra commented May 14, 2025

pulling things out of #58 so I can figure out what breaks the tests

this upgrades rubocop
runs autofix
and commits those changes
ignores existing unfixable errors

tests pass before and after

@pauldambra pauldambra requested a review from a team May 14, 2025 01:30
@rafaeelaudibert rafaeelaudibert self-requested a review May 14, 2025 02:41
Copy link
Copy Markdown
Member

@rafaeelaudibert rafaeelaudibert left a comment

Choose a reason for hiding this comment

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

The colon -> rocket change is unusual, we should update the .rubocop.yml file

Comment thread bin/posthog
api_key: options.api_key,
api_host: options.api_host,
on_error: Proc.new { |status, msg| print msg }
:api_key => options.api_key,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nah, hate this one, can we update the rule? Colon syntax is the modern one, rocket (=>) is antiquated

@batch = MessageBatch.new(batch_size)
@lock = Mutex.new
@transport = Transport.new api_host: options[:host], skip_ssl_verification: options[:skip_ssl_verification]
@transport = Transport.new :api_host => options[:host], :skip_ssl_verification => options[:skip_ssl_verification]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should tweak the rules to require parenthesis here

@pauldambra
Copy link
Copy Markdown
Member Author

superseded by #61

@pauldambra pauldambra closed this May 14, 2025
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