mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-28 10:10:35 +00:00
d8b773f9a4
Introduce the rake test entry point which is invoked by CI. Add a basic rubocop configuration based on https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby Fix up a few ruby issues. Bug: T120715 Change-Id: I3df0a3b13155259ec6cb5010e7aaa3bf9aa7b230
24 lines
406 B
YAML
24 lines
406 B
YAML
AllCops:
|
|
# Only enforce rules that have an entry in the style guide
|
|
StyleGuideCopsOnly: true
|
|
|
|
Metrics/LineLength:
|
|
Max: 100
|
|
|
|
Metrics/MethodLength:
|
|
Enabled: false
|
|
|
|
Style/Alias:
|
|
Enabled: false
|
|
|
|
Style/SignalException:
|
|
Enabled: false
|
|
|
|
# Pick one and stay consistent
|
|
Style/StringLiterals:
|
|
EnforcedStyle: single_quotes
|
|
# EnforcedStyle: double_quotes
|
|
|
|
Style/TrivialAccessors:
|
|
ExactNameMatch: true
|