-
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.
* chore: upgrade dockerdev configuration * chore: drop Pronto, add RuboCop TODO * chore: minor system specs fixes * fix: graphql specs * style: add custom RSpec cops
- Loading branch information
Showing
32 changed files
with
412 additions
and
370 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
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
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,29 +1,25 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
pronto: | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_GEMFILE: gemfiles/rubocop.gemfile | ||
BUNDLE_JOBS: 4 | ||
BUNDLE_RETRY: 3 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
# Pronto requires this | ||
- run: | | ||
git fetch --no-tags --prune --depth=30 origin +refs/heads/*:refs/remotes/origin/* | ||
- name: Setup Ruby with Bundler | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler: 2.3.6 | ||
bundler-cache: true | ||
env: | ||
BUNDLE_GEMFILE: gemfiles/linters.gemfile | ||
BUNDLE_JOBS: 4 | ||
BUNDLE_RETRY: 3 | ||
- name: Run Pronto | ||
env: | ||
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }} | ||
PRONTO_GITHUB_ACCESS_TOKEN: "${{ github.token }}" | ||
BUNDLE_GEMFILE: gemfiles/linters.gemfile | ||
run: bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }} | ||
- name: Run Rubocop | ||
run: bundle exec rubocop |
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
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 |
---|---|---|
|
@@ -34,4 +34,3 @@ | |
/app/assets/builds/* | ||
!/app/assets/builds/.keep | ||
spec/examples.txt | ||
gemfiles/*.lock |
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
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
File renamed without changes.
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
File renamed without changes.
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,88 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000` | ||
# on 2022-03-22 07:19:54 UTC using RuboCop version 1.26.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
GraphQL/ArgumentDescription: | ||
Exclude: | ||
- 'app/graphql/types/query_type.rb' | ||
|
||
# Offense count: 5 | ||
GraphQL/ObjectDescription: | ||
Exclude: | ||
- 'app/graphql/types/channel_type.rb' | ||
- 'app/graphql/types/message_type.rb' | ||
- 'app/graphql/types/mutation_type.rb' | ||
- 'app/graphql/types/node_type.rb' | ||
- 'app/graphql/types/query_type.rb' | ||
|
||
# Offense count: 4 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
Layout/SpaceInsidePercentLiteralDelimiters: | ||
Exclude: | ||
- 'Gemfile' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: slashes, arguments | ||
Rails/FilePath: | ||
Exclude: | ||
- 'config/environments/development.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: IgnoreScopes, Include. | ||
# Include: app/models/**/*.rb | ||
Rails/InverseOf: | ||
Exclude: | ||
- 'app/models/channel.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: ForbiddenMethods, AllowedMethods. | ||
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all | ||
Rails/SkipsModelValidations: | ||
Exclude: | ||
- 'db/seeds.rb' | ||
|
||
# Offense count: 26 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: always, always_true, never | ||
Style/FrozenStringLiteralComment: | ||
Exclude: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'app/channels/application_cable/channel.rb' | ||
- 'app/channels/application_cable/connection.rb' | ||
- 'app/controllers/channels_controller.rb' | ||
- 'app/controllers/messages_controller.rb' | ||
- 'app/helpers/application_helper.rb' | ||
- 'app/helpers/channels_helper.rb' | ||
- 'app/jobs/application_job.rb' | ||
- 'app/models/application_record.rb' | ||
- 'app/models/channel.rb' | ||
- 'app/models/message.rb' | ||
- 'config.ru' | ||
- 'config/application.rb' | ||
- 'config/boot.rb' | ||
- 'config/environment.rb' | ||
- 'config/importmap.rb' | ||
- 'config/initializers/content_security_policy.rb' | ||
- 'config/initializers/filter_parameter_logging.rb' | ||
- 'config/initializers/permissions_policy.rb' | ||
- 'config/puma.rb' | ||
- 'db/migrate/20211221124950_create_channels.rb' | ||
- 'db/migrate/20211221150342_create_messages.rb' | ||
- 'db/seeds.rb' | ||
- 'gemfiles/rubocop.gemfile' | ||
- 'lib/rubocop/cops/lint_env.rb' | ||
|
||
# Offense count: 2 | ||
# This cop supports unsafe auto-correction (--auto-correct-all). | ||
# Configuration parameters: SafeForConstants. | ||
Style/RedundantFetchBlock: | ||
Exclude: | ||
- 'config/puma.rb' |
Oops, something went wrong.