Skip to content

Commit

Permalink
Add StandardRB to CI and fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Dec 19, 2021
1 parent eee71cc commit 7007e19
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run StandardRB
run: bundle exec standardrb
- name: Run RSpec
run: bundle exec rspec
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby_version: 2.6
2 changes: 1 addition & 1 deletion lib/paco/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read(n)
end

def read_all
input[pos..-1]
input[pos..]
end

def eof?
Expand Down
1 change: 1 addition & 0 deletions lib/paco/parse_error.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Paco
class Error < StandardError; end

Expand Down
1 change: 1 addition & 0 deletions spec/paco/combinators/char_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

RSpec.describe Paco::Combinators::Char, :include_combinators do
Expand Down

0 comments on commit 7007e19

Please sign in to comment.