-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from airbnb/add-static-analysis-rebased
[rubocop] Add static analysis
- Loading branch information
Showing
38 changed files
with
705 additions
and
667 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# REVIEWERS airbnb/security airbnb/rubocop | ||
|
||
inherit_from: | ||
- .rubocop_todo.yml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config --exclude-limit 50000` | ||
# on 2017-06-05 13:58:15 -0700 using RuboCop version 0.41.2. | ||
# 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. | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
Max: 6 | ||
|
||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
Max: 100 | ||
AllowURI: true | ||
|
||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
# Configuration parameters: CountKeywordArgs. | ||
Metrics/ParameterLists: | ||
Enabled: false | ||
Max: 5 | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
Max: 7 | ||
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: nested, compact | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
EnforcedStyle: nested | ||
SupportedStyles: | ||
- nested | ||
- compact | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: format, sprintf, percent | ||
Style/FormatString: | ||
Enabled: false | ||
EnforcedStyle: format | ||
SupportedStyles: | ||
- format | ||
- sprintf | ||
- percent | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. | ||
# NamePrefix: is_, has_, have_ | ||
# NamePrefixBlacklist: is_, has_, have_ | ||
# NameWhitelist: is_a? | ||
Style/PredicateName: | ||
Enabled: false | ||
NamePrefix: | ||
- is_ | ||
- has_ | ||
- have_ | ||
NamePrefixBlacklist: | ||
- is_ | ||
- has_ | ||
- have_ | ||
|
||
|
||
Style/TrailingCommaInLiteral: | ||
Enabled: true | ||
EnforcedStyleForMultiline: consistent_comma |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.