Skip to content

Are there any way to call checks from program? #334

@kazuooooo

Description

@kazuooooo

Hi, I'm making rails_best_practices plugin for pre-commit gem.

So, I want to call rails_best_practices checks from program like this code.
https://github.com/jish/pre-commit/blob/master/lib/plugins/pre_commit/checks/rubocop.rb#L32

::RuboCop::CLI.new.run(args) == 0

I check command.rb file
and it looks it can't be called from program.

Are there some way to call from program?
or if it need CLI class, I'm glad to make it :)

thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions