Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run Katello rubocop without Foreman checkout #507

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 12, 2024

Foreman limits the rubocop version, so we we end up using the one
defined by Foreman, not by Katello, but Katello's rubocop_todo is not
compatible with that.

Foreman limits the rubocop version, so we we end up using the one
defined by Foreman, not by Katello, but Katello's rubocop_todo is not
compatible with that.
@evgeni
Copy link
Member Author

evgeni commented Nov 12, 2024

Katello updated to tfm-rubocop 0.1.x in Katello/katello#11009
But Foreman didn't (yet): theforeman/foreman#9926

Now running rubocop from the Foreman checkout for Katello fails with:

[2024-11-12T09:10:12.565Z] Error: unrecognized cop Lint/ConstantDefinitionInBlock found in /home/jenkins/workspace/katello-master-source-release/.rubocop_todo.yml, unrecognized cop Lint/UselessMethodDefinition found in /home/jenkins/workspace/katello-master-source-release/.rubocop_todo.yml, unrecognized cop Style/CombinableLoops found in /home/jenkins/workspace/katello-master-source-release/.rubocop_todo.yml

This change (untested) avoids that, by replicating the setup we have on GHA, where rubocop runs exclusively on the Project (= Katello) checkout, w/o Foreman.

@evgeni evgeni merged commit fc942c6 into master Nov 12, 2024
2 checks passed
@evgeni evgeni deleted the katello-no-foreman-rubocop branch November 12, 2024 11:16
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