Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
35b15af4
Unverified
Commit
35b15af4
authored
3 years ago
by
Dawid Dziurla
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #11650 from Homebrew/dawidd6-patch-1
components_order: allow ignore_missing_libraries in on_os
parents
d3c7eb31
d50bd605
No related branches found
Branches containing commit
Tags
3.2.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/rubocops/components_order.rb
+10
-1
10 additions, 1 deletion
Library/Homebrew/rubocops/components_order.rb
with
10 additions
and
1 deletion
Library/Homebrew/rubocops/components_order.rb
+
10
−
1
View file @
35b15af4
...
...
@@ -110,7 +110,16 @@ module RuboCop
end
def
check_on_os_block_content
(
component_precedence_list
,
on_os_block
)
on_os_allowed_methods
=
%w[depends_on patch resource deprecate! disable! conflicts_with keg_only]
on_os_allowed_methods
=
%w[
depends_on
patch
resource
deprecate!
disable!
conflicts_with
keg_only
ignore_missing_libraries
]
_
,
offensive_node
=
check_order
(
component_precedence_list
,
on_os_block
.
body
)
component_problem
(
*
offensive_node
)
if
offensive_node
child_nodes
=
on_os_block
.
body
.
begin_type?
?
on_os_block
.
body
.
child_nodes
:
[
on_os_block
.
body
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment