-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Petr Nikolas Prokop
committed
Nov 29, 2019
1 parent
ac2138f
commit 4efcd44
Showing
99 changed files
with
1,053 additions
and
1,246 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*.ts eol=lf | ||
*.js eol=lf | ||
*.html eol=lf | ||
*.css eol=lf | ||
*.md eol=lf | ||
*.json eol=lf | ||
*.yml eol=lf | ||
*.styl eol=lf | ||
|
||
* text=auto | ||
|
||
yarn.lock -diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
/public/assets* | ||
/tmp | ||
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile '~/.gitignore_global' | ||
|
||
# Ignore bundler config. | ||
/.bundle | ||
|
||
# Ignore the default SQLite database. | ||
/db/*.sqlite3 | ||
/db/*.sqlite3-journal | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
|
||
# Ignore master key for decrypting credentials and more. | ||
/config/master.key | ||
|
||
# Ignore public, as it is built on deploy | ||
# Place files for /public in /client/public | ||
/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
require: rubocop-rails | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
Documentation: | ||
Enabled: false | ||
|
||
AllCops: | ||
Exclude: | ||
- "spec/**/*" | ||
- "db/**/*" | ||
- "config/**/*" | ||
- "bin/*" | ||
TargetRubyVersion: 2.3.1 | ||
|
||
FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
# Commonly used screens these days easily fit more than 80 characters. | ||
Metrics/LineLength: | ||
Max: 140 | ||
|
||
# Too short methods lead to extraction of single-use methods, which can make | ||
# the code easier to read (by naming things), but can also clutter the class | ||
Metrics/MethodLength: | ||
Max: 20 | ||
|
||
# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC | ||
Metrics/ClassLength: | ||
Max: 1500 | ||
|
||
# Suppressing exceptions can be perfectly fine, and be it to avoid to | ||
# explicitly type nil into the rescue since that's what you want to return, | ||
# or suppressing LoadError for optional dependencies | ||
Lint/HandleExceptions: | ||
Enabled: false | ||
|
||
# Shadowing outer local variables with block parameters is often useful | ||
# to not reinvent a new name for the same thing, it highlights the relation | ||
# between the outer variable and the parameter. The cases where it's actually | ||
# confusing are rare, and usually bad for other reasons already, for example | ||
# because the method is too long. | ||
Lint/ShadowingOuterLocalVariable: | ||
Enabled: false | ||
|
||
# This is just silly. Calling the argument `other` in all cases makes no sense. | ||
Naming/BinaryOperatorParameterName: | ||
Enabled: false | ||
|
||
# There are valid cases, for example debugging Cucumber steps, | ||
# also they'll fail CI anyway | ||
Lint/Debugger: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby-2.6.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"rebornix.Ruby", | ||
"kaiwood.endwise", | ||
"vortizhe.simple-ruby-erb", | ||
"bung87.rails", | ||
"ninoseki.vscode-gem-lens" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"ruby.useLanguageServer": true, | ||
"ruby.useBundler": true, | ||
"ruby.intellisense": "rubyLocate", | ||
"ruby.format": "rufo", | ||
"files.associations": { | ||
"*.html.erb": "html" | ||
}, | ||
"[html]": { | ||
"editor.defaultFormatter": "vscode.html-language-features" | ||
}, | ||
"editor.formatOnSave": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,63 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rake' | ||
gem 'hanami', '~> 1.3' | ||
gem 'hanami-model', '~> 1.3' | ||
git_source(:github) do |repo_name| | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/') | ||
"https://github.com/#{repo_name}.git" | ||
end | ||
|
||
ruby '~> 2.6.3' | ||
|
||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | ||
gem 'rails', '~> 5.0.7', '>= 5.0.7.2' | ||
|
||
# Ruby interface to the PostgreSQL RDBMS. | ||
gem 'pg' | ||
|
||
group :development do | ||
# Code reloading | ||
# See: http://hanamirb.org/guides/projects/code-reloading | ||
gem 'shotgun', platforms: :ruby | ||
gem 'hanami-webconsole' | ||
end | ||
# Use sqlite3 as the database for Active Record | ||
gem 'sqlite3' | ||
|
||
group :test, :development do | ||
gem 'dotenv', '~> 2.4' | ||
end | ||
# Use Puma as the app server | ||
gem 'puma', '~> 3.0' | ||
|
||
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | ||
# gem 'jbuilder', '~> 2.5' | ||
# Use Redis adapter to run Action Cable in production | ||
# gem 'redis', '~> 3.0' | ||
# Use ActiveModel has_secure_password | ||
# gem 'bcrypt', '~> 3.1.7' | ||
|
||
group :test do | ||
gem 'rspec' | ||
gem 'capybara' | ||
# Use Capistrano for deployment | ||
# gem 'capistrano-rails', group: :development | ||
|
||
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible | ||
# gem 'rack-cors' | ||
|
||
group :development, :test do | ||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | ||
gem 'byebug', platform: :mri | ||
end | ||
|
||
group :production do | ||
gem 'puma' | ||
group :development do | ||
gem 'listen', '~> 3.0.5' | ||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
gem 'rufo', '~> 0.7.0', require: false | ||
gem 'spring' | ||
gem 'spring-watcher-listen', '~> 2.0.0' | ||
# A Ruby static code analyzer | ||
gem 'rubocop', '~> 0.70.0', require: false | ||
gem 'rubocop-rails', require: false | ||
# Code smell detector for Ruby | ||
gem 'reek' | ||
|
||
# A code metric tool for rails projects | ||
gem 'rails_best_practices' | ||
|
||
# A static analysis security vulnerability scanner for Ruby on Rails applications | ||
gem 'brakeman', require: false | ||
|
||
# Annotate Rails classes with schema and routes info | ||
gem 'annotate' | ||
end | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] |
Oops, something went wrong.