Skip to content

Fix simple lint errors#83

Merged
logicminds merged 2 commits into
mainfrom
ci_automations2
Feb 6, 2026
Merged

Fix simple lint errors#83
logicminds merged 2 commits into
mainfrom
ci_automations2

Conversation

@logicminds
Copy link
Copy Markdown
Owner

No description provided.

logicminds and others added 2 commits February 5, 2026 19:33
- Add continue-on-error to lint workflow so failures are warnings only
- Replace 'logger.method(...) if logger' with logger&.method(...) throughout

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings February 6, 2026 03:39
@logicminds logicminds merged commit 3918222 into main Feb 6, 2026
20 of 21 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses lint errors by standardizing logger calls to use Ruby's safe navigation operator (&.) and adds a GitHub Actions workflow for automated linting. The changes eliminate the verbose if logger conditional pattern in favor of the more modern and concise logger&. syntax throughout the codebase.

Changes:

  • Replaced logger.method(...) if logger with logger&.method(...) across all command classes
  • Added .github/workflows/lint.yml for automated RuboCop linting on PRs and pushes

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/rubyipmi/ipmitool/commands/chassis.rb Updated logger.debug call in bootdevice method to use safe navigation operator
lib/rubyipmi/ipmitool/commands/bmc.rb Updated logger.error call in reset method to use safe navigation operator
lib/rubyipmi/freeipmi/commands/chassis.rb Updated logger.error call in bootdevice method to use safe navigation operator
lib/rubyipmi/freeipmi/commands/bmcdevice.rb Updated logger.error call in reset method to use safe navigation operator
lib/rubyipmi/commands/basecommand.rb Updated multiple logger calls (debug and error) in runcmd, run, and find_fix methods to use safe navigation operator
lib/rubyipmi.rb Updated logger calls (error and debug) in connect, locate_command, and is_provider_installed? methods to use safe navigation operator
.github/workflows/lint.yml Added new workflow for running RuboCop linting on pull requests and pushes to main/master branches

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