Instantly share code, notes, and snippets.

@ediathome ediathome/.rubocop.yml
Last active Aug 29, 2015

Embed
What would you like to do?
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