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

lib/data_store.rb: resolve rubocop Naming/AccessorMethodName issue #403

Open
rli9 opened this issue Feb 5, 2025 · 0 comments
Open

lib/data_store.rb: resolve rubocop Naming/AccessorMethodName issue #403

rli9 opened this issue Feb 5, 2025 · 0 comments

Comments

@rli9
Copy link

rli9 commented Feb 5, 2025

Reproduce

lkp-tests$ rubocop lib/data_store.rb

lib/data_store.rb:738:9: C: Naming/AccessorMethodName: Do not prefix writer method names with set_.
    def set_date(date)
        ^^^^^^^^

1 file inspected, 1 offense detected

Reference
https://github.com/intel/lkp-tests/wiki/Coding-Standard#rubocop

Note
Besides the fix of rubocop issue, it is required to update the caller side to use new API

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

No branches or pull requests

1 participant