codeclimate / codeclimate-eslint

Code Climate Engine for ESLint
MIT License
95 stars 93 forks source link

Error on Analysis Configuration .codeclimate.yml #585

Open Adebesin-Cell opened 1 year ago

Adebesin-Cell commented 1 year ago

Bug Template

Actual Behavior

We are left with only one error with eslint-7 after the support recommendation through mail.

CleanShot 2023-02-08 at 19 06 06@2x

So we are using eslint-plugin-unused-imports plugin for checking unused imports which i believe is not yet supported on code climate.

CleanShot 2023-02-08 at 19 07 22@2x

They are only checking with specific es lint versions and only with few subset of available eslint plugins

CleanShot 2023-02-08 at 19 05 53@2x

We checked the github repo from code climate but not able to find the plugin in their package json - https://github.com/codeclimate/codeclimate-eslint/blob/channel/eslint-7/package.json

CleanShot 2023-02-08 at 19 07 06@2x

Expected Behavior

Successful github checks

Steps to reproduce

version: '2' # required to adjust maintainability checks

checks:
  argument-count:
    enabled: true
    config:
      threshold: 4
  complex-logic:
    enabled: true
    config:
      threshold: 4
  file-lines:
    enabled: true
    config:
      threshold: 250
  method-complexity:
    enabled: true
    config:
      threshold: 5
  method-count:
    enabled: true
    config:
      threshold: 20
  method-lines:
    enabled: true
    config:
      threshold: 25
  nested-control-flow:
    enabled: true
    config:
      threshold: 4
  return-statements:
    enabled: true
    config:
      threshold: 4
  similar-code:
    enabled: true
    config:
      threshold: 30
  identical-code:
    enabled: true
    config:
      threshold: 50

plugins:
  eslint:
    enabled: true
    channel: 'eslint-7'

exclude_patterns:
  - 'config/'
  - 'db/'
  - 'dist/'
  - 'features/'
  - '**/node_modules/'
  - 'script/'
  - '**/spec/'
  - '**/test/'
  - '**/tests/'
  - 'Tests/'
  - '**/vendor/'
  - '**/*_test.go'
  - '**/*.d.ts'

Relevant links

https://codeclimate.com/github/EveripediaNetwork/ep-ui/pull/1137