-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.rubocop.yml
More file actions
106 lines (85 loc) · 2.53 KB
/
.rubocop.yml
File metadata and controls
106 lines (85 loc) · 2.53 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
require:
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
Exclude:
- db/schema.rb
- bin/spring
- bin/setup
- bin/rails
- bin/rake
- vendor/**/* # Vendor gem dir in Travis CI
- bin/yarn
- lib/tasks/**/*
- db/migrate/20240513221504_add_service_name_to_active_storage_blobs.active_storage.rb
- db/migrate/20240513221505_create_active_storage_variant_records.active_storage.rb
- db/migrate/20240513221506_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
Metrics/BlockLength:
Exclude:
- spec/**/*
- config/**/*
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Metrics/ClassLength:
CountAsOne: ['array', 'heredoc', 'hash']
Lint/MissingSuper:
Exclude:
- app/components/**/*
Layout/LineLength:
Max: 220
# To make it possible to copy or click on URIs in the code, we allow lines
# contaning a URI to be longer than Max.
AllowURI: true
URISchemes:
- http
- https
Metrics/AbcSize:
# The ABC size is a calculated magnitude, so this number can be an Integer or
# a Float.
Max: 25
Metrics/MethodLength:
Max: 13
Exclude:
- db/migrate/*
- app/lib/sql.rb
Style/Documentation:
Enabled: false
Style/GuardClause:
Enabled: false
Rails:
Enabled: true
Rails/BulkChangeTable:
Enabled: false
Rails/ActionControllerFlashBeforeRender:
Enabled: false
Rails/ThreeStateBooleanColumn:
Exclude:
- db/migrate/20160901192307_add_health_to_students.rb
- db/migrate/20200619222042_create_tags.rb
Rails/SquishedSQLHeredocs:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/FormatStringToken:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/SuperArguments:
Enabled: false
# This cop fails in CI, but not locally. It is not supposed to do anything if schema.rb does not exist.
# Since we do not use schemra.rb but structure.sql this cop should not run
Rails/UniqueValidationWithoutIndex:
Enabled: false
Rails/ReversibleMigration:
Exclude:
- db/migrate/20160912004942_add_organization_to_students.rb
- db/migrate/20160916230442_add_subject_to_lesson.rb
- db/migrate/20161008013423_add_mlid_to_students.rb
- db/migrate/20161013042217_add_timestamps_to_grades.rb
- db/migrate/20161016225911_change_deleted_at_to_datetime_in_grades.rb
- db/migrate/20161016230051_change_deleted_at_to_datetime_in_subjects.rb
- db/migrate/20161016234425_add_timestamps_to_grade_descriptors.rb
- db/migrate/20161019013750_add_timestamps_to_assignments.rb