generators_rails 0.0.1

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 (43) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +23 -0
  5. data/lib/generators/codestyle/config/USAGE +9 -0
  6. data/lib/generators/codestyle/config/config_generator.rb +28 -0
  7. data/lib/generators/codestyle/config/templates/rubocop.yml +7 -0
  8. data/lib/generators/codestyle/config/templates/rubocop_config/default.yml +1613 -0
  9. data/lib/generators/codestyle/config/templates/rubocop_config/disabled.yml +118 -0
  10. data/lib/generators/codestyle/config/templates/rubocop_config/enabled.yml +1863 -0
  11. data/lib/generators/codestyle/config/templates/rubocop_todo.yml +0 -0
  12. data/lib/generators/concern/concern.rb +19 -0
  13. data/lib/generators/concern/controller/USAGE +8 -0
  14. data/lib/generators/concern/controller/controller_generator.rb +6 -0
  15. data/lib/generators/concern/model/USAGE +8 -0
  16. data/lib/generators/concern/model/model_generator.rb +6 -0
  17. data/lib/generators/concern/templates/concern.rb +10 -0
  18. data/lib/generators/direnv/config/USAGE +8 -0
  19. data/lib/generators/direnv/config/config_generator.rb +11 -0
  20. data/lib/generators/docker/config/USAGE +15 -0
  21. data/lib/generators/docker/config/config_generator.rb +135 -0
  22. data/lib/generators/docker/config/templates/Dockerfile +9 -0
  23. data/lib/generators/docker/config/templates/database.mysql.yml +31 -0
  24. data/lib/generators/docker/config/templates/database.postgres.yml +86 -0
  25. data/lib/generators/docker/config/templates/docker-compose.debug.yml +18 -0
  26. data/lib/generators/docker/config/templates/docker-compose.yml +16 -0
  27. data/lib/generators/docker/config/templates/docker.rake +95 -0
  28. data/lib/generators/docker/config/templates/dockercfg.yml +7 -0
  29. data/lib/generators/docker/config/templates/mongo.erb +6 -0
  30. data/lib/generators/docker/config/templates/mongoid.yml +32 -0
  31. data/lib/generators/docker/config/templates/mysql.erb +8 -0
  32. data/lib/generators/docker/config/templates/postgres.erb +6 -0
  33. data/lib/generators/rancher/config/USAGE +8 -0
  34. data/lib/generators/rancher/config/config_generator.rb +35 -0
  35. data/lib/generators/rancher/config/templates/rancher +6 -0
  36. data/lib/generators/rspec/config/USAGE +8 -0
  37. data/lib/generators/rspec/config/config_generator.rb +82 -0
  38. data/lib/generators/setup/full/USAGE +8 -0
  39. data/lib/generators/setup/full/full_generator.rb +11 -0
  40. data/lib/generators_rails/version.rb +3 -0
  41. data/lib/generators_rails.rb +2 -0
  42. data/lib/tasks/generators_rails_tasks.rake +4 -0
  43. metadata +99 -0
@@ -0,0 +1,118 @@
1
+ # These are all the cops that are disabled in the default configuration.
2
+
3
+ Layout/FirstArrayElementLineBreak:
4
+ Description: >-
5
+ Checks for a line break before the first element in a
6
+ multi-line array.
7
+ Enabled: false
8
+
9
+ Layout/FirstHashElementLineBreak:
10
+ Description: >-
11
+ Checks for a line break before the first element in a
12
+ multi-line hash.
13
+ Enabled: false
14
+
15
+ Layout/FirstMethodArgumentLineBreak:
16
+ Description: >-
17
+ Checks for a line break before the first argument in a
18
+ multi-line method call.
19
+ Enabled: false
20
+
21
+ Layout/FirstMethodParameterLineBreak:
22
+ Description: >-
23
+ Checks for a line break before the first parameter in a
24
+ multi-line method parameter definition.
25
+ Enabled: false
26
+
27
+ Layout/MultilineAssignmentLayout:
28
+ Description: 'Check for a newline after the assignment operator in multi-line assignments.'
29
+ StyleGuide: '#indent-conditional-assignment'
30
+ Enabled: false
31
+
32
+ # By default, the rails cops are not run. Override in project or home
33
+ # directory .rubocop.yml files, or by giving the -R/--rails option.
34
+ Rails:
35
+ Enabled: false
36
+
37
+ Rails/SaveBang:
38
+ Description: 'Identifies possible cases where Active Record save! or related should be used.'
39
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#save-bang'
40
+ Enabled: false
41
+
42
+ Style/AutoResourceCleanup:
43
+ Description: 'Suggests the usage of an auto resource cleanup version of a method (if available).'
44
+ Enabled: false
45
+
46
+ Style/CollectionMethods:
47
+ Description: 'Preferred collection methods.'
48
+ StyleGuide: '#map-find-select-reduce-size'
49
+ Enabled: false
50
+
51
+ Style/Copyright:
52
+ Description: 'Include a copyright notice in each file before any code.'
53
+ Enabled: false
54
+
55
+ Style/DocumentationMethod:
56
+ Description: 'Public methods.'
57
+ Enabled: false
58
+ Exclude:
59
+ - 'spec/**/*'
60
+ - 'test/**/*'
61
+
62
+ Style/ImplicitRuntimeError:
63
+ Description: >-
64
+ Use `raise` or `fail` with an explicit exception class and
65
+ message, rather than just a message.
66
+ Enabled: false
67
+
68
+ Style/InlineComment:
69
+ Description: 'Avoid trailing inline comments.'
70
+ Enabled: false
71
+
72
+ Style/MethodCallWithArgsParentheses:
73
+ Description: 'Use parentheses for method calls with arguments.'
74
+ StyleGuide: '#method-invocation-parens'
75
+ Enabled: false
76
+
77
+ Style/MethodCalledOnDoEndBlock:
78
+ Description: 'Avoid chaining a method call on a do...end block.'
79
+ StyleGuide: '#single-line-blocks'
80
+ Enabled: false
81
+
82
+ Style/MissingElse:
83
+ Description: >-
84
+ Require if/case expressions to have an else branches.
85
+ If enabled, it is recommended that
86
+ Style/UnlessElse and Style/EmptyElse be enabled.
87
+ This will conflict with Style/EmptyElse if
88
+ Style/EmptyElse is configured to style "both"
89
+ Enabled: false
90
+ EnforcedStyle: both
91
+ SupportedStyles:
92
+ # if - warn when an if expression is missing an else branch
93
+ # case - warn when a case expression is missing an else branch
94
+ # both - warn when an if or case expression is missing an else branch
95
+ - if
96
+ - case
97
+ - both
98
+
99
+ Style/OptionHash:
100
+ Description: "Don't use option hashes when you can use keyword arguments."
101
+ Enabled: false
102
+
103
+ Style/ReturnNil:
104
+ Description: 'Use return instead of return nil.'
105
+ Enabled: false
106
+
107
+ Style/Send:
108
+ Description: 'Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` may overlap with existing methods.'
109
+ StyleGuide: '#prefer-public-send'
110
+ Enabled: false
111
+
112
+ Style/StringMethods:
113
+ Description: 'Checks if configured preferred methods are used over non-preferred.'
114
+ Enabled: false
115
+
116
+ Style/SingleLineBlockParams:
117
+ Description: 'Enforces the names of some block params.'
118
+ Enabled: false