Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix directory argument with --git-recurse #394

Merged
merged 1 commit into from
Nov 16, 2021
Merged

Fix directory argument with --git-recurse #394

merged 1 commit into from
Nov 16, 2021

Conversation

EricFromCanada
Copy link
Contributor
@EricFromCanada EricFromCanada commented Nov 16, 2021

Description

Need to include the directory when passing back the list of Markdown files.

Before:

$ mdl -v -g Homebrew
Loaded config from /usr/local/Homebrew/.mdlrc
Checking README.md...
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/lib/ruby/gems/2.6.0/gems/mdl-0.11.0/lib/mdl/doc.rb:50:in `read': No such file or directory @ rb_sysopen - README.md (Errno::ENOENT)

After:

$ mdl -v -g Homebrew
Loaded config from /usr/local/Homebrew/.mdlrc
Checking Homebrew/README.md...
Processing rule MD001
Processing rule MD002
...

Related Issues

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (non-breaking change that does not add functionality but updates documentation)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • Wrote good commit messages
  • Feature branch is up-to-date with master, if not - rebase it
  • Added tests for all new/changed functionality, including tests for positive and negative scenarios
  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences

Copy link
Member
@jaymzh jaymzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks! Small nit.

lib/mdl.rb Outdated Show resolved Hide resolved
Need to include the directory when passing back the list of Markdown files.

Signed-off-by: EricFromCanada <enk3@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants