Skip to content

Commit

Permalink
Added experimental/indent rule (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Shyiko committed Mar 4, 2019
1 parent 87f434f commit b550d18
Show file tree
Hide file tree
Showing 38 changed files with 2,050 additions and 0 deletions.
100 changes: 100 additions & 0 deletions ktlint-ruleset-experimental/pom.xml
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.github.shyiko.ktlint</groupId>
<artifactId>pom</artifactId>
<version>0.0.0-SNAPSHOT</version>
</parent>

<artifactId>ktlint-ruleset-experimental</artifactId>

<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.shyiko.ktlint</groupId>
<artifactId>ktlint-core</artifactId>
<version>0.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.shyiko.ktlint</groupId>
<artifactId>ktlint-test</artifactId>
<version>0.0.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
</build>

<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>deploy</name>
<value>maven-central</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
@@ -0,0 +1,12 @@
package com.github.shyiko.ktlint.ruleset.experimental

import com.github.shyiko.ktlint.core.RuleSet
import com.github.shyiko.ktlint.core.RuleSetProvider

class ExperimentalRuleSetProvider : RuleSetProvider {

override fun get(): RuleSet = RuleSet(
"experimental",
IndentationRule()
)
}

0 comments on commit b550d18

Please sign in to comment.