Skip to content

Commit c2a4354

Browse files
authored
Merge pull request #1 from DeepCodeAI/dev
Dev
2 parents f05afa6 + c9ca90e commit c2a4354

File tree

87 files changed

+9425
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+9425
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@
2121

2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
24+
25+
# Gradle related
26+
.gradle
27+
/build

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [1.0.0] - 2019-05-21
2+
### Added
3+
- First public release

DeveloperGuide.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Build
2+
3+
- Clone this repository: `git clone https://github.com/DeepCodeAI/jetbrains-plugin.git`
4+
- Switch to the dev branch: `git checkout origin/dev`
5+
- Install Java 11 or higher (https://adoptopenjdk.net/) and/or make sure JAVA_HOME is pointing to Java 11 installation path of the JDK;
6+
- Check if java is correctly installed (and your java version) with `java -version` command;
7+
- Place `java-client-{X.X.X}-all.jar` into `..\libs` dir (see [java-client](https://github.com/DeepCodeAI/java-client) repository for instruction how to build it);
8+
- At `build.gradle` file inside `intellij` block: uncomment `version` line and comment `localPath` line (or change `localPath` to pointing your locally installed Intellij Idea `2019.2` version instance);
9+
- Run `source gradlew buildPlugin`
10+
- Look for resulting ZIP file at `..\build\distributions`
11+
12+
### Useful links
13+
- IntelliJ Platform SDK [documentation](https://www.jetbrains.org/intellij/sdk/docs/intro/welcome.html)
14+
- JetBrains Marketplace [documentation](https://plugins.jetbrains.com/docs/marketplace/about-marketplace.html)
15+
- [Community SDK Forum](https://intellij-support.jetbrains.com/hc/en-us/community/topics/200366979-IntelliJ-IDEA-Open-API-and-Plugin-Development)

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
1-
# jetbrains-plugin
2-
Deepcode plugin for JetBrains
1+
# Deepcode plugin for JetBrains IDEs
2+
3+
**The JetBrains IDE extension provided by <a href="https://www.deepcode.ai">DeepCode.ai</a> finds bugs and critical vulnerabilities in your code. We support Java, C/C++, Python, JavaScript and TypeScript.**
4+
5+
# DeepCode extension
6+
7+
Through the extension you can quickly start using DeepCode's code review and analysis within your development workflow. The extension will automatically alert you about critical vulnerabilities you need to solve in your code the moment when you hit Save in your IDE. With DeepCode's superior code review you save time finding and fixing bugs before they go to production.
8+
9+
## DeepCode's AI Engine finds bugs
10+
11+
DeepCode uses symbolic AI to process hundreds of millions of commits in open source software projects and learns how to find serious coding issues. Because the platform determines the intent of the code — and not only the syntax mistakes — DeepCode identifies 10x more critical bugs and security vulnerabilities than other tools.
12+
13+
## Our AI provides explanation behind found bugs
14+
15+
In order to show detailed explanation why something was flagged as bug we introduced a new AI technique called Ontology. With Ontology, we’ve integrated the capability to present logical conclusions within the DeepCode engine.
16+
17+
## Supported languages
18+
19+
Java, C/C++, JavaScript, Python and TypeScript are currently supported.
20+
21+
22+
# Installation
23+
24+
To Install plugin from disk refer to official [Install plugin from disk
25+
](https://www.jetbrains.com/help/idea/2020.1/managing-plugins.html?utm_campaign=IC&utm_content=2020.1&utm_medium=link&utm_source=product#install_plugin_from_disk) guide.
26+
27+
Officially minimal supported version: 2019.2.4
28+
29+
# How to use it?
30+
31+
After required IDE restart all project files analysis should start automatically.
32+
33+
You'll see DeepCode panel at the bottom left Panels row.
34+
35+
There you can review found suggestions, change settings, re-analyse whole project.
36+
37+
Some actions also available at Tools->DeepCode.ai menu.
38+
39+
# Feedback and contact
40+
41+
- In case you need to contact us or provide feedback, we would love to hear from you - [here is how to get in touch with us](https://www.deepcode.ai/feedback).
42+
- If you need to update this file, you can do so by [editing this README.md](https://github.com/DeepCodeAI/jetbrains-plugin/edit/master/README.md).

build.gradle

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
import org.jetbrains.intellij.tasks.RunIdeTask
2+
3+
plugins {
4+
id 'java'
5+
id 'org.jetbrains.intellij' version '0.4.19'
6+
}
7+
8+
//group 'org.example'
9+
10+
version '1.0.0'
11+
sourceCompatibility = 1.8
12+
13+
repositories {
14+
mavenCentral()
15+
}
16+
17+
dependencies {
18+
compile fileTree("$rootProject.projectDir/libs")
19+
20+
testCompile group: 'junit', name: 'junit', version: '4.12'
21+
}
22+
23+
// See https://github.com/JetBrains/gradle-intellij-plugin/
24+
intellij {
25+
pluginName "DeepCode-$project.name"
26+
version '2019.2.4'
27+
// localPath '/Users/arvid/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/201.7223.91/IntelliJ IDEA CE.app/Contents'
28+
// localPath 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\PyCharm-C\\ch-0\\193.5233.109'
29+
// plugins += 'java'
30+
// plugins += 'PsiViewer:201-SNAPSHOT'
31+
plugins += 'PsiViewer:192-SNAPSHOT'
32+
33+
}
34+
patchPluginXml {
35+
sinceBuild 192
36+
untilBuild 202
37+
38+
changeNotes """
39+
1.0.0 - First public release.<br>
40+
"""
41+
}
42+
43+
runIde {
44+
jvmArgs '-Xmx2G'
45+
}
46+
47+
task runIC_201(type: RunIdeTask){
48+
jvmArgs '-Xmx2G'
49+
// ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\IDEA-C\\ch-0\\201.6668.121'
50+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\IDEA-C\\ch-0\\201.7223.91'
51+
}
52+
53+
task runIC_193(type: RunIdeTask){
54+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\IDEA-C\\ch-0\\193.6911.18'
55+
}
56+
57+
task runIU_192(type: RunIdeTask){
58+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\IDEA-U\\ch-1\\192.7142.36'
59+
}
60+
61+
task runPC_193(type: RunIdeTask){
62+
jvmArgs '-Xmx2G'
63+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\PyCharm-C\\ch-0\\193.5233.109'
64+
}
65+
66+
task runCLion_193(type: RunIdeTask){
67+
jvmArgs '-Xmx2G'
68+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\CLion\\ch-0\\193.6494.38'
69+
}
70+
71+
task runCLion_192(type: RunIdeTask){
72+
jvmArgs '-Xmx2G'
73+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\CLion\\ch-2\\192.7142.39'
74+
}
75+
76+
task run_WS_201(type: RunIdeTask){
77+
jvmArgs '-Xmx2G'
78+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\WebStorm\\ch-0\\201.6668.106'
79+
}
80+
81+
task run_WS_192(type: RunIdeTask){
82+
jvmArgs '-Xmx2G'
83+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\WebStorm\\ch-1\\192.7142.35'
84+
}
85+
86+
task run_PC_193(type: RunIdeTask){
87+
jvmArgs '-Xmx2G'
88+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\PyCharm-C\\ch-0\\193.5233.109'
89+
}
90+
91+
task run_AS_40(type: RunIdeTask){
92+
jvmArgs '-Xmx2G'
93+
ideDirectory 'C:\\Users\\artem\\AppData\\Local\\JetBrains\\Toolbox\\apps\\AndroidStudio\\ch-0\\193.6453388'
94+
}
95+
96+
tasks.withType(RunIdeTask).forEach {task -> task.dependsOn(prepareSandbox)}

gradle/wrapper/gradle-wrapper.jar

53.9 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Mar 20 09:57:06 MSK 2020
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
3+
distributionBase=GRADLE_USER_HOME
4+
distributionPath=wrapper/dists
5+
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)