Skip to content

Commit

Permalink
Do dogfooding while linting ...
Browse files Browse the repository at this point in the history
i.e. properly supply regexp_parser HEAD as rubocop dependency while running rubocop against regexp_parser.
  • Loading branch information
jaynetics committed Nov 29, 2024
1 parent f23c644 commit b359448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
with:
ruby-version: 3.2
bundler-cache: true
# Create a dummy scanner.rb so we don't need Ragel but require statements work
- name: Stub scanner.rb
run: 'echo "class Regexp::Scanner; end" > lib/regexp_parser/scanner.rb'
- name: Install and run ragel
run: |
sudo apt-get install -yqq ragel
bundle exec rake ragel:rb
- name: Run rubocop
run: bundle exec rubocop
2 changes: 0 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ Lint/DuplicateRegexpCharacterClassElement:
Exclude: ['spec/**/*']
Lint/MixedRegexpCaptureTypes:
Exclude: ['spec/**/*']
Lint/UnescapedBracketInRegexp:
Exclude: ['spec/**/*']

0 comments on commit b359448

Please sign in to comment.