https://bugzilla.wikimedia.org/show_bug.cgi?id=57610
Web browser: ---
Bug ID: 57610
Summary: Use snake_case for methods and variables
Product: Wikimedia
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Quality Assurance
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Methods in Ruby code should use snake_case for methods and variables.
That follows advice from Github Ruby Styleguide[1], Naming section: "Use
snake_case for methods and variables."
The most occurrences of CamelCase are in Wikibase repository, example from
alias_module.rb[2]:
div(:aliasesDiv, class: "wb-aliases")
it should be:
div(:aliases_div, class: "wb-aliases")
1. https://github.com/styleguide/ruby
2:
https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/selenium_cuc/features/support/modules/alias_module.rb#L12
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l