Skip to content

Instantly share code, notes, and snippets.

@ediathome
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ediathome/c1ad599f22367e1f3503 to your computer and use it in GitHub Desktop.
Save ediathome/c1ad599f22367e1f3503 to your computer and use it in GitHub Desktop.
Example rubocop config file for usage with Rubymotion
#
# Custom .rubocop.yml file for use with Rubymotion projects
# based on this blog post:
# http://qiita.com/watson1978/items/debafdfc49511fb173e9
#
AllCops:
Exclude:
- '**/Rakefile' # exclude the Rakefile
# Disable to check whether method name use camel case
# in order to allow ObjectiveC method overwrites
MethodName:
Enabled: false
# disable to check whether lines are less than 80 characters.
Metrics/LineLength:
Enabled: false
# disable ABCSize metric
Metrics/AbcSize:
Enabled: false
# Change maximum method length to 25
Metrics/MethodLength:
Enabled: true
Max: 25
# Disable UnusedMethodArgument cop which wrongly
# reports cocoa methods with named arguments like
# def outlineView(_outlineView, viewForTableColumn:table_column, item:item)
Lint/UnusedMethodArgument:
Enabled: false
# same as UnusedBlockArgument but for blocks
Lint/UnusedBlockArgument:
Enabled: true
# Change this to false to not check for duplicate methods
Lint/DuplicateMethods:
Enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment