Closed
Description
The annotation still does not append one empty line after the magic comment.
The magic comment is
# frozen_string_literal: true
Looks like it did add an empty line for a new model file. But it eats up the empty line when the model schema is being modified.
Commands
$ rake db:migrate
The annotation options:
task :set_annotation_options do
Annotate.set_defaults(
"position_in_routes" => "before",
"position_in_class" => "before",
"position_in_test" => "before",
"position_in_fixture" => "before",
"position_in_factory" => "before",
"show_indexes" => "true",
"simple_indexes" => "true",
"model_dir" => "app/models",
"include_version" => "false",
"require" => "",
"exclude_tests" => "true",
"exclude_fixtures" => "true",
"exclude_factories" => "false",
"ignore_model_sub_dir" => "false",
"skip_on_db_migrate" => "false",
"format_bare" => "true",
"format_rdoc" => "false",
"format_markdown" => "false",
"sort" => "true",
"force" => "false",
"trace" => "false",
"show_foreign_keys" => "true",
)
end
Version
- annotate version 2.7.4
- rails version 5.2.2
- ruby version 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin16]