Ignore the "adding children to leaf" warning for keys that are discovered in source.#228
Conversation
…ered in source. See glebm#158 (comment).
|
@jfly Yes, this looks OK, thank you. Does this work in your case? |
|
Ah, good question, it did not =( I've fixed this in 4f65248, along with a test. With the current version of With my changes (no warning, yay!): |
|
Unfortunately, it looks like rubocop failed in the last build: https://travis-ci.org/glebm/i18n-tasks/jobs/200283068#L512. I could work around this, but I'd like to wait to hear your thoughts on the latest implementation first. If we're going to do it differently, then I don't think it's worth the effort to please rubocop right now. |
|
@jfly This implementation looks fine. 👍 |
|
Ok, sweet! I can easily address the line length issues, but I can't easily fix: How would you like me to address this? Easiest fix is to change |
|
Best just ignore it in that particular case, so that we still get warnings elsewhere: # rubocop:disable Metrics/ParameterLists
def initialize(...)
end
# rubocop:enable Metrics/ParameterLists |
See #158 (comment).
I'm not very familiar with this codebase, but tests still pass!. @glebm, is this close to what you had in mind?