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

add new shared rubocop config #163

Merged
merged 5 commits into from
Jan 11, 2022
Merged

add new shared rubocop config #163

merged 5 commits into from
Jan 11, 2022

Conversation

jreidinger
Copy link
Member

changes to previous config will be added as inline comment to this PR

- "**/*.spec"
TargetRubyVersion: 2.5 # 2.5 is the SLE15 version, so ensure that we use proper version
# By default enable all new cops
NewCops: enable
Copy link
Member Author

Choose a reason for hiding this comment

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

newly added. Basically default makes updating rubocop more iterative, but it does not fit to way how we update rubocop version.

Naming/VariableNumber:
# do not check numbers usage in symbols as it often come outside of ruby
# like `x86_64`
CheckSymbols: false
Copy link
Member Author

Choose a reason for hiding this comment

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

new item

# "#{path}element"
# so calls path.to_s and append element. Result is wrong path.
Style/StringConcatenation:
Enabled: false
Copy link
Member Author

Choose a reason for hiding this comment

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

new item, see explanation

@jreidinger jreidinger marked this pull request as draft January 6, 2022 18:53
# while there is agreement on reducing openstruct usage,
# it is still used too widely, so disable only per module when
# it is ready
Style/OpenStructUse:
Copy link
Member Author

Choose a reason for hiding this comment

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

new item


# Skip warning for constant definition in tests
# as in rspec we often locate testing data close to respective test
Lint/ConstantDefinitionInBlock:
Copy link
Member Author

Choose a reason for hiding this comment

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

new item

@jreidinger jreidinger marked this pull request as ready for review January 11, 2022 11:24
Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

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

LGTM

@jreidinger jreidinger merged commit cdf21f7 into master Jan 11, 2022
@jreidinger jreidinger deleted the new_rubocop branch January 11, 2022 15:13
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #30 successfully finished
✔️ Created OBS submit request #945612

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #19 successfully finished
✔️ Created IBS submit request #261866

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.

4 participants