class RuboCop::Markdown::Plugin
A plugin that integrates rubocop-md with RuboCop’s plugin system.
def about
def about LintRoller::About.new( name: "rubocop-md", version: VERSION, homepage: "https://github.com/rubocop/rubocop-md", description: "Run RuboCop against your Markdown files to make sure " \ "that code examples follow style guidelines." ) end
def rules(_context)
def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: Pathname.new(__dir__).join("../../../config/default.yml") ) end
def supported?(context)
def supported?(context) context.engine == :rubocop end