Comments (4)
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.
@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.
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:
Could you please try command codeclimate analyze
on your machine and check how long it take?
from shit-cleaner.
Thanks for the codeclimate analyze
tip. On my machine it took 5m26s.
from shit-cleaner.
Related Issues (13)
- Exception: group with id "AnalyzeMenu" isn't registered; action will be added to the "Other" group HOT 2
- CodeClimate not found HOT 2
- Issue found in RubyMine
- Clojure support
- java.lang.IllegalStateException if there is no icon for the file/type of file
- Findings of CLI not displayed because filtered out by contentRoots HOT 5
- MissingFieldException: Field 'other_locations' when analyze with sonar-java plugin HOT 6
- Allow specifying the configuration format HOT 4
- Kotlinx error: Field 'lines' is required, but it was missing HOT 1
- Notes for Windows 10 with WSL2
- NPE in the background
- Gets stuck right in the beginning at "Analyze Project..."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shit-cleaner.