Skip to content

Fix Naming/MethodParameterName offenses - #3975

Open
jcoyne wants to merge 1 commit into
mainfrom
fix-naming-method-parameter-name
Open

jcoyne wants to merge 1 commit into
mainfrom
fix-naming-method-parameter-name

Conversation

@jcoyne

@jcoyne jcoyne commented Nov 24, 2026

Copy link
Copy Markdown
Member

Removes Naming/MethodParameterName from .rubocop_todo.yml by giving one- and two-letter parameters descriptive names:

  • k → field in Blacklight::Document#has?, #has_highlight_field? and #highlight_field, and the same in Blacklight::Solr::Document
  • v → value in Blacklight::Rendering::LinkToFacet#link and #search_path
  • x → data in NestedOpenStructWithHashAccess#marshal_load
  • ex → facet_ex in SearchBuilderBehavior#with_ex_local_param

All of these are positional parameters, so callers are unaffected.

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