framgia-rails-init 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/framgia-rails-init +5 -0
- data/lib/rails/init.rb +60 -0
- data/lib/rails/init/version.rb +5 -0
- data/rails-init.gemspec +36 -0
- data/templates/.eslintignore +4 -0
- data/templates/.eslintrc.json +29 -0
- data/templates/.framgia-ci.yml +18 -0
- data/templates/.gitignore +34 -0
- data/templates/.rubocop.yml +548 -0
- data/templates/.rubocop_disabled.yml +208 -0
- data/templates/.rubocop_enabled.yml +717 -0
- data/templates/.scss-lint.yml +22 -0
- data/templates/config.reek +10 -0
- data/templates/rails_best_practices.yml +54 -0
- metadata +116 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
scss_files:
|
2
|
+
- 'app/assets/stylesheets/**'
|
3
|
+
exclude:
|
4
|
+
- 'app/assets/stylesheets/application.css'
|
5
|
+
- 'app/assets/stylesheets/animate.css'
|
6
|
+
- 'vendor/assets/**'
|
7
|
+
linters:
|
8
|
+
ImportantRule:
|
9
|
+
enabled: false
|
10
|
+
MergeableSelector:
|
11
|
+
enabled: false
|
12
|
+
UrlFormat:
|
13
|
+
enabled: false
|
14
|
+
StringQuotes:
|
15
|
+
enabled: true
|
16
|
+
style: double_quotes
|
17
|
+
IdSelector:
|
18
|
+
enabled: false
|
19
|
+
NestingDepth:
|
20
|
+
enabled: false
|
21
|
+
SelectorDepth:
|
22
|
+
enabled: false
|
@@ -0,0 +1,54 @@
|
|
1
|
+
AddModelVirtualAttributeCheck: { }
|
2
|
+
AlwaysAddDbIndexCheck: { }
|
3
|
+
DefaultScopeIsEvilCheck: { }
|
4
|
+
DryBundlerInCapistranoCheck: { }
|
5
|
+
IsolateSeedDataCheck: { }
|
6
|
+
KeepFindersOnTheirOwnModelCheck: { }
|
7
|
+
LawOfDemeterCheck: { }
|
8
|
+
MoveCodeIntoControllerCheck: { }
|
9
|
+
MoveCodeIntoHelperCheck: { array_count: 3 }
|
10
|
+
MoveCodeIntoModelCheck: { use_count: 2 }
|
11
|
+
MoveFinderToNamedScopeCheck: { }
|
12
|
+
MoveModelLogicIntoModelCheck: { use_count: 4 }
|
13
|
+
NeedlessDeepNestingCheck: { nested_count: 2 }
|
14
|
+
NotRescueExceptionCheck: { }
|
15
|
+
NotUseDefaultRouteCheck: { }
|
16
|
+
NotUseTimeAgoInWordsCheck: { }
|
17
|
+
OveruseRouteCustomizationsCheck: { customize_count: 3 }
|
18
|
+
ProtectMassAssignmentCheck: {
|
19
|
+
ignored_files: ['app/models/application_record.rb']
|
20
|
+
}
|
21
|
+
RemoveEmptyHelpersCheck: { }
|
22
|
+
#RemoveTabCheck: { }
|
23
|
+
RemoveTrailingWhitespaceCheck: { }
|
24
|
+
RemoveUnusedMethodsInControllersCheck: {
|
25
|
+
except_methods: [],
|
26
|
+
ignored_files: ['app/controllers/admins_controller.rb',
|
27
|
+
'app/controllers/sessions_controller.rb',
|
28
|
+
'app/controllers/pages_controller.rb',
|
29
|
+
'app/controllers/application_controller.rb'
|
30
|
+
]
|
31
|
+
}
|
32
|
+
RemoveUnusedMethodsInHelpersCheck: {
|
33
|
+
except_methods: [],
|
34
|
+
ignored_files: ['app/helpers/session_helper.rb',
|
35
|
+
'app/helpers/application_helper.rb']
|
36
|
+
}
|
37
|
+
RemoveUnusedMethodsInModelsCheck: {
|
38
|
+
except_methods: [],
|
39
|
+
ignored_files: ['app/models/**']
|
40
|
+
}
|
41
|
+
ReplaceComplexCreationWithFactoryMethodCheck: { attribute_assignment_count: 2 }
|
42
|
+
ReplaceInstanceVariableWithLocalVariableCheck: { }
|
43
|
+
RestrictAutoGeneratedRoutesCheck: { }
|
44
|
+
SimplifyRenderInControllersCheck: { }
|
45
|
+
SimplifyRenderInViewsCheck: { }
|
46
|
+
#UseBeforeFilterCheck: { customize_count: 2 }
|
47
|
+
UseModelAssociationCheck: { }
|
48
|
+
UseMultipartAlternativeAsContentTypeOfEmailCheck: { }
|
49
|
+
#UseParenthesesInMethodDefCheck: { }
|
50
|
+
UseObserverCheck: { }
|
51
|
+
UseQueryAttributeCheck: { }
|
52
|
+
UseSayWithTimeInMigrationsCheck: { }
|
53
|
+
UseScopeAccessCheck: { }
|
54
|
+
UseTurboSprocketsRails3Check: { }
|
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: framgia-rails-init
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ohmygodvt95
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: Init rails basic project by framgia rails convention..
|
56
|
+
email:
|
57
|
+
- ohmygodvt95@gmail.com
|
58
|
+
executables:
|
59
|
+
- framgia-rails-init
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".idea/misc.xml"
|
65
|
+
- ".idea/modules.xml"
|
66
|
+
- ".idea/rails-init.iml"
|
67
|
+
- ".idea/workspace.xml"
|
68
|
+
- ".rspec"
|
69
|
+
- ".travis.yml"
|
70
|
+
- CODE_OF_CONDUCT.md
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE.txt
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- bin/console
|
76
|
+
- bin/setup
|
77
|
+
- exe/framgia-rails-init
|
78
|
+
- lib/rails/init.rb
|
79
|
+
- lib/rails/init/version.rb
|
80
|
+
- rails-init.gemspec
|
81
|
+
- templates/.eslintignore
|
82
|
+
- templates/.eslintrc.json
|
83
|
+
- templates/.framgia-ci-result.temp.yml
|
84
|
+
- templates/.framgia-ci.yml
|
85
|
+
- templates/.gitignore
|
86
|
+
- templates/.rubocop.yml
|
87
|
+
- templates/.rubocop_disabled.yml
|
88
|
+
- templates/.rubocop_enabled.yml
|
89
|
+
- templates/.scss-lint.yml
|
90
|
+
- templates/config.reek
|
91
|
+
- templates/rails_best_practices.yml
|
92
|
+
homepage: https://github.com/ohmygodvt95/framgia-rails-init
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
metadata: {}
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.6.12
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: Init rails basic project by framgia rails convention.
|
116
|
+
test_files: []
|