Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I read your spec file today and saw that
linter
was defined twice in quick succession, and it didn't need to be from what I could tell. I've removed these.At the top of your tests you're also modifying
$:
, the Ruby loadpath. This will addlib
twice to the loadpath (once for each test) and it is unnecessary because RSpec automatically adds thelib
path to your loadpath during the test run.Similarly, the loadpath modification in
lib/statelint.rb
is not required either. Bundler (and RubyGems, iirc) will add thelib
directory to the loadpath for you. You're doubling up here again.I also noticed that you were missing
rspec
from your Gemfile. This should be added to theGemfile
, as its a gem that is required to work on this project. I added it for you.I've also cleaned up a few extra spaces / lines that weren't required.