Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SourceParser should only sort file list on globs #572

Closed
lsegal opened this Issue · 0 comments

1 participant

@lsegal
Owner

When the SourceParser class currently parses a list of files it does so by sorting the list by path length, guaranteeing that "lib/foo.rb" is parsed before "lib/foo/bar.rb" (which might rely on the "parent" file). However, because the parser sorts all files, it is currently not possible to manually override this sorting order. For instance, it should be possible to do the following:

$ yard doc lib/foo/bar.rb lib/**/*.rb

The above should parse "lib/foo/bar.rb" before "lib/foo.rb". This does not currently work. The solution is to only perform sorting on globs, and assume that single files are listed in the exact order which they are presented.

@lsegal lsegal closed this in c6f5253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.