-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.rubocop.yml
More file actions
92 lines (91 loc) · 2.13 KB
/
Copy path.rubocop.yml
File metadata and controls
92 lines (91 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
# SPDX-License-Identifier: MIT
---
AllCops:
Exclude:
- 'vendor/**/*'
DisplayCopNames: true
TargetRubyVersion: 4.0
SuggestExtensions: false
NewCops: enable
plugins:
- rubocop-rake
- rubocop-minitest
- rubocop-performance
- rubocop-elegant
Style/ItBlockParameter:
Enabled: false
Naming/FileName:
Regex: '^[a-z0-9\-._]*$'
Style/GlobalVars:
Enabled: false
Style/TopLevelMethodDefinition:
Enabled: false
Elegant/GoodMethodName:
Exclude:
- 'test/**/*'
AllowedNames:
- total_active_contributors
- total_commits
- total_contributors
- total_files
- total_issues
- total_releases
- total_repositories
- total_stars
- some_backlog_size
- some_build_success_rate
- some_issue_lifetime
- some_merged_pulls
- some_pull_hoc_size
- some_release_hoc_size
- some_release_interval
- some_review_time
- some_triage_time
- total_builds_ran
- total_commits_pushed
- total_issues_created
- total_releases_published
- total_reviews_submitted
- cover_qo
- fill_fact_by_hash
- issue_was_lost
- nick_of
- comments_info
- count_appreciated_comments
- fetch_workflows
- count_suggestions
- stub_event
- stub_workflow_runs
- insert_label_was_attached_fact
- rate_limit_up
- load_it
- stub_github
- stub_pull_was_merged_base
- stub_pull_was_merged_issue
- stub_pull_was_merged_success
- list_milestones
Metrics/MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Naming/MethodParameterName:
MinNameLength: 2
Elegant/ClassInModule:
Exclude:
- 'test/**/*'
# Tests favor named intermediate values for clarity; github-events keeps the
# forbidden-user lookup and query-builder results as named begin/rescue blocks,
# which read clearer than inlined expressions.
Elegant/NoRedundantVariable:
Exclude:
- 'test/**/*'
- 'judges/github-events/github-events.rb'