Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .annotaterb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
:position: bottom
:position_in_additional_file_patterns: bottom
:position_in_class: bottom
:position_in_factory: bottom
:position_in_fixture: bottom
:position_in_routes: bottom
:position_in_serializer: bottom
:position_in_test: bottom
:classified_sort: true
:exclude_controllers: true
:exclude_factories: false
:exclude_fixtures: false
:exclude_helpers: true
:exclude_scaffolds: true
:exclude_serializers: false
:exclude_sti_subclasses: false
:exclude_tests: false
:force: false
:format_markdown: false
:format_rdoc: false
:format_yard: false
:frozen: false
:ignore_model_sub_dir: false
:ignore_unknown_models: false
:include_version: false
:show_check_constraints: false
:show_complete_foreign_keys: false
:show_foreign_keys: true
:show_indexes: true
:simple_indexes: false
:sort: false
:timestamp: false
:trace: false
:with_comment: true
:with_column_comments: true
:with_table_comments: true
:active_admin: false
:command:
:debug: false
:hide_default_column_types: 'json,jsonb,hstore'
:hide_limit_column_types: 'integer,bigint,boolean'
:ignore_columns:
:ignore_routes:
:models: true
:routes: false
:skip_on_db_migrate: false
:target_action: :do_annotations
:wrapper:
:wrapper_close:
:wrapper_open:
:classes_default_to_s: []
:additional_file_patterns: []
:model_dir:
- app/models
:require: []
:root_dir:
- ''
Empty file removed .rubocop.todo.yml
Empty file.
20 changes: 19 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
require: rubocop-rails

inherit_from: .rubocop.todo.yml
inherit_gem:
rubocop-rails-omakase: rubocop.yml

# Your own specialized rules go here

AllCops:
NewCops: enable
SuggestExtensions: false
Exclude:
- db/schema.rb
- bin/**/*
- tmp/**/*
- vendor/**/*
- log/**/*
- config/initializers/*

Layout/LineLength:
Max: 160
Expand All @@ -14,6 +24,10 @@ Layout/LineLength:
Exclude:
- db/migrate/*

Lint/AssignmentInCondition:
Exclude:
- db/migrate/20250131123310_add_service_name_to_active_storage_blobs.active_storage.rb

Metrics/AbcSize:
Max: 19
Exclude:
Expand Down Expand Up @@ -54,6 +68,10 @@ Rails/Output:
Rails/ScopeArgs:
Enabled: false

Rails/SkipsModelValidations:
Exclude:
- db/migrate/20250131123310_add_service_name_to_active_storage_blobs.active_storage.rb

Rails/UnknownEnv:
Environments:
- development
Expand Down
59 changes: 29 additions & 30 deletions Gemfile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change rubocop to use rubocop-rails-omakase, which is the official settings from rails.

Original file line number Diff line number Diff line change
@@ -1,45 +1,44 @@
# frozen_string_literal: true

source 'https://rubygems.org'
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby file: '.ruby-version'
ruby file: ".ruby-version"

gem 'rails', '~> 7.2'
gem "rails", "~> 8.0.1"

gem 'aws-sdk-s3', '~> 1.122'
gem 'blueprinter', '~> 1.0', '>= 1.0.2'
gem 'bootsnap', '~> 1.18', '>= 1.18.3', require: false
gem 'devise', '~> 4.9', '>= 4.9.4'
gem 'devise-jwt', '~> 0.11.0'
gem 'dry-initializer', '~> 3.1', '>= 3.1.1'
gem 'pg', '~> 1.5', '>= 1.5.6'
gem 'puma', '~> 6.4', '>= 6.4.2'
gem 'rack-cors', '~> 2.0', '>= 2.0.2'
gem 'redis', '~> 5.2'
gem 'ruby-vips', '~> 2.2', '>= 2.2.1'
gem 'sidekiq', '~> 7.3'
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
gem 'warped', '~> 1.0.0'
gem "aws-sdk-s3", "~> 1.122"
gem "blueprinter", "~> 1.0", ">= 1.0.2"
gem "bootsnap", "~> 1.18", ">= 1.18.3", require: false
gem "devise", "~> 4.9", ">= 4.9.4"
gem "devise-jwt", "~> 0.11.0"
gem "dry-initializer", "~> 3.1", ">= 3.1.1"
gem "pg", "~> 1.5", ">= 1.5.6"
gem "puma", "~> 6.4", ">= 6.4.2"
gem "rack-cors", "~> 2.0", ">= 2.0.2"
gem "redis", "~> 5.2"
gem "ruby-vips", "~> 2.2", ">= 2.2.1"
gem "sidekiq", "~> 7.3"
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
gem "warped", "~> 1.0.1"

group :development, :test do
gem 'bullet', '~> 7.1', '>= 7.1.6'
gem 'debug', '~> 1.9', '>= 1.9.2', platforms: %i[mri mingw x64_mingw]
gem 'dotenv-rails', '~> 3.1', '>= 3.1.2'
gem 'factory_bot_rails', '~> 6.4', '>= 6.4.3'
gem 'faker', '~> 3.2', '>= 3.2.3'
gem 'rspec-rails', '~> 6.1', '>= 6.1.3'
gem 'rubocop', '~> 1.64', '>= 1.64.1', require: false
gem 'rubocop-rails', '~> 2.25', '>= 2.25.1', require: false
gem "bullet", "~> 8.0"
gem "debug", "~> 1.9", ">= 1.9.2", platforms: %i[mri mingw x64_mingw]
gem "dotenv-rails", "~> 3.1", ">= 3.1.2"
gem "factory_bot_rails", "~> 6.4", ">= 6.4.3"
gem "faker", "~> 3.2", ">= 3.2.3"
gem "rspec-rails", "~> 6.1", ">= 6.1.3"
end

group :development do
gem 'annotate', '~> 3.2'
gem 'dockerfile-rails', '~> 1.6', '>= 1.6.17'
gem 'letter_opener', '~> 1.10'
gem "annotaterb", "~> 4.13"
gem "dockerfile-rails", "~> 1.6", ">= 1.6.17"
gem "letter_opener", "~> 1.10"
gem "rubocop-rails-omakase", require: false
end

group :test do
gem 'shoulda-matchers', '~> 6.2'
gem 'simplecov', '~> 0.22.0', require: false
gem "shoulda-matchers", "~> 6.2"
gem "simplecov", "~> 0.22.0", require: false
end
Loading