-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Adds support for Kotlin linting. - Updated script to support 2 or 3 digit story numbers. Closes [#64](#64) AC's confirmed: 1. Pre-commit hooks are configured and config is stored in the repo under /.secureli/config when a Kotlin repo is detected. <img width="1071" alt="image" src="https://github.com/slalombuild/secureli/assets/127901972/54dc1a9a-f483-4a77-b082-9b64d6ce1ff0"> <img width="613" alt="image" src="https://github.com/slalombuild/secureli/assets/127901972/a325e2c4-e22c-41fb-a4ed-089b03bb5c5c"> <img width="599" alt="image" src="https://github.com/slalombuild/secureli/assets/127901972/ea3b92aa-9a63-4d40-815e-59cdc51b4a62"> 2. If there are any failing linting issues, per the list above, when a commit is attempted the commit is blocked and an error with details is displayed to the user. <img width="1341" alt="image" src="https://github.com/slalombuild/secureli/assets/127901972/cbde31d4-6c1a-4a11-adda-ebc999d6d28b"> 3. Readme & internal help is updated with supporting language info: (See updated contributing.md file)
- Loading branch information
1 parent
41f89a5
commit 9427cef
Showing
5 changed files
with
9 additions
and
1 deletion.
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
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
1 change: 1 addition & 0 deletions
1
secureli/resources/files/pre-commit/base/kotlin-pre-commit.yaml
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 @@ | ||
repos: |
5 changes: 5 additions & 0 deletions
5
secureli/resources/files/pre-commit/lint/kotlin-pre-commit.yaml
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 @@ | ||
repos: | ||
- repo: https://github.com/quwac/pre-commit-detekt | ||
rev: v1.23.4 | ||
hooks: | ||
- id: detekt |
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
"JavaScript", | ||
"Go", | ||
"Swift", | ||
"Kotlin", | ||
] | ||
|
||
|
||
|