rubocop-dev_doc 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/config/default.yml +230 -61
  3. data/lib/dev_doc/test/best_practice_lints.rb +31 -0
  4. data/lib/dev_doc/test/lints/cron_schedule.rb +345 -0
  5. data/lib/dev_doc/test/lints/duplicate_snapshot.rb +197 -0
  6. data/lib/dev_doc/test/lints/no_file_excludes.rb +128 -0
  7. data/lib/rubocop/cop/dev_doc/auth/current_user_branching.rb +203 -0
  8. data/lib/rubocop/cop/dev_doc/auth/load_resource_current_user_guard.rb +230 -0
  9. data/lib/rubocop/cop/dev_doc/migration/avoid_conditional_schema_changes.rb +89 -0
  10. data/lib/rubocop/cop/dev_doc/migration/avoid_non_null.rb +121 -0
  11. data/lib/rubocop/cop/dev_doc/rails/application_record_transaction.rb +1 -1
  12. data/lib/rubocop/cop/dev_doc/rails/bang_save_in_transaction.rb +127 -0
  13. data/lib/rubocop/cop/dev_doc/rails/enum_column_not_null.rb +99 -0
  14. data/lib/rubocop/cop/dev_doc/rails/enum_must_be_symbolized.rb +2 -2
  15. data/lib/rubocop/cop/dev_doc/rails/no_block_predicate_on_relation.rb +236 -0
  16. data/lib/rubocop/cop/dev_doc/rails/strong_parameters_expect.rb +137 -0
  17. data/lib/rubocop/cop/dev_doc/route/no_custom_actions.rb +171 -0
  18. data/lib/rubocop/cop/dev_doc/route/resource_name_number.rb +77 -0
  19. data/lib/rubocop/cop/dev_doc/style/avoid_send.rb +31 -4
  20. data/lib/rubocop/cop/dev_doc/style/minimize_variable_scope.rb +158 -0
  21. data/lib/rubocop/cop/dev_doc/style/no_unscoped_method_definitions.rb +129 -0
  22. data/lib/rubocop/cop/dev_doc/style/repeated_bracket_read.rb +150 -0
  23. data/lib/rubocop/cop/dev_doc/style/repeated_safe_navigation_receiver.rb +118 -0
  24. data/lib/rubocop/cop/dev_doc/test/avoid_glib_travel_freeze.rb +53 -0
  25. data/lib/rubocop/cop/dev_doc/test/avoid_unit_test.rb +66 -0
  26. data/lib/rubocop/cop/dev_doc/test/response_assert_equal.rb +179 -0
  27. data/lib/rubocop/dev_doc/version.rb +1 -1
  28. metadata +58 -3
metadata CHANGED
@@ -1,14 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-dev_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dev-doc contributors
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
11
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fugit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '1.9'
12
41
  - !ruby/object:Gem::Dependency
13
42
  name: lint_roller
14
43
  requirement: !ruby/object:Gem::Requirement
@@ -51,16 +80,26 @@ dependencies:
51
80
  - - ">="
52
81
  - !ruby/object:Gem::Version
53
82
  version: '2.0'
83
+ description:
84
+ email:
54
85
  executables: []
55
86
  extensions: []
56
87
  extra_rdoc_files: []
57
88
  files:
58
89
  - config/default.yml
90
+ - lib/dev_doc/test/best_practice_lints.rb
91
+ - lib/dev_doc/test/lints/cron_schedule.rb
92
+ - lib/dev_doc/test/lints/duplicate_snapshot.rb
93
+ - lib/dev_doc/test/lints/no_file_excludes.rb
59
94
  - lib/rubocop-dev_doc.rb
95
+ - lib/rubocop/cop/dev_doc/auth/current_user_branching.rb
96
+ - lib/rubocop/cop/dev_doc/auth/load_resource_current_user_guard.rb
60
97
  - lib/rubocop/cop/dev_doc/migration/amount_column_in_cents.rb
61
98
  - lib/rubocop/cop/dev_doc/migration/avoid_bypassing_validation.rb
62
99
  - lib/rubocop/cop/dev_doc/migration/avoid_column_default.rb
100
+ - lib/rubocop/cop/dev_doc/migration/avoid_conditional_schema_changes.rb
63
101
  - lib/rubocop/cop/dev_doc/migration/avoid_json_column.rb
102
+ - lib/rubocop/cop/dev_doc/migration/avoid_non_null.rb
64
103
  - lib/rubocop/cop/dev_doc/migration/avoid_vague_column_names.rb
65
104
  - lib/rubocop/cop/dev_doc/migration/date_column_naming.rb
66
105
  - lib/rubocop/cop/dev_doc/migration/no_create_join_table.rb
@@ -69,21 +108,36 @@ files:
69
108
  - lib/rubocop/cop/dev_doc/migration/require_timestamps.rb
70
109
  - lib/rubocop/cop/dev_doc/rails/application_record_transaction.rb
71
110
  - lib/rubocop/cop/dev_doc/rails/avoid_rails_callbacks.rb
111
+ - lib/rubocop/cop/dev_doc/rails/bang_save_in_transaction.rb
112
+ - lib/rubocop/cop/dev_doc/rails/enum_column_not_null.rb
72
113
  - lib/rubocop/cop/dev_doc/rails/enum_must_be_symbolized.rb
114
+ - lib/rubocop/cop/dev_doc/rails/no_block_predicate_on_relation.rb
73
115
  - lib/rubocop/cop/dev_doc/rails/no_deliver_later_in_transaction.rb
74
116
  - lib/rubocop/cop/dev_doc/rails/no_perform_later_in_model.rb
117
+ - lib/rubocop/cop/dev_doc/rails/strong_parameters_expect.rb
118
+ - lib/rubocop/cop/dev_doc/route/no_custom_actions.rb
119
+ - lib/rubocop/cop/dev_doc/route/resource_name_number.rb
75
120
  - lib/rubocop/cop/dev_doc/route/resources_require_only.rb
76
121
  - lib/rubocop/cop/dev_doc/style/avoid_head_response.rb
77
122
  - lib/rubocop/cop/dev_doc/style/avoid_options_hash.rb
78
123
  - lib/rubocop/cop/dev_doc/style/avoid_send.rb
124
+ - lib/rubocop/cop/dev_doc/style/minimize_variable_scope.rb
125
+ - lib/rubocop/cop/dev_doc/style/no_unscoped_method_definitions.rb
126
+ - lib/rubocop/cop/dev_doc/style/repeated_bracket_read.rb
127
+ - lib/rubocop/cop/dev_doc/style/repeated_safe_navigation_receiver.rb
79
128
  - lib/rubocop/cop/dev_doc/style/string_symbol_comparison.rb
129
+ - lib/rubocop/cop/dev_doc/test/avoid_glib_travel_freeze.rb
130
+ - lib/rubocop/cop/dev_doc/test/avoid_unit_test.rb
131
+ - lib/rubocop/cop/dev_doc/test/response_assert_equal.rb
80
132
  - lib/rubocop/dev_doc.rb
81
133
  - lib/rubocop/dev_doc/plugin.rb
82
134
  - lib/rubocop/dev_doc/version.rb
135
+ homepage:
83
136
  licenses: []
84
137
  metadata:
85
138
  default_lint_roller_plugin: RuboCop::DevDoc::Plugin
86
139
  rubygems_mfa_required: 'true'
140
+ post_install_message:
87
141
  rdoc_options: []
88
142
  require_paths:
89
143
  - lib
@@ -98,7 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
152
  - !ruby/object:Gem::Version
99
153
  version: '0'
100
154
  requirements: []
101
- rubygems_version: 4.0.6
155
+ rubygems_version: 3.4.6
156
+ signing_key:
102
157
  specification_version: 4
103
158
  summary: RuboCop cops enforcing dev-doc best practices
104
159
  test_files: []