-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Actual Behavior
User is seeing different results in Rubocop run locally (in the CLI) than in Code Climate.
In one particular file,
- Code Climate reports 25 issues, while
- Rubocop locally reports 20 issues.
The following 5 Rubocop issues are reported in Code Climate but not in the CLI.
- Line
violation_json': undefined methodfirst_line' for #<RuboCop::Cop::Lint::Syntax::PseudoSourceRange:0x007f87ff6e58a0> (NoMethodError) #1 – Convention: Missing top-level class documentation comment. - Line Configure custom rubocop.yml file #39 – Convention: Do not use Date.today without zone. Use Time.zone.today instead.
- Line Commit content from cops #57 – Convention: Use find_by instead of dynamic find_by_key.
- Line Fix Bug Risk category #63 – Convention: Use find_by instead of dynamic find_by
- Line Explicitly check RuboCop excludes #64 – Convention: Use find_by instead of dynamic find_by_id
The user is specifying the rubocop-0-48 channel in Code Climate, and using Rubocop 0.48 locally (using codeclimate analyze -e rubocop:rubocop-0-48)
Expected Behavior
User should see same results in Rubocop run locally and in Code Climate.
Steps to reproduce
Metadata
Metadata
Assignees
Labels
No labels