Skip to content

Commit

Permalink
Add detekt and ktlint, and format accordingly; Fix maven plugin setup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvisser committed Jun 13, 2023
1 parent 84f9d45 commit 4539678
Show file tree
Hide file tree
Showing 36 changed files with 1,186 additions and 254 deletions.
14 changes: 8 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_size = 4
indent_style = space
max_line_length = 200
max_line_length = 120

[{*.yml, *.yaml, *.feature, *.json}]
[{*.yml,*.yaml,*.feature,*.json}]
indent_size = 2
ij_yaml_keep_indents_on_empty_lines = false
ij_yaml_keep_line_breaks = true

[{*.java, *.kt}]
ij_java_imports_layout = *,|,javax.**,java.**,|,$*
[{*.java,*.kt}]
ij_java_imports_layout = *, |, javax.**, java.**, |, $*
ij_java_names_count_to_use_import_on_demand = 999
ij_java_class_count_to_use_import_on_demand = 999
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
ij_kotlin_name_count_to_use_star_import = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ nb-configuration.xml

# Local environment
.env
.mvn
1 change: 1 addition & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--add-opens java.base/java.lang=ALL-UNNAMED
2 changes: 2 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-Dorg.slf4j.simpleLogger.showDateTime=true
-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS
14 changes: 14 additions & 0 deletions dependency-update-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" comparisonMethod="maven"
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 https://www.mojohaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
<ignoreVersions>
<!-- Ignore Alpha's, Beta's, release candidates and milestones -->
<ignoreVersion type="regex">(?i).*[-_\.](alpha|b|beta|preview|-B|ce|ccs|cp|cr|pr|u|rc|m|MR|EA)[-_\.]?[0-9]*</ignoreVersion>
<ignoreVersion type="regex">(?i).*(redhat|does-not-exist|android|jboss|fixed|dev|jre\d+).*</ignoreVersion>
<!-- from static-version-broker -->
<ignoreVersion type="regex">(?i).*(\d{8})(\.(\d+))?</ignoreVersion>
<!-- from user-profile-event-consumer -->
<ignoreVersion type="regex">(?i).*\d+\.\d+\.\d+.\d{8}</ignoreVersion>
</ignoreVersions>
</ruleset>
Loading

0 comments on commit 4539678

Please sign in to comment.