Skip to content

Commit 31ea095

Browse files
committed
first commit
0 parents  commit 31ea095

File tree

203 files changed

+6850
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+6850
-0
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
end_of_line = lf

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.rb diff=ruby
2+
*.gemspec diff=ruby
3+

.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
.bundle/
9+
10+
# Ignore the default SQLite database.
11+
test/dummy/db/*.sqlite3
12+
test/dummy/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
log/*.log
16+
!test/dummy/log/.keep
17+
!test/dummy/tmp/.keep
18+
test/dummy/log/*.log
19+
test/dummy/tmp/
20+
21+
# Ignore uploaded files in development
22+
test/dummy/storage/*
23+
!test/dummy/storage/.keep
24+
25+
pkg/
26+
.byebug_history
27+
28+
node_modules/
29+
test/dummy/public/packs
30+
test/dummy/node_modules/
31+
yarn-error.log
32+
33+
*.gem
34+
35+
.generators
36+
.rakeTasks
37+
38+
.env

.rubocop.yml

+276
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
1+
require:
2+
- rubocop-performance
3+
- rubocop-rails
4+
5+
AllCops:
6+
TargetRubyVersion: 2.5
7+
Exclude:
8+
- bin/**/*
9+
- test/dummy/bin/**/*
10+
- test/dummy/db/schema.rb
11+
12+
Rails:
13+
Enabled: true
14+
15+
Layout/LineLength:
16+
Enabled: false
17+
18+
Metrics/AbcSize:
19+
Max: 30
20+
21+
Metrics/MethodLength:
22+
Max: 100
23+
24+
Metrics/BlockLength:
25+
Max: 60
26+
27+
Metrics/ClassLength:
28+
Enabled: false
29+
30+
Metrics/ParameterLists:
31+
Enabled: false
32+
33+
Style/IfUnlessModifier:
34+
Enabled: false
35+
36+
Style/GuardClause:
37+
Enabled: false
38+
39+
Style/Documentation:
40+
Enabled: false
41+
42+
Style/ClassAndModuleChildren:
43+
Enabled: false
44+
45+
Naming/AccessorMethodName:
46+
Enabled: false
47+
48+
Naming/MemoizedInstanceVariableName:
49+
Enabled: false
50+
51+
# Prefer assert_not over assert !
52+
Rails/AssertNot:
53+
Include:
54+
- 'test/**/*'
55+
56+
# Prefer assert_not_x over refute_x
57+
Rails/RefuteMethods:
58+
Include:
59+
- 'test/**/*'
60+
61+
# Prefer &&/|| over and/or.
62+
Style/AndOr:
63+
Enabled: true
64+
65+
# Do not use braces for hash literals when they are the last argument of a
66+
# method call.
67+
Style/BracesAroundHashParameters:
68+
Enabled: true
69+
EnforcedStyle: context_dependent
70+
71+
# Align `when` with `case`.
72+
Layout/CaseIndentation:
73+
Enabled: true
74+
75+
# Align comments with method definitions.
76+
Layout/CommentIndentation:
77+
Enabled: true
78+
79+
Layout/ElseAlignment:
80+
Enabled: true
81+
82+
# Align `end` with the matching keyword or starting expression except for
83+
# assignments, where it should be aligned with the LHS.
84+
Layout/EndAlignment:
85+
Enabled: true
86+
EnforcedStyleAlignWith: variable
87+
AutoCorrect: true
88+
89+
Layout/EmptyLineAfterMagicComment:
90+
Enabled: true
91+
92+
Layout/EmptyLinesAroundBlockBody:
93+
Enabled: true
94+
95+
# In a regular class definition, no empty lines around the body.
96+
Layout/EmptyLinesAroundClassBody:
97+
Enabled: true
98+
99+
# In a regular method definition, no empty lines around the body.
100+
Layout/EmptyLinesAroundMethodBody:
101+
Enabled: true
102+
103+
# In a regular module definition, no empty lines around the body.
104+
Layout/EmptyLinesAroundModuleBody:
105+
Enabled: true
106+
107+
Layout/FirstArgumentIndentation:
108+
Enabled: true
109+
110+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
111+
Style/HashSyntax:
112+
Enabled: true
113+
114+
# Method definitions after `private` or `protected` isolated calls need one
115+
# extra level of indentation.
116+
Layout/IndentationConsistency:
117+
Enabled: true
118+
EnforcedStyle: indented_internal_methods
119+
120+
# Two spaces, no tabs (for indentation).
121+
Layout/IndentationWidth:
122+
Enabled: true
123+
124+
Layout/LeadingCommentSpace:
125+
Enabled: true
126+
127+
Layout/SpaceAfterColon:
128+
Enabled: true
129+
130+
Layout/SpaceAfterComma:
131+
Enabled: true
132+
133+
Layout/SpaceAfterSemicolon:
134+
Enabled: true
135+
136+
Layout/SpaceAroundEqualsInParameterDefault:
137+
Enabled: true
138+
139+
Layout/SpaceAroundKeyword:
140+
Enabled: true
141+
142+
Layout/SpaceAroundOperators:
143+
Enabled: true
144+
145+
Layout/SpaceBeforeComma:
146+
Enabled: true
147+
148+
Layout/SpaceBeforeFirstArg:
149+
Enabled: true
150+
151+
Style/DefWithParentheses:
152+
Enabled: true
153+
154+
# Defining a method with parameters needs parentheses.
155+
Style/MethodDefParentheses:
156+
Enabled: true
157+
158+
Style/FrozenStringLiteralComment:
159+
Enabled: true
160+
EnforcedStyle: always
161+
162+
Style/RedundantFreeze:
163+
Enabled: true
164+
165+
Style/AccessModifierDeclarations:
166+
Enabled: false
167+
168+
# Use `foo {}` not `foo{}`.
169+
Layout/SpaceBeforeBlockBraces:
170+
Enabled: true
171+
172+
# Use `foo { bar }` not `foo {bar}`.
173+
Layout/SpaceInsideBlockBraces:
174+
Enabled: true
175+
EnforcedStyleForEmptyBraces: space
176+
177+
# Use `{ a: 1 }` not `{a:1}`.
178+
Layout/SpaceInsideHashLiteralBraces:
179+
Enabled: true
180+
181+
Layout/SpaceInsideParens:
182+
Enabled: true
183+
184+
# Check quotes usage according to lint rule below.
185+
Style/StringLiterals:
186+
Enabled: true
187+
EnforcedStyle: double_quotes
188+
189+
# Detect hard tabs, no hard tabs.
190+
Layout/Tab:
191+
Enabled: true
192+
193+
# Blank lines should not have any spaces.
194+
Layout/TrailingEmptyLines:
195+
Enabled: true
196+
197+
# No trailing whitespace.
198+
Layout/TrailingWhitespace:
199+
Enabled: true
200+
201+
# Use quotes for string literals when they are enough.
202+
Style/RedundantPercentQ:
203+
Enabled: true
204+
205+
Lint/AmbiguousOperator:
206+
Enabled: true
207+
208+
Lint/AmbiguousRegexpLiteral:
209+
Enabled: true
210+
211+
Lint/ErbNewArguments:
212+
Enabled: true
213+
214+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
215+
Lint/RequireParentheses:
216+
Enabled: true
217+
218+
Lint/ShadowingOuterLocalVariable:
219+
Enabled: true
220+
221+
Lint/RedundantStringCoercion:
222+
Enabled: true
223+
224+
Lint/UriEscapeUnescape:
225+
Enabled: true
226+
227+
Lint/UselessAssignment:
228+
Enabled: true
229+
230+
Lint/DeprecatedClassMethods:
231+
Enabled: true
232+
233+
Lint/AssignmentInCondition:
234+
Enabled: false
235+
236+
Style/ParenthesesAroundCondition:
237+
Enabled: true
238+
239+
Style/RedundantBegin:
240+
Enabled: true
241+
242+
Style/RedundantReturn:
243+
Enabled: true
244+
AllowMultipleReturnValues: true
245+
246+
Style/Semicolon:
247+
Enabled: true
248+
AllowAsExpressionSeparator: true
249+
250+
# Prefer Foo.method over Foo::method
251+
Style/ColonMethodCall:
252+
Enabled: true
253+
254+
Style/TrivialAccessors:
255+
Enabled: true
256+
257+
Performance/FlatMap:
258+
Enabled: true
259+
260+
Performance/RedundantMerge:
261+
Enabled: true
262+
263+
Performance/StartWith:
264+
Enabled: true
265+
266+
Performance/EndWith:
267+
Enabled: true
268+
269+
Performance/RegexpMatch:
270+
Enabled: true
271+
272+
Performance/ReverseEach:
273+
Enabled: true
274+
275+
Performance/UnfreezeString:
276+
Enabled: true

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.6.5

Gemfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5+
6+
# Declare your gem's dependencies in flow_core.gemspec.
7+
# Bundler will treat runtime dependencies like base dependencies, and
8+
# development dependencies will be added by default to the :development group.
9+
gemspec
10+
11+
# Declare any dependencies that are still in development here instead of in
12+
# your gemspec. These might include edge Rails or gems from your path or
13+
# Git. Remember to move these dependencies to your gemspec before releasing
14+
# your gem to rubygems.org.
15+
16+
# To use a debugger
17+
gem "byebug", group: %i[development test]
18+
19+
# Use Puma as the app server
20+
gem "puma"
21+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
22+
gem "listen", ">= 3.0.5", "< 3.2"
23+
gem "web-console", group: :development
24+
25+
gem "rubocop"
26+
gem "rubocop-performance"
27+
gem "rubocop-rails"
28+
29+
gem "dentaku"
30+
gem "kaminari"
31+
gem "validates_timeliness", "~> 5.0.0.alpha4"
32+
33+
# Support ES6
34+
gem "babel-transpiler"
35+
# Use SCSS for stylesheets
36+
gem "sassc-rails"
37+
38+
gem "bootstrap", "~> 4.4"
39+
gem "jquery-rails"
40+
gem "turbolinks"
41+
42+
gem "ruby-graphviz", require: "graphviz"

0 commit comments

Comments
 (0)