aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-12-31 23:11:28 +0000
committerGitHub2016-12-31 23:11:28 +0000
commit81b40f6564a26814acab5ec9cf353fd677734f5d (patch)
treeb1eb7026a7cb7a1fd38abcf9601a6db3d309e450 /Library/Homebrew
parentad593cf42cfcd4bb795b457d6787cf89382017d8 (diff)
parent9105ccece370f29b245f54247bbf8dff652b452f (diff)
downloadbrew-81b40f6564a26814acab5ec9cf353fd677734f5d.tar.bz2
Merge pull request #1761 from MikeMcQuaid/superenv-fix-stub
ENV/super: fix set_cpu_flags stub.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/.rubocop_todo.yml21
-rw-r--r--Library/Homebrew/extend/ENV/super.rb3
2 files changed, 9 insertions, 15 deletions
diff --git a/Library/Homebrew/.rubocop_todo.yml b/Library/Homebrew/.rubocop_todo.yml
index 3705170fd..c1b2ba6e7 100644
--- a/Library/Homebrew/.rubocop_todo.yml
+++ b/Library/Homebrew/.rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 100`
-# on 2016-10-24 17:14:14 +0200 using RuboCop version 0.44.1.
+# on 2016-12-31 22:41:53 +0000 using RuboCop version 0.45.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
@@ -59,31 +59,24 @@ Lint/ShadowedException:
Exclude:
- 'utils/fork.rb'
-# Offense count: 14
+# Offense count: 13
Metrics/BlockNesting:
Max: 5
# Offense count: 19
# Configuration parameters: CountComments.
Metrics/ModuleLength:
- Max: 367
+ Max: 363
-# Offense count: 2
+# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
-# Offense count: 8
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-# SupportedStyles: percent_q, bare_percent
-Style/BarePercentLiterals:
+# Offense count: 1
+Style/AccessorMethodName:
Exclude:
- - 'dev-cmd/audit.rb'
- - 'test/test_diagnostic.rb'
- - 'test/test_exceptions.rb'
- - 'test/test_patch.rb'
- - 'test/test_string.rb'
+ - 'extend/ENV/super.rb'
# Offense count: 6
Style/ClassVars:
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 7503e8876..39ddb6681 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -328,7 +328,8 @@ module Superenv
# This method does nothing in superenv since there's no custom CFLAGS API
# @private
- def set_cpu_flags; end
+ def set_cpu_flags(*_args)
+ end
end
class Array