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

Is there a way to only perform the "Links" and "Scripts" checks and not the "Images" check? #138

Closed
csu opened this issue Jan 7, 2015 · 5 comments · Fixed by #151
Closed

Comments

@csu
Copy link

csu commented Jan 7, 2015

tag: question

@parkr
Copy link
Contributor

parkr commented Jan 7, 2015

@csu You can't use the htmlproof executable, but you can monkey patch in your own script:

require 'html/proofer'

module HTML
  class Proofer
    def get_checks
      %w{Links Scripts}
    end
  end
end 

# Construct path & options, then run
HTML::Proofer.new(path, options).run

@csu
Copy link
Author

csu commented Jan 7, 2015

Just tried it. Totally worked! Thanks!

@csu csu closed this as completed Jan 7, 2015
@gjtorikian
Copy link
Owner

I think this is a good candidate for 2.0 (which I just started this week), so I'll reopen this.

@gjtorikian gjtorikian reopened this Jan 7, 2015
@csu
Copy link
Author

csu commented Jan 7, 2015

Cool! Yeah, I was trying to figure out a way to disable a check through the options and couldn't find anything, so I figured I would ask 😛.

@csu
Copy link
Author

csu commented Jan 29, 2015

🙇 Thanks!

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 a pull request may close this issue.

3 participants