Skip to content

Commit

Permalink
Add Annotaterb (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala authored Jan 26, 2025
1 parent 29ba837 commit ede7f7e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .annotaterb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
:active_admin: false
:additional_file_patterns: []
:classes_default_to_s: []
:classified_sort: true
:command:
:debug: false
:exclude_controllers: true
:exclude_factories: false
:exclude_fixtures: false
:exclude_helpers: true
:exclude_scaffolds: true
:exclude_serializers: false
:exclude_sti_subclasses: true
:exclude_tests: true
:force: false
:format_markdown: false
:format_rdoc: false
:format_yard: false
:frozen: false
:hide_default_column_types: 'json,jsonb,hstore'
:hide_limit_column_types: 'integer,bigint,boolean'
:ignore_columns:
:ignore_model_sub_dir: false
:ignore_routes:
:ignore_unknown_models: false
:include_version: false
:model_dir:
- app/models
:models: true
:position: before
:position_in_additional_file_patterns: before
:position_in_class: before
:position_in_factory: before
:position_in_fixture: before
:position_in_routes: before
:position_in_serializer: before
:position_in_test: before
:require: []
:root_dir:
- ''
:routes: false
:show_check_constraints: false
:show_complete_foreign_keys: false
:show_foreign_keys: true
:show_indexes: true
:simple_indexes: true
:skip_on_db_migrate: false
:sort: false
:target_action: :do_annotations
:timestamp: false
:trace: false
:with_column_comments: true
:with_comment: true
:with_table_comments: true
:wrapper:
:wrapper_close:
:wrapper_open:
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ group :development, :test do
end

group :development do
gem 'annotaterb', require: false
gem 'rack-mini-profiler'
gem 'web-console'
end
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ GEM
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
annotaterb (4.13.0)
ast (2.4.2)
base64 (0.2.0)
benchmark (0.4.0)
Expand Down Expand Up @@ -377,6 +378,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
annotaterb
bootsnap
brakeman
byebug
Expand Down
2 changes: 1 addition & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions lib/tasks/annotate_rb.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# This rake task was added by annotate_rb gem.

# Can set `ANNOTATERB_SKIP_ON_DB_TASKS` to be anything to skip this
if Rails.env.development? && ENV['ANNOTATERB_SKIP_ON_DB_TASKS'].nil?
require 'annotate_rb'

AnnotateRb::Core.load_rake_tasks
end

0 comments on commit ede7f7e

Please sign in to comment.