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

Remove duplicate linter definitions #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

radar
Copy link

@radar radar commented Nov 20, 2018

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 add lib twice to the loadpath (once for each test) and it is unnecessary because RSpec automatically adds the lib 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 the lib 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 the Gemfile, 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.

@timbray
Copy link
Contributor

timbray commented May 23, 2019

Hi, sounds like this is something I'd take, but it has conflicts, and we're going to be pushing some other stuff in the very near future. If you could re-spin in a couple of days?

xentek added a commit to groundbreaker/statelint that referenced this pull request Oct 31, 2019
`Map` states allow two optional fields, `ItemsPath` and `MaxConcurrency`, which were being incorrectly
raised as errors when parsing state machines that made use of these fields.

- updates the _j2119_ specification to allow for these fields (fixes
  awslabs#29)
- cleans up warnings when building the gemspec by specifying the version
  of the `j2119` gem in a more constrained manner.
- updates `Gemfile` so that the version of `j2119` agrred with the
  version in the `gemspec`
- removed unnecessary `$LOAD_PATH` manipulation from all ruby files in the
  project (refs awslabs#20)
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 this pull request may close these issues.

2 participants