mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
perf: rubocop/tapioca parser optimizations
This commit is contained in:
parent
b4ae6f5513
commit
b3b6c147fb
@ -18,12 +18,17 @@ inherit_mode:
|
||||
- Exclude
|
||||
|
||||
AllCops:
|
||||
# TODO: This is the default parser in Ruby >= 3.4
|
||||
# https://github.com/rubocop/rubocop-ast/blob/6b9136235219e9448ee4f369e17cf69bcd9db621/lib/rubocop/ast/processed_source.rb#L385
|
||||
ParserEngine: parser_prism
|
||||
TargetRubyVersion: 3.3
|
||||
NewCops: enable
|
||||
Include:
|
||||
- "**/*.rbi"
|
||||
Exclude:
|
||||
- "Homebrew/sorbet/rbi/{dsl,gems}/**/*.rbi"
|
||||
# TODO: remove file and exclusion in Ruby 3.4
|
||||
- "Homebrew/sorbet/rbi/parser*.rbi"
|
||||
- "Homebrew/bin/*"
|
||||
- "Homebrew/vendor/**/*"
|
||||
- "Taps/*/*/vendor/**/*"
|
||||
|
@ -37,4 +37,9 @@ gem:
|
||||
# The tapioca generated gem is not correct or sufficient for pycall
|
||||
# so we need to generate our own:
|
||||
- pycall
|
||||
# Skipping rbi generation for parser results in a 7x performance
|
||||
# improvement in `brew typecheck --update--all`, so we just persist it
|
||||
# instead. (This gem is only needed by rubocop, which is in the process of
|
||||
# migrating to prism.)
|
||||
- parser
|
||||
prerequire: sorbet/tapioca/prerequire.rb
|
||||
|
Loading…
x
Reference in New Issue
Block a user