Skip to content

Commit

Permalink
Merge pull request standardrb#1 from koic/tweak_an_example_in_readme
Browse files Browse the repository at this point in the history
Tweak an example in README
  • Loading branch information
searls authored May 9, 2023
2 parents 5be5886 + 0c80c65 commit 40bffa1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ this example plugin for banana-related static analysis:

```ruby
module BananaRoller
class Plugin
class Plugin < LintRoller::Plugin
# `config' is a Hash of options passed to the plugin by the user
def initialize(config = {})
@alternative = config["alternative"] ||= "chocolate"
Expand All @@ -36,11 +36,7 @@ module BananaRoller

# `context' is an instance of LintRoller::Context provided by the runner
def supported?(context)
if context.engine == :rubocop
true
else
false
end
context.engine == :rubocop
end

# `context' is an instance of LintRoller::Context provided by the runner
Expand Down Expand Up @@ -175,4 +171,3 @@ including (but not limited to) one-on-one communications, public posts/comments,
code reviews, pull requests, and GitHub issues. If violations occur, Test Double
will take any action they deem appropriate for the infraction, up to and
including blocking a user from the organization's repositories.

0 comments on commit 40bffa1

Please # to comment.