Skip to content

ci: Run performance and layout checks in RuboCop#2173

Draft
kaylareopelle wants to merge 3 commits intoopen-telemetry:mainfrom
kaylareopelle:rubocop-performance-layout
Draft

ci: Run performance and layout checks in RuboCop#2173
kaylareopelle wants to merge 3 commits intoopen-telemetry:mainfrom
kaylareopelle:rubocop-performance-layout

Conversation

@kaylareopelle
Copy link
Copy Markdown
Contributor

The refactor to run Rubocop using NPM in #1974 missed a few Departments: Layout and Performance. This PR makes sure those departments are run as part of the checks.

@github-actions github-actions bot added the ci label Apr 7, 2026
Copy link
Copy Markdown
Contributor

@thompson-tomo thompson-tomo left a comment

Choose a reason for hiding this comment

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

Sorry for missing performance when I added the commands.

Comment on lines +111 to +114
- name: "Check all ruby files for layout"
run: |
set -e # forces exit code to propagate
npm run check:format:ruby -- --format github
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"check:lint:markdown": "markdownlint-cli2 '**/*.md'",
"check:lint:renovate": "renovate-config-validator",
"check:lint:ruby": "rubocop --only Lint,Naming,Style",
"check:performance:ruby": "rubocop --only Performance",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should also have a write command.

And also add performance to both the check & write command.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What do you think about adding performance to one of the existing checks rather than making it its own check? We don't have anything other performance checking tools to group it with. Could it fit with check:source:ruby?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure that works for me.

@kaylareopelle
Copy link
Copy Markdown
Contributor Author

Sorry for missing performance when I added the commands.

No problem! Thanks for your help with this PR. It's helping me catch up on the CI changes that have happened while I've been away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants