Skip to content

Commit

Permalink
[RuboCop] Style/AccessorMethodName
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 14, 2014
1 parent d96d8ed commit 58a7b25
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ inherit_from:

#- Xcodeproj ------------------------------------------------------------------

AllCops:
Style/AccessorMethodName:
Exclude:
- spec/fixtures/**/*
- lib/cocoapods-core/vendor/**/*

FileName:
Exclude:
- lib/cocoapods-core.rb
- lib/xcodeproj/project/object/**/*
- lib/xcodeproj/project/object_attributes.rb
- lib/xcodeproj/scheme.rb
13 changes: 4 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-08-14 11:37:25 +0200 using RuboCop version 0.24.1.
# on 2014-08-14 12:00:56 +0200 using RuboCop version 0.24.1.
# 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 8
Style/AccessorMethodName:
Enabled: false

# Offense count: 1
Style/BlockNesting:
Max: 4
Expand All @@ -17,10 +13,10 @@ Style/BlockNesting:
Style/ClassAndModuleCamelCase:
Enabled: false

# Offense count: 10
# Offense count: 9
# Configuration parameters: CountComments.
Style/ClassLength:
Max: 268
Max: 266

# Offense count: 7
Style/CyclomaticComplexity:
Expand All @@ -35,7 +31,7 @@ Style/DotPosition:
Style/DoubleNegation:
Enabled: false

# Offense count: 391
# Offense count: 390
# Configuration parameters: AllowURI.
Style/LineLength:
Max: 186
Expand All @@ -54,4 +50,3 @@ Style/ParameterLists:
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma:
Enabled: false

4 changes: 4 additions & 0 deletions lib/xcodeproj/project/object_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ def attribute(name, klass, default_value = nil)
end
end

# rubocop:disable Style/PredicateName

# Defines a new relationship to a single and synthesises the
# corresponding methods.
#
Expand Down Expand Up @@ -429,6 +431,8 @@ def has_many_references_by_keys(plural_name, classes_by_key)
end
end

# rubocop:enable Style/PredicateName

protected

# Adds an attribute to the list of attributes of the class.
Expand Down

0 comments on commit 58a7b25

Please sign in to comment.