ctran/annotate_models

Annotation Location for additional_file_patterns

micodel opened this issue · 0 comments

There doesn't appear to be a way to get annotations to appear at the bottom of the file when using automatic annotations for files declared in additional_file_patterns.

Trying to manually annotate with the command and position flag options also appears to not make a difference.

The config settings (before/after) are specific to file types.

Could we add an additional config setting, perhaps position_in_(additional/custom/patterns) ?

I also wouldn't be opposed to having a more global position config setting, which then could be overridden by specific file type configs for those that wish to customize by file type. I assume many of us annotate all of our files in the same location (top/bottom).

Thanks in advance!

Commands

Using rake file + auto annotate + migrate

Version

  • Annotate 3.1.1
  • Rails 6.1.3
  • Ruby 3.0.1