Last active
August 29, 2015 14:19
-
-
Save ediathome/c1ad599f22367e1f3503 to your computer and use it in GitHub Desktop.
Example rubocop config file for usage with Rubymotion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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