1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

6 commits

Author SHA1 Message Date
Jonathan Hefner
ad25006216 Resolve default annotation tags after config loads
`Rails::SourceAnnotationExtractor::Annotation.tags` may be modified by
app configuration.  Therefore, resolve default annotation tags after
loading the app configuration.

This fixes errors like https://buildkite.com/rails/rails/builds/74268#240d60bc-baa7-4b6e-ad21-b3172095f939/1083-1092
resulting from erikhuda/thor@0222fe52ed.
2021-01-21 14:56:19 -06:00
Rafael Mendonça França
6204651412
Remove deprecated SOURCE_ANNOTATION_DIRECTORIES ENV 2020-10-30 00:26:06 +00:00
Younes SERRAJ
6463cc0573 Adds register_tags 2019-04-12 08:55:42 +02:00
yuuji.yaginuma
1a0bcc3b49 Fix deprecation message for SOURCE_ANNOTATION_DIRECTORIES
Also, added a test that a deprecated message will be output.
2018-07-20 13:19:10 +09:00
Annie-Claude Côté
21f7dadbff Adds support to register directories and extensions to NotesCommand
* Require the application and environnement in the notes command in order to load the config files
* Adds tests for both register_directories and register_extensions added to a config file
2018-07-04 14:30:11 -04:00
Annie-Claude Côté
1996fbe2a3 Adds a Rails::Command for Notes
* It is called with `rails notes`
* It defaults to displaying [OPTIMIZE, FIXME and TODO] annotations
* It accepts custom annotations by using `rails notes -a CUSTOM_ANNOTATION OTHER_ANNOTATION`
* It defaults to look for annotations in [app config db lib test] as dictated by SourceAnnotationExtractor
* It supports ENV["SOURCE_ANNOTATION_DIRECTORIES"] but adds a deprecation warning and recommends using register_directories instead
2018-07-04 14:29:35 -04:00