Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"math" |
package com.kyrd.transfer; | |
import io.reactivex.Flowable; | |
import java.math.BigInteger; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; |
# Warn when there is not milestone. | |
has_milestone = github.pr_json["milestone"] != nil | |
warn("This PR does not refer to an existing milestone", sticky: false) unless has_milestone | |
# Warn when there is a big PR | |
warn("This PR is too big. You should divide this PR into smaller PRs.") if git.lines_of_code > 500 | |
# Warn when there is not Github issue. | |
has_github_issue_in_pr_title = github.pr_title.match /(#\d+)/ | |
has_github_issue_in_pr_body = github.pr_body.match /(#\d+)/ |
apply plugin: 'findbugs' | |
dependencies { | |
findbugs "com.google.code.findbugs:findbugs:$FINDBUGS_VERSION" | |
} | |
task findbugs(type: FindBugs) { | |
classes = fileTree("$buildDir/tmp/kotlin-classes") | |
source = fileTree('src/main/java') | |
classpath = files() |
detekt { | |
version = "1.0.0.RC8" | |
profile("main") { | |
input = "$projectDir" | |
config = "$project.rootDir/app/detekt-config.yml" | |
filters = ".*test.*,.*/resources/.*,.*/tmp/.*" | |
output = "${project.buildDir}/reports/detekt" | |
parallel = true | |
disableDefaultRuleSets = false |
configurations { | |
ktlint | |
} | |
dependencies { | |
ktlint "com.github.shyiko:ktlint:$KTLINT_VERSION" | |
} | |
task ktlint(type: JavaExec, group: "verification") { | |
description = "Check Kotlin code style." |
package com.badoo.myapplication | |
import android.content.Intent | |
import android.os.Bundle | |
import android.support.design.widget.FloatingActionButton | |
import android.support.v4.app.NavUtils | |
import android.support.v7.app.AppCompatActivity | |
import android.support.v7.widget.Toolbar | |
import android.view.MenuItem | |
import org.jetbrains.anko.sdk25.coroutines.onClick |
# Project-wide Gradle settings. | |
# IDE (e.g. Android Studio) users: | |
# Gradle settings configured through the IDE *will override* | |
# any settings specified in this file. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# Specifies the JVM arguments used for the daemon process. |
package settings; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.AppCompatEditText; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |