-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Rule 1.3: package name is in lower case and separated by dots, code developed internally in Huawei should start with com.huawei, and the package name is allowed to have numbers
- Loading branch information
0 parents
commit 01ebb85
Showing
16 changed files
with
1,607 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* text=auto | ||
*.bat eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Bug report | ||
about: Report ktlint bug | ||
|
||
--- | ||
|
||
The bug you're experiencing might have already be reported! | ||
Please search in the [issues](https://github.com/pinterest/ktlint/issues) before creating one. | ||
|
||
## Expected Behavior | ||
<!---Tell us what should happen --> | ||
<!-- If possible provide a link to official code style guide --> | ||
|
||
## Observed Behavior | ||
<!---Tell us what happens instead of the expected behavior --> | ||
|
||
## Steps to Reproduce | ||
<!--- Provide a link to a live example, or an unambiguous set of steps to --> | ||
<!--- reproduce this bug. Include code to reproduce, if relevant --> | ||
|
||
## Your Environment | ||
<!--- Include as many relevant details about the environment you experienced the bug in --> | ||
* Version of ktlint used: | ||
* Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): | ||
* Version of Gradle used (if applicable): | ||
* Operating System and version: | ||
* Link to your project (if it's a public repository): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Kotlin slack ktlint channel | ||
url: https://kotlinlang.slack.com/archives/CKS3XG0LS | ||
about: Please ask and answer questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
target | ||
.gradle | ||
build | ||
!ktlint/src/main/resources/config/.idea | ||
/.idea | ||
*.iml | ||
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
language: java | ||
|
||
matrix: | ||
include: | ||
- dist: trusty | ||
jdk: oraclejdk8 | ||
- dist: xenial | ||
jdk: openjdk11 | ||
|
||
install: true | ||
|
||
script: | ||
- | | ||
if [[ $TRAVIS_REPO_SLUG == "pinterest/ktlint" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then | ||
# Gradle | ||
./gradlew clean uploadArchives --no-daemon --no-parallel | ||
else | ||
# Gradle | ||
./gradlew clean build ktlint | ||
fi | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
|
||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
|
||
env: | ||
global: | ||
- secure: sk+fF6EPGXCy85gm8cdKM0JXy3pMKRZSRaAE/gE+OWir9BjUj1clG3KZw5P/xPudiSMnNIRfluqxkLRCPWpawh/6Ixvs3falZAC9JVBu6OyHSjTXDp3zIr4Mv3NNMEefr775iRPzuf6iBUTTP2bZQ2P62CE3HOd83lB8Jm1QcDE7LIscMn96DGZt8BDi88fEjfSDCMcw87w+5zOM5prUoOlPp9dyxnskw9ncwmFLLrsJJJmcC0bvrTiE6Z1CduwNDOwYD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