Code Monkey home page Code Monkey logo

Comments (4)

azdanov avatar azdanov commented on May 26, 2024

After the restart, I couldn't reproduce the exception, but the scan seemed to take forever. But the stop button didn't work. I had to do a manual restart of both IDEA and Docker.

Here's the project I was trying to analyze: https://github.com/karpunets/wallet

from shit-cleaner.

nhat-phan avatar nhat-phan commented on May 26, 2024

@azdanov The plugin adds an action "Analyze Code Smells and Duplications" into "Analyze" menu therefore if you are using PHPStorm you will see the null pointer exception and the action will be added to "Other" menu, could you please confirm that? Btw, I'm going to remove it soon.

For the scan take forever problem, may be you have a lot of library's files such as vendor folder (if you are using Laravel framework). Please follow this document to add some ignore path patterns to your code climate engine. In my machine - MacBook 15inch 2018 - it takes ~3 seconds per 1000 line of code.

Sample .codeclimate.yml in my machine (kotlin project):

version: '2'
engines:
  duplication:
    enabled: true
    config:
      languages:
        - kotlin
checks:
  argument-count:
    enabled: true
    config:
      threshold: 8
  complex-logic:
    enabled: true
    config:
      threshold: 4
  file-lines:
    enabled: true
    config:
      threshold: 300
  method-complexity:
    enabled: true
    config:
      threshold: 12
  method-count:
    enabled: true
    config:
      threshold: 30
  method-lines:
    enabled: true
    config:
      threshold: 30
  nested-control-flow:
    enabled: true
    config:
      threshold: 4
  return-statements:
    enabled: true
    config:
      threshold: 5
  similar-code:
    enabled: true
    config:
      threshold: 100
  identical-code:
    enabled: true
    config:
      threshold: 100
exclude_patterns:
  - '**/build/'
  - '**/src/test'
  - '**/src/commonTest'
  - 'foundation/src/commonMain/kotlin/net/ntworld/foundation/FakedData.kt'
  - 'foundation/src/jvmMain/kotlin/net/ntworld/foundation/util/JavaFakerWrapper.kt'

from shit-cleaner.

nhat-phan avatar nhat-phan commented on May 26, 2024

After the restart, I couldn't reproduce the exception, but the scan seemed to take forever. But the stop button didn't work. I had to do a manual restart of both IDEA and Docker.

Here's the project I was trying to analyze: https://github.com/karpunets/wallet

Sorry, I miss this comment. I tried your repo and this is the result on my computer:
Screen Shot 2019-11-16 at 19 48 57

Could you please try command codeclimate analyze on your machine and check how long it take?

from shit-cleaner.

azdanov avatar azdanov commented on May 26, 2024

Thanks for the codeclimate analyze tip. On my machine it took 5m26s.

from shit-cleaner.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.