Open ccutrer opened 2 years ago
Ooh yay, YARD isn't abandoned!
I'm a little surprised at the pushback to the assumption that "project dir" == .
. Isn't this how everything else in YARD works, right down to a .yardopts file? Is it even possible to run YARD anywhere except for from the project root? But that's okay... given a .yardopts file, I think it's reasonable to just add an explicit option to specify an explicit config dir.
That said, this is one of my bigger PRs, and it's been a while since I've worked on it. I have several others - most of them I have not even sent as PRs, since I just started pointing my project at my own fork of YARD. If the others go well, I'll start sending more PR, and then consider putting in the time addressing the comments on this one.
I'm a little surprised at the pushback to the assumption that "project dir" == .
The issue isn't the assumption / default behavior, it's the lack of configurability. It's fine to assume the default, but YARD supports configuration of all of the other values, up to and including where the .yardopts
file lives, where the .yardoc
cache lives, and where any outputs go. The main issue here is that this PR has no such escape hatch / configuration.
I'm a little surprised at the pushback to the assumption that "project dir" == .
The issue isn't the assumption / default behavior, it's the lack of configurability. It's fine to assume the default, but YARD supports configuration of all of the other values, up to and including where the
.yardopts
file lives, where the.yardoc
cache lives, and where any outputs go. The main issue here is that this PR has no such escape hatch / configuration.
👍 ah okay, that makes more sense. I'll probably just re-implement as a switch to change the config dir, making sure that switch will be applied if it's in a yardopts file. That will be sufficient for my needs.
so that you can configure a plugin per-project
Completed Tasks
bundle exec rake
locally (if code is attached to PR).