Skip to content

Commit b359448

Browse files
committed
Do dogfooding while linting ...
i.e. properly supply regexp_parser HEAD as rubocop dependency while running rubocop against regexp_parser.
1 parent f23c644 commit b359448

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ jobs:
1515
with:
1616
ruby-version: 3.2
1717
bundler-cache: true
18-
# Create a dummy scanner.rb so we don't need Ragel but require statements work
19-
- name: Stub scanner.rb
20-
run: 'echo "class Regexp::Scanner; end" > lib/regexp_parser/scanner.rb'
18+
- name: Install and run ragel
19+
run: |
20+
sudo apt-get install -yqq ragel
21+
bundle exec rake ragel:rb
2122
- name: Run rubocop
2223
run: bundle exec rubocop

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ Lint/DuplicateRegexpCharacterClassElement:
1818
Exclude: ['spec/**/*']
1919
Lint/MixedRegexpCaptureTypes:
2020
Exclude: ['spec/**/*']
21-
Lint/UnescapedBracketInRegexp:
22-
Exclude: ['spec/**/*']

0 commit comments

Comments
 (0)