-
Notifications
You must be signed in to change notification settings - Fork 8
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
0 parents
commit 7086ac0
Showing
298 changed files
with
31,317 additions
and
0 deletions.
There are no files selected for viewing
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,2 @@ | ||
defaults | ||
|
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,22 @@ | ||
|
||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = 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,3 @@ | ||
/node_modules/* | ||
/public/* | ||
postcss.config.js |
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,24 @@ | ||
|
||
module.exports = { | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es6: true, | ||
jquery: true | ||
}, | ||
extends: [ | ||
'airbnb-base' | ||
], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
}, | ||
rules: { | ||
indent: ['error', 4], | ||
'linebreak-style': ['error', 'unix'], | ||
}, | ||
}; | ||
|
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,19 @@ | ||
<!-- This is a recommended template you may edit as you wish! --> | ||
|
||
## Describe the issue | ||
|
||
Is this a... ?: | ||
- [ ] Feature | ||
- [ ] Bug | ||
- [ ] Chore | ||
|
||
... | ||
|
||
## Are there any blockers or related stories? | ||
<!-- Link other issues --> | ||
|
||
### Checklist | ||
|
||
- [ ] Fillout the GitHub Tags / Assign to teammates when ready | ||
- [ ] Is this a 1-point story? If not, note why above | ||
- [ ] Has this story been prioritized? (Go to the project board) |
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,24 @@ | ||
## What does this PR do? | ||
|
||
<!-- Be sure to link the relevant issues. --> | ||
|
||
### Who else worked on this? | ||
<!-- If you're pairing, make sure to tag your partner(s) --> | ||
|
||
## How should this be tested? | ||
|
||
- [ ] Are there rspec tests? (Or are they not needed? Why?) | ||
- [ ] Are there cucumber tests? (Or are they not needed? Why?) | ||
|
||
<!-- Add notes about testing --> | ||
|
||
## Is there anything that needs special attention? | ||
|
||
<!-- Data migrations, for example? Are there dependent stories? --> | ||
|
||
### Checklist | ||
|
||
- [ ] Assign someone to review | ||
- [ ] CI is all Green / Passing | ||
- [ ] Resolved all code linter comments, review comments, etc. | ||
- [ ] Is `main` up to date? Is there rebasing / merging needed? |
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,24 @@ | ||
name: Code Linters | ||
on: | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
pronto: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Install pronto | ||
run: bundle install --without default development test production | ||
- name: Run Pronto | ||
run: bundle exec pronto run -f github_combined_status github_pr_review -c origin/${{ github.base_ref }} | ||
env: | ||
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }} | ||
PRONTO_GITHUB_ACCESS_TOKEN: "${{ github.token }}" |
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,37 @@ | ||
name: All Specs | ||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
# TODO: Environment variables? | ||
build: | ||
runs-on: '${{ matrix.os }}' | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-18.04 | ||
steps: | ||
- name: Cache multiple paths | ||
uses: actions/cache@v2 | ||
with: | ||
path: |- | ||
node_modules | ||
vendor/bundle | ||
key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}' | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12.13.1 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- run: gem install bundler:2.1.4 | ||
- run: npm install -g yarn@1.22.4 | ||
- run: bundle install | ||
- run: yarn install | ||
- run: bundle exec rake db:setup | ||
- run: bundle exec rake db:test:prepare | ||
- run: bundle exec rspec | ||
- run: CUCUMBER_PUBLISH_QUIET=true bundle exec cucumber |
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,81 @@ | ||
|
||
*.rbc | ||
capybara-*.html | ||
.rspec | ||
/db/*.sqlite3 | ||
/db/*.sqlite3-journal | ||
/db/*.sqlite3-[0-9]* | ||
/public/system | ||
/coverage/ | ||
/spec/tmp | ||
*.orig | ||
rerun.txt | ||
pickle-email-*.html | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
# Note: It is not OK to publish secrets in repo, use figaro instead. | ||
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.* | ||
|
||
## 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 | ||
|
||
# Ignore erb files generated by rails_real_favicon | ||
# Instead use `bundle exec rails haml:erb2haml app/views/application/_favicon.html.erb` to convert to haml. | ||
app/views/application/_favicon.html.erb | ||
|
||
# if using bower-rails ignore default bower_components path bower.json files | ||
/vendor/assets/bower_components | ||
*.bowerrc | ||
bower.json | ||
|
||
# Ignore pow environment settings | ||
.powenv | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
|
||
# Ignore node_modules | ||
/node_modules | ||
|
||
# Use yarn instead of npm | ||
package-lock.json | ||
|
||
# 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 | ||
/storage/* | ||
!/storage/.keep | ||
/public/uploads | ||
|
||
|
||
# Ignore master key for decrypting credentials and more. | ||
/config/master.key |
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 @@ | ||
|
||
linters: | ||
LineLength: | ||
max: 120 | ||
severity: error | ||
Indentation: # For consistency with default rubocop rules. | ||
character: space | ||
width: 4 | ||
severity: error | ||
exclude: | ||
- 'node_modules/**/*' | ||
- 'vendor/**/*' | ||
|
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,137 @@ | ||
# This file defines all the linter rules for the project. | ||
# See the list of the rules which are called "cops" | ||
# https://docs.rubocop.org/rubocop/cops.html | ||
# https://docs.rubocop.org/rubocop-rails/cops_rails.html | ||
|
||
# These configurations are *largely* the rubocop defaults. | ||
# We've relaxed some configurations that may be harder to meet while | ||
# you are learning. | ||
|
||
# rubocop allows us to go simply beyond code formatting and also focus on | ||
# best practices, like code complexity. | ||
|
||
require: | ||
- rubocop-rails | ||
- rubocop-rspec | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.6 | ||
Exclude: | ||
- bin/* | ||
- config/routes.rb | ||
- db/schema.rb | ||
- db/seed_data.rb | ||
- db/seeds.rb | ||
- features/step_definitions/web_steps.rb | ||
- features/support/paths.rb | ||
- features/support/selectors.rb | ||
- Guardfile | ||
- lib/tasks/cucumber.rake | ||
- node_modules/**/* | ||
- vendor/**/* | ||
|
||
Layout/EndOfLine: | ||
EnforcedStyle: lf | ||
|
||
Lint/AmbiguousRegexpLiteral: | ||
Exclude: | ||
- features/step_definitions/* | ||
|
||
Style/CommentAnnotation: | ||
Keywords: | ||
- CS169 | ||
- ACTION-MAP | ||
- TODO | ||
- HACK | ||
- REVIEW | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
Gemspec/RequiredRubyVersion: | ||
Enabled: true | ||
|
||
Layout/EmptyLineAfterGuardClause: | ||
Enabled: true | ||
|
||
# No space makes the method definition shorter and differentiates | ||
# from a regular assignment. | ||
Layout/SpaceAroundEqualsInParameterDefault: | ||
EnforcedStyle: no_space | ||
|
||
# Most readable form. | ||
Layout/HashAlignment: | ||
EnforcedHashRocketStyle: table | ||
EnforcedColonStyle: table | ||
|
||
Layout/LineLength: | ||
Max: 120 | ||
|
||
Lint/RaiseException: | ||
Enabled: true | ||
|
||
Lint/StructNewOverride: | ||
Enabled: true | ||
|
||
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsabcsize | ||
Metrics/AbcSize: | ||
Max: 30 | ||
Enabled: true | ||
|
||
Metrics/BlockLength: | ||
IgnoredMethods: | ||
- describe | ||
- context | ||
- shared_examples | ||
- namespace | ||
- ActiveRecord::Schema.define | ||
|
||
# Skips style of child classes and modules. | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/CollectionMethods: | ||
Enabled: true | ||
PreferredMethods: | ||
reduce: "inject" | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/HashEachMethods: | ||
Enabled: true | ||
AutoCorrect: false # Unsafe autocorrect | ||
|
||
Style/HashTransformKeys: | ||
Enabled: true | ||
AutoCorrect: false # Unsafe autocorrect | ||
|
||
Style/HashTransformValues: | ||
Enabled: true | ||
AutoCorrect: false # Unsafe autocorrect | ||
|
||
# Mixing the styles looks just silly. | ||
Style/HashSyntax: | ||
EnforcedStyle: ruby19_no_mixed_keys | ||
|
||
# has_key? and has_value? are far more readable than key? and value? | ||
Style/PreferredHashMethods: | ||
EnforcedStyle: verbose | ||
|
||
Metrics/MethodLength: | ||
Max: 20 | ||
|
||
RSpec/InstanceVariable: | ||
Enabled: false | ||
|
||
RSpec/DescribeClass: | ||
Exclude: | ||
- spec/linters/* | ||
|
||
# Ideally, you'd want no more than 2. | ||
RSpec/MultipleExpectations: | ||
Max: 4 | ||
|
||
RSpec/RepeatedExample: | ||
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 @@ | ||
2.6.6 |
Oops, something went wrong.