|
| 1 | +# This configuration was generated by |
| 2 | +# `rubocop --auto-gen-config` |
| 3 | +# on 2018-08-05 17:42:25 +0200 using RuboCop version 0.58.2. |
| 4 | +# The point is for the user to remove these configuration records |
| 5 | +# one by one as the offenses are removed from the code base. |
| 6 | +# Note that changes in the inspected code, or installation of new |
| 7 | +# versions of RuboCop, may require this file to be generated again. |
| 8 | + |
| 9 | +# Offense count: 9 |
| 10 | +# Cop supports --auto-correct. |
| 11 | +# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity. |
| 12 | +# SupportedStylesAlignWith: keyword, variable, start_of_line |
| 13 | +Layout/EndAlignment: |
| 14 | + Exclude: |
| 15 | + - 'app/controllers/api/v0/articles_controller.rb' |
| 16 | + - 'app/controllers/articles_controller.rb' |
| 17 | + - 'app/controllers/chat_channels_controller.rb' |
| 18 | + - 'app/controllers/image_uploads_controller.rb' |
| 19 | + - 'app/helpers/application_helper.rb' |
| 20 | + - 'app/models/user.rb' |
| 21 | + - 'app/services/article_api_index_service.rb' |
| 22 | + |
| 23 | +# Offense count: 1 |
| 24 | +# Cop supports --auto-correct. |
| 25 | +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. |
| 26 | +# SupportedStyles: space, no_space, compact |
| 27 | +# SupportedStylesForEmptyBrackets: space, no_space |
| 28 | +Layout/SpaceInsideArrayLiteralBrackets: |
| 29 | + Exclude: |
| 30 | + - 'app/dashboards/email_message_dashboard.rb' |
| 31 | + |
| 32 | +# Offense count: 3 |
| 33 | +Lint/AmbiguousBlockAssociation: |
| 34 | + Exclude: |
| 35 | + - 'app/controllers/podcast_episodes_controller.rb' |
| 36 | + - 'app/views/api/v0/articles/show.json.jbuilder' |
| 37 | + |
| 38 | +# Offense count: 4 |
| 39 | +Lint/IneffectiveAccessModifier: |
| 40 | + Exclude: |
| 41 | + - 'app/black_box/black_box.rb' |
| 42 | + - 'app/models/tweet.rb' |
| 43 | + |
| 44 | +# Offense count: 3 |
| 45 | +Lint/ShadowingOuterLocalVariable: |
| 46 | + Exclude: |
| 47 | + - 'app/views/api/v0/comments/index.json.jbuilder' |
| 48 | + - 'app/views/api/v0/comments/show.json.jbuilder' |
| 49 | + |
| 50 | +# Offense count: 2 |
| 51 | +# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. |
| 52 | +Lint/UselessAccessModifier: |
| 53 | + Exclude: |
| 54 | + - 'app/black_box/black_box.rb' |
| 55 | + - 'app/models/tweet.rb' |
| 56 | + |
| 57 | +# Offense count: 10 |
| 58 | +Lint/UselessAssignment: |
| 59 | + Exclude: |
| 60 | + - 'app/controllers/stories_controller.rb' |
| 61 | + - 'app/labor/cache_buster.rb' |
| 62 | + - 'app/labor/markdown_parser.rb' |
| 63 | + - 'app/labor/rate_limit_checker.rb' |
| 64 | + - 'app/liquid_tags/comment_tag.rb' |
| 65 | + - 'app/liquid_tags/glitch_tag.rb' |
| 66 | + - 'app/liquid_tags/tweet_tag.rb' |
| 67 | + |
| 68 | +# Offense count: 8 |
| 69 | +# Configuration parameters: CountComments, ExcludedMethods. |
| 70 | +# ExcludedMethods: refine |
| 71 | +Metrics/BlockLength: |
| 72 | + Max: 68 |
| 73 | + |
| 74 | +# Offense count: 132 |
| 75 | +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. |
| 76 | +# URISchemes: http, https |
| 77 | +Metrics/LineLength: |
| 78 | + Max: 274 |
| 79 | + |
| 80 | +# Offense count: 14 |
| 81 | +Metrics/PerceivedComplexity: |
| 82 | + Max: 16 |
| 83 | + |
| 84 | +# Offense count: 1 |
| 85 | +# Configuration parameters: EnforcedStyleForLeadingUnderscores. |
| 86 | +# SupportedStylesForLeadingUnderscores: disallowed, required, optional |
| 87 | +Naming/MemoizedInstanceVariableName: |
| 88 | + Exclude: |
| 89 | + - 'app/controllers/admin/application_controller.rb' |
| 90 | + |
| 91 | +# Offense count: 2 |
| 92 | +# Configuration parameters: EnforcedStyle. |
| 93 | +# SupportedStyles: snake_case, camelCase |
| 94 | +Naming/MethodName: |
| 95 | + Exclude: |
| 96 | + - 'app/helpers/articles_helper.rb' |
| 97 | + - 'app/liquid_tags/podcast_tag.rb' |
| 98 | + |
| 99 | +# Offense count: 4 |
| 100 | +# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros. |
| 101 | +# NamePrefix: is_, has_, have_ |
| 102 | +# NamePrefixBlacklist: is_, has_, have_ |
| 103 | +# NameWhitelist: is_a? |
| 104 | +# MethodDefinitionMacros: define_method, define_singleton_method |
| 105 | +Naming/PredicateName: |
| 106 | + Exclude: |
| 107 | + - 'spec/**/*' |
| 108 | + - 'app/controllers/application_controller.rb' |
| 109 | + - 'app/helpers/articles_helper.rb' |
| 110 | + - 'app/models/user.rb' |
| 111 | + |
| 112 | +# Offense count: 9 |
| 113 | +# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. |
| 114 | +# AllowedNames: io, id, to, by, on, in, at, ip |
| 115 | +Naming/UncommunicativeMethodParamName: |
| 116 | + Exclude: |
| 117 | + - 'app/controllers/followed_articles_controller.rb' |
| 118 | + - 'app/controllers/internal/dogfood_controller.rb' |
| 119 | + - 'app/labor/mailchimp_bot.rb' |
| 120 | + - 'app/labor/podcast_feed.rb' |
| 121 | + - 'app/models/chat_channel.rb' |
| 122 | + - 'app/models/tweet.rb' |
| 123 | + |
| 124 | +# Offense count: 2 |
| 125 | +# Configuration parameters: EnforcedStyle. |
| 126 | +# SupportedStyles: snake_case, camelCase |
| 127 | +Naming/VariableName: |
| 128 | + Exclude: |
| 129 | + - 'app/liquid_tags/github_tag/github_issue_tag.rb' |
| 130 | + |
| 131 | +# Offense count: 3 |
| 132 | +Security/Open: |
| 133 | + Exclude: |
| 134 | + - 'app/labor/podcast_feed.rb' |
| 135 | + - 'app/labor/rss_reader.rb' |
| 136 | + |
| 137 | +# Offense count: 14 |
| 138 | +# Cop supports --auto-correct. |
| 139 | +# Configuration parameters: AutoCorrect, EnforcedStyle. |
| 140 | +# SupportedStyles: nested, compact |
| 141 | +Style/ClassAndModuleChildren: |
| 142 | + Exclude: |
| 143 | + - 'app/controllers/api/v0/api_controller.rb' |
| 144 | + - 'app/controllers/internal/application_controller.rb' |
| 145 | + - 'app/controllers/internal/articles_controller.rb' |
| 146 | + - 'app/controllers/internal/broadcasts_controller.rb' |
| 147 | + - 'app/controllers/internal/buffer_updates_controller.rb' |
| 148 | + - 'app/controllers/internal/comments_controller.rb' |
| 149 | + - 'app/controllers/internal/dogfood_controller.rb' |
| 150 | + - 'app/controllers/internal/feedback_messages_controller.rb' |
| 151 | + - 'app/controllers/internal/members_controller.rb' |
| 152 | + - 'app/controllers/internal/tags_controller.rb' |
| 153 | + - 'app/controllers/internal/users_controller.rb' |
| 154 | + - 'app/controllers/internal/welcome_controller.rb' |
| 155 | + - 'app/controllers/notifications/counts_controller.rb' |
| 156 | + - 'app/controllers/notifications/reads_controller.rb' |
| 157 | + |
| 158 | +# Offense count: 1 |
| 159 | +Style/DateTime: |
| 160 | + Exclude: |
| 161 | + - 'app/controllers/comments_controller.rb' |
| 162 | + |
| 163 | +# Offense count: 1 |
| 164 | +Style/EvalWithLocation: |
| 165 | + Exclude: |
| 166 | + - 'app/controllers/omniauth_callbacks_controller.rb' |
| 167 | + |
| 168 | +# Offense count: 1 |
| 169 | +# Configuration parameters: EnforcedStyle. |
| 170 | +# SupportedStyles: each, for |
| 171 | +Style/For: |
| 172 | + Exclude: |
| 173 | + - 'app/views/articles/feed.rss.builder' |
| 174 | + |
| 175 | +# Offense count: 1 |
| 176 | +Style/IfInsideElse: |
| 177 | + Exclude: |
| 178 | + - 'app/models/comment.rb' |
| 179 | + |
| 180 | +# Offense count: 3 |
| 181 | +Style/MixinUsage: |
| 182 | + Exclude: |
| 183 | + - 'app/models/organization.rb' |
| 184 | + - 'app/models/podcast_episode.rb' |
| 185 | + |
| 186 | +# Offense count: 1 |
| 187 | +# Cop supports --auto-correct. |
| 188 | +# Configuration parameters: AutoCorrect, EnforcedStyle. |
| 189 | +# SupportedStyles: predicate, comparison |
| 190 | +Style/NumericPredicate: |
| 191 | + Exclude: |
| 192 | + - 'spec/**/*' |
| 193 | + - 'app/liquid_tags/github_tag/github_issue_tag.rb' |
| 194 | + |
| 195 | +# Offense count: 3 |
| 196 | +# Cop supports --auto-correct. |
| 197 | +# Configuration parameters: AllowAsExpressionSeparator. |
| 198 | +Style/Semicolon: |
| 199 | + Exclude: |
| 200 | + - 'app/controllers/stories_controller.rb' |
0 commit comments