Skip to content

Commit

Permalink
Added README.md file with repository description
Browse files Browse the repository at this point in the history
  • Loading branch information
YauhenDaresay authored and Kiolk committed May 15, 2024
1 parent 558fb9b commit 4220272
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 5 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/create_github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ permissions:
jobs:
build:
name: Create Github Release

runs-on: ubuntu-latest
outputs:
myOutput: ${{ steps.step1.outputs.myOutput }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -23,6 +24,28 @@ jobs:
- name: Setup gpg private key
run: |
echo "${{secrets.GPG_PRIVATE_KEY}}" > maven-secret-key.asc
- uses: ncipollo/release-action@v1
with:
tag: v1.0.4
- name: Generate jar
run: |
./gradlew jar
echo $versionName
- name: Read file and store value in variable
run: |
MY_VERSION=$(grep '^versionName' gradle.properties | cut -d'=' -f2)
echo "Version name from gradle.properties: $MY_VERSION"
echo "##[set-output name=versionName]$MY_VERSION"
shell: bash
- name: Step 1
id: step1
run: echo "::set-output name=myOutput::Hello from Job 1"
# - uses: ncipollo/release-action@v1
# with:
# tag: ${{ steps.build.outputs.versionName }}
# replacesArtifacts: true
# artifacts: build/libs/detekt-rules.jar

job2:
needs: job1
runs-on: ubuntu-latest
steps:
- name: Step 2
run: echo "Output from Job 1 ${{ needs.build.outputs.myOutput }}"
58 changes: 58 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[![](https://jitpack.io/v/Kiolk/Detekt-rules.svg)](https://jitpack.io/#Kiolk/Detekt-rules) ![Maven Central Version](https://img.shields.io/maven-central/v/io.github.kiolk/kiolk-detekt-rules) ![GitHub Release](https://img.shields.io/github/v/release/kiolk/detekt-rules?color=yellow)

# kiolk-detekt-rules

---
Hello folks. This repository contains my own Detekt rules that born in result my work how developer. I am planning to add new rules in the future. You are welcome to contribute!


# How add to the project

---
You have different options how you can add this set of rules to your project. 

## Maven
To use Maven Central repository, you should add link on `mavenCentral()` in repositories block in `build.gradle.kt` file

```kotlin
repositories {
mavenCentral()
}
```
In `dependencies` block in `build.gradle.kt` of module where you will use detekt add reference on library that points on the latest version
```kotlin
detektPlugins("io.github.kiolk:kiolk-detekt-rules:1.0.4")
```

## Jitpack
To use Jitpack, you should add link on jitpack in repositories block in `build.gradle.kt` file

```kotlin
repositories {
maven { url 'https://jitpack.io' }
}
```
In `dependencies` block in `build.gradle.kt` of module where you will use detekt add reference on library that points on the latest version
```kotlin
detektPlugins("com.github.Kiolk:Detekt-rules:v1.0.4")
```

## Local artifacts
If you want to use only locally, you should add path to `jar` file on your local machine. Latest artifacts you can find in [release section](https://github.com/Kiolk/Detekt-rules/releases) of repository.
```kotlin
detektPlugins(files("local_path_to_artifact.jar"))

```

# Configuration

---

# Rules:

---

## UseInvokeForOperator
### Motivation
### Cases
### AutoCorrection
1 change: 0 additions & 1 deletion RELEASE

This file was deleted.

0 comments on commit 4220272

Please sign in to comment.