Skip to content

Commit

Permalink
init_project
Browse files Browse the repository at this point in the history
  • Loading branch information
khungking909 committed Mar 18, 2024
1 parent fe9fb13 commit c1e3846
Show file tree
Hide file tree
Showing 71 changed files with 1,993 additions and 61 deletions.
37 changes: 37 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/

# Ignore bundler config.
/.bundle

# Ignore all environment files (except templates).
/.env*
!/.env*.erb

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials
86 changes: 26 additions & 60 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,69 +1,35 @@
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-[0-9]*
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html
# 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
/storage
# Ignore all environment files (except templates).
/.env*
!/.env*.erb
/test/
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
/tmp
!/log/.keep
!/tmp/.keep

# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key

# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml

# dotenv, dotenv-rails
# TODO Comment out these rules if environment variables can be committed
.env
.env*.local

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json
# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history

# Ignore node_modules
node_modules/

# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/public/assets

# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore uploaded files in development
# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/public/uploads
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep
/config/credentials.yml.enc
/public/assets
/config/database.yml
# Ignore master key for decrypting credentials and more.
/config/master.key
55 changes: 55 additions & 0 deletions .rubocop-performance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@


###########################################################
#################### RuboCop Performance ##################
###########################################################

# You can find all configuration options for rubocop-performance here: https://docs.rubocop.org/rubocop-performance/

Performance/AncestorsInclude: # (new in 1.7)
Enabled: true

Performance/BigDecimalWithNumericArgument: # (new in 1.7)
Enabled: true

Performance/BlockGivenWithExplicitBlock: # (new in 1.9)
Enabled: true

Performance/CollectionLiteralInLoop: # (new in 1.8)
Enabled: true

Performance/ConstantRegexp: # (new in 1.9)
Enabled: true

Performance/MapCompact: # (new in 1.11)
Enabled: true

Performance/MethodObjectAsBlock: # (new in 1.9)
Enabled: true

Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
Enabled: true

Performance/RedundantSortBlock: # (new in 1.7)
Enabled: true

Performance/RedundantSplitRegexpArgument: # (new in 1.10)
Enabled: true

Performance/RedundantStringChars: # (new in 1.7)
Enabled: true

Performance/ReverseFirst: # (new in 1.7)
Enabled: true

Performance/SortReverse: # (new in 1.7)
Enabled: true

Performance/Squeeze: # (new in 1.7)
Enabled: true

Performance/StringInclude: # (new in 1.7)
Enabled: true

Performance/Sum: # (new in 1.8)
Enabled: true
56 changes: 56 additions & 0 deletions .rubocop-rails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
##########################################################
#################### Rubocop Rspec ########################
###########################################################

# You can find all configuration options for rubocop-rspec here: https://docs.rubocop.org/rubocop-rspec/cops.html

RSpec/AnyInstance:
Enabled: false

RSpec/BeforeAfterAll:
Enabled: false

RSpec/ContextWording:
Enabled: false

RSpec/DescribeClass:
Enabled: false

RSpec/ExampleLength:
Enabled: false

RSpec/ExpectInHook:
Enabled: false

RSpec/FilePath:
Enabled: false

RSpec/InstanceVariable:
Enabled: false

RSpec/LetSetup:
Enabled: false

RSpec/MessageChain:
Enabled: false

RSpec/MessageSpies:
Enabled: false

RSpec/MultipleExpectations:
Enabled: false

RSpec/NamedSubject:
Enabled: false

RSpec/NestedGroups:
Max: 7

RSpec/SubjectStub:
Enabled: false

RSpec/VerifiedDoubles:
Enabled: false

RSpec/VoidExpect:
Enabled: false
56 changes: 56 additions & 0 deletions .rubocop-rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
###########################################################
#################### Rubocop Rspec ########################
###########################################################

# You can find all configuration options for rubocop-rspec here: https://docs.rubocop.org/rubocop-rspec/cops.html

RSpec/AnyInstance:
Enabled: false

RSpec/BeforeAfterAll:
Enabled: false

RSpec/ContextWording:
Enabled: false

RSpec/DescribeClass:
Enabled: false

RSpec/ExampleLength:
Enabled: false

RSpec/ExpectInHook:
Enabled: false

RSpec/FilePath:
Enabled: false

RSpec/InstanceVariable:
Enabled: false

RSpec/LetSetup:
Enabled: false

RSpec/MessageChain:
Enabled: false

RSpec/MessageSpies:
Enabled: false

RSpec/MultipleExpectations:
Enabled: false

RSpec/NamedSubject:
Enabled: false

RSpec/NestedGroups:
Max: 7

RSpec/SubjectStub:
Enabled: false

RSpec/VerifiedDoubles:
Enabled: false

RSpec/VoidExpect:
Enabled: false
Loading

0 comments on commit c1e3846

Please sign in to comment.