{"action":"created","issue":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/32","repository_url":"https://api.github.com/repos/nevir/rubocop-rspec","labels_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/32/comments","events_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/32/events","html_url":"https://github.com/nevir/rubocop-rspec/issues/32","id":57983922,"number":32,"title":"\"Warning: unrecognized cop RSpec/DescribeClass\" on running `rubocop`","user":{"login":"dleve123","id":1561546,"avatar_url":"https://avatars.githubusercontent.com/u/1561546?v=3","gravatar_id":"","url":"https://api.github.com/users/dleve123","html_url":"https://github.com/dleve123","followers_url":"https://api.github.com/users/dleve123/followers","following_url":"https://api.github.com/users/dleve123/following{/other_user}","gists_url":"https://api.github.com/users/dleve123/gists{/gist_id}","starred_url":"https://api.github.com/users/dleve123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dleve123/subscriptions","organizations_url":"https://api.github.com/users/dleve123/orgs","repos_url":"https://api.github.com/users/dleve123/repos","events_url":"https://api.github.com/users/dleve123/events{/privacy}","received_events_url":"https://api.github.com/users/dleve123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nijikon","id":150547,"avatar_url":"https://avatars.githubusercontent.com/u/150547?v=3","gravatar_id":"","url":"https://api.github.com/users/nijikon","html_url":"https://github.com/nijikon","followers_url":"https://api.github.com/users/nijikon/followers","following_url":"https://api.github.com/users/nijikon/following{/other_user}","gists_url":"https://api.github.com/users/nijikon/gists{/gist_id}","starred_url":"https://api.github.com/users/nijikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijikon/subscriptions","organizations_url":"https://api.github.com/users/nijikon/orgs","repos_url":"https://api.github.com/users/nijikon/repos","events_url":"https://api.github.com/users/nijikon/events{/privacy}","received_events_url":"https://api.github.com/users/nijikon/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-02-17T21:20:16Z","updated_at":"2016-04-18T10:22:57Z","closed_at":null,"body":"Some debugging info:\r\n\r\n```bash\r\n$ cat Gemfile.lock | grep rubocop\r\n    rubocop (0.29.0)\r\n    rubocop-rspec (1.2.1)\r\n  rubocop\r\n  rubocop-rspec\r\n```\r\n\r\n```yml\r\n$ cat .rubocop.yml \r\nrequire: rubocop-rspec\r\n\r\ninherit_from: .rubocop_todo.yml\r\n\r\nAllCops:\r\n  RunRailsCops: true\r\n  Exclude:\r\n    - 'bin/**/*'\r\n    - 'vendor/**/*'\r\n    - 'app/controllers/resource_sites_controller.rb'\r\nDocumentation:\r\n  Enabled: false\r\n```\r\n\r\n```yml\r\n$ cat .rubocop_todo.yml\r\n# This configuration was generated by `rubocop --auto-gen-config`\r\n# on 2015-02-12 16:50:06 -0500 using RuboCop version 0.29.0.\r\n# The point is for the user to remove these configuration records\r\n# one by one as the offenses are removed from the code base.\r\n# Note that changes in the inspected code, or installation of new\r\n# versions of RuboCop, may require this file to be generated again.\r\n\r\n# Offense count: 16\r\n# Configuration parameters: AllowSafeAssignment.\r\nLint/AssignmentInCondition:\r\n  Enabled: false\r\n\r\n# Offense count: 5\r\nLint/Debugger:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Configuration parameters: AlignWith, SupportedStyles.\r\nLint/DefEndAlignment:\r\n  Enabled: false\r\n\r\n# Offense count: 4\r\n# Configuration parameters: AlignWith, SupportedStyles.\r\nLint/EndAlignment:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nLint/Eval:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nLint/HandleExceptions:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\nLint/ParenthesesAsGroupedExpression:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nLint/RescueException:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nLint/ShadowingOuterLocalVariable:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nLint/UselessAccessModifier:\r\n  Enabled: false\r\n\r\n# Offense count: 23\r\nLint/UselessAssignment:\r\n  Enabled: false\r\n\r\n# Offense count: 45\r\nMetrics/AbcSize:\r\n  Max: 87\r\n\r\n# Offense count: 9\r\n# Configuration parameters: CountComments.\r\nMetrics/ClassLength:\r\n  Max: 210\r\n\r\n# Offense count: 7\r\nMetrics/CyclomaticComplexity:\r\n  Max: 9\r\n\r\n# Offense count: 1809\r\n# Configuration parameters: AllowURI, URISchemes.\r\nMetrics/LineLength:\r\n  Max: 301\r\n\r\n# Offense count: 40\r\n# Configuration parameters: CountComments.\r\nMetrics/MethodLength:\r\n  Max: 97\r\n\r\n# Offense count: 1\r\nMetrics/PerceivedComplexity:\r\n  Max: 9\r\n\r\n# Offense count: 5\r\nRSpec/DescribeClass:\r\n  Enabled: false\r\n\r\n# Offense count: 109\r\nRSpec/DescribedClass:\r\n  Enabled: false\r\n\r\n# Offense count: 211\r\n# Configuration parameters: CustomTransform, IgnoredWords.\r\nRSpec/ExampleWording:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\n# Configuration parameters: CustomTransform.\r\nRSpec/FilePath:\r\n  Enabled: false\r\n\r\n# Offense count: 15\r\nRSpec/InstanceVariable:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nRSpec/MultipleDescribes:\r\n  Enabled: false\r\n\r\n# Offense count: 10\r\n# Configuration parameters: Include.\r\nRails/HasAndBelongsToMany:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\n# Configuration parameters: Include.\r\nRails/Output:\r\n  Enabled: false\r\n\r\n# Offense count: 3\r\n# Configuration parameters: Include.\r\nRails/Validation:\r\n  Enabled: false\r\n\r\n# Offense count: 11\r\nStyle/AccessorMethodName:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.\r\nStyle/AlignHash:\r\n  Enabled: false\r\n\r\n# Offense count: 3\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: EnforcedStyle, SupportedStyles.\r\nStyle/AlignParameters:\r\n  Enabled: false\r\n\r\n# Offense count: 8\r\n# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.\r\nStyle/CaseIndentation:\r\n  Enabled: false\r\n\r\n# Offense count: 13\r\n# Configuration parameters: EnforcedStyle, SupportedStyles.\r\nStyle/ClassAndModuleChildren:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\nStyle/EachWithObject:\r\n  Enabled: false\r\n\r\n# Offense count: 3\r\nStyle/EmptyElse:\r\n  Enabled: false\r\n\r\n# Offense count: 7\r\n# Configuration parameters: AllowedVariables.\r\nStyle/GlobalVars:\r\n  Enabled: false\r\n\r\n# Offense count: 63\r\n# Configuration parameters: MinBodyLength.\r\nStyle/GuardClause:\r\n  Enabled: false\r\n\r\n# Offense count: 16\r\n# Configuration parameters: MaxLineLength.\r\nStyle/IfUnlessModifier:\r\n  Enabled: false\r\n\r\n# Offense count: 13\r\n# Cop supports --auto-correct.\r\nStyle/Lambda:\r\n  Enabled: false\r\n\r\n# Offense count: 3\r\n# Cop supports --auto-correct.\r\nStyle/LineEndConcatenation:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: EnforcedStyle, SupportedStyles.\r\nStyle/MultilineOperationIndentation:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\nStyle/MultilineTernaryOperator:\r\n  Enabled: false\r\n\r\n# Offense count: 4\r\n# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.\r\nStyle/Next:\r\n  Enabled: false\r\n\r\n# Offense count: 8\r\n# Configuration parameters: NamePrefix, NamePrefixBlacklist.\r\nStyle/PredicateName:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Configuration parameters: EnforcedStyle, SupportedStyles.\r\nStyle/RaiseArgs:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Configuration parameters: MaxSlashes.\r\nStyle/RegexpLiteral:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Cop supports --auto-correct.\r\nStyle/SelfAssignment:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: EnforcedStyle, SupportedStyles.\r\nStyle/SignalException:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\n# Configuration parameters: Methods.\r\nStyle/SingleLineBlockParams:\r\n  Enabled: false\r\n\r\n# Offense count: 3\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: IgnoredMethods.\r\nStyle/SymbolProc:\r\n  Enabled: false\r\n\r\n# Offense count: 5\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.\r\nStyle/TrivialAccessors:\r\n  Enabled: false\r\n\r\n# Offense count: 1\r\nStyle/UnlessElse:\r\n  Enabled: false\r\n\r\n# Offense count: 3\r\n# Configuration parameters: EnforcedStyle, SupportedStyles.\r\nStyle/VariableName:\r\n  Enabled: false\r\n\r\n# Offense count: 2\r\n# Cop supports --auto-correct.\r\n# Configuration parameters: WordRegex.\r\nStyle/WordArray:\r\n  MinSize: 5\r\n```\r\n\r\nLooks like the `rubocop-rspec` cops are successfully being ignored (commenting out the disabling of them causes cop failures), so the warning is very odd.\r\n\r\n`RSpec/DescribeClass` is failing because it is the first `rubocop-rspec` being encountered. In other words, if I reordered the declarations of `rubocop-rspec`'s cops in the TODO file, the very first `rubocop-rspec` cop will appear in the warning.\r\n\r\nPlease let me know if more information is needed!"},"comment":{"url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/comments/211315789","html_url":"https://github.com/nevir/rubocop-rspec/issues/32#issuecomment-211315789","issue_url":"https://api.github.com/repos/nevir/rubocop-rspec/issues/32","id":211315789,"user":{"login":"kowal","id":10665,"avatar_url":"https://avatars.githubusercontent.com/u/10665?v=3","gravatar_id":"","url":"https://api.github.com/users/kowal","html_url":"https://github.com/kowal","followers_url":"https://api.github.com/users/kowal/followers","following_url":"https://api.github.com/users/kowal/following{/other_user}","gists_url":"https://api.github.com/users/kowal/gists{/gist_id}","starred_url":"https://api.github.com/users/kowal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kowal/subscriptions","organizations_url":"https://api.github.com/users/kowal/orgs","repos_url":"https://api.github.com/users/kowal/repos","events_url":"https://api.github.com/users/kowal/events{/privacy}","received_events_url":"https://api.github.com/users/kowal/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T10:22:57Z","updated_at":"2016-04-18T10:22:57Z","body":"@nijikon we're still seeing warning\r\n```\r\nWarning: unrecognized cop Rspec/DescribeClass found in .../.rubocop.yml\r\n```\r\nWith following entry in rubocop.yml:\r\n```\r\nRspec/DescribeClass:\r\n  Enabled: false\r\n```\r\n\r\nrubocop-rspec (1.4.0)\r\nrubocop (0.33.0)"}}