-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
106 additions
and
15,376 deletions.
There are no files selected for viewing
File renamed without changes.
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,29 @@ | ||
--- | ||
version: "3" | ||
|
||
tasks: | ||
init: | ||
desc: Initialize pre-commit hooks | ||
preconditions: | ||
- sh: "which pre-commit" | ||
msg: "kind {{.PATH_ERROR}}" | ||
cmds: | ||
- pre-commit clean | ||
- pre-commit gc | ||
- task: update | ||
- pre-commit install --install-hooks -t commit-msg | ||
|
||
update: | ||
desc: Update pre-commit hooks | ||
cmds: | ||
- pre-commit autoupdate | ||
|
||
delete: | ||
desc: Delete pre-commit hooks | ||
cmds: | ||
- pre-commit uninstall --hook-type commit-msg | ||
|
||
run: | ||
desc: Run pre-commit hooks | ||
cmds: | ||
- pre-commit run --all-files |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: check-json | ||
- id: trailing-whitespace | ||
- id: double-quote-string-fixer | ||
- id: end-of-file-fixer | ||
- repo: https://github.com/zricethezav/gitleaks | ||
rev: v8.16.3 | ||
hooks: | ||
- id: gitleaks | ||
args: ["--config", ".github/config/.gitleaks.toml", "--verbose"] | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: 3.1.0 | ||
hooks: | ||
- id: commitizen | ||
stages: [commit-msg] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: fix-byte-order-marker | ||
- id: double-quote-string-fixer | ||
- id: debug-statements | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- repo: https://github.com/zricethezav/gitleaks | ||
rev: v8.18.0 | ||
hooks: | ||
- id: gitleaks | ||
args: ["--verbose"] | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: 3.8.2 | ||
hooks: | ||
- id: commitizen | ||
- id: commitizen-branch | ||
stages: [push] | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.5.4 | ||
hooks: | ||
- id: remove-crlf | ||
- id: remove-tabs | ||
- repo: https://github.com/sirosen/fix-smartquotes | ||
rev: 0.2.0 | ||
hooks: | ||
- id: fix-smartquotes |
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 @@ | ||
gitleaks 8.18.0 | ||
task 3.30.0 |
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 |
---|---|---|
@@ -1,21 +1,13 @@ | ||
MIT License | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
|
||
Copyright (c) 2022 Lucca <[email protected]> | ||
Copyright (C) 2023 LPSM Dev <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
0. You just DO WHAT THE FUCK YOU WANT TO. |
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,32 @@ | ||
--- | ||
# Taskfile to be used with `task` binary. | ||
# Usage: | ||
# - Install with `asdf`: `asdf plugin add task` | ||
# - List available tasks with: `task --list` | ||
version: "3" | ||
|
||
vars: | ||
CLEAR: tput reset | ||
PATH_ERROR: is not installed or correctly configured in PATH. | ||
|
||
includes: | ||
precommit: .github/taskfiles/pre-commit.yml | ||
|
||
tasks: | ||
default: | ||
silent: true | ||
aliases: [commands] | ||
cmds: | ||
- task --list | ||
|
||
clear: | ||
cmds: | ||
- sleep 0.1 && {{.CLEAR}} | ||
|
||
gitleaks: | ||
desc: Performs secret-detection in git repo using gitleaks | ||
preconditions: | ||
- sh: "which gitleaks" | ||
msg: "gitleaks {{.PATH_ERROR}}" | ||
cmds: | ||
- gitleaks detect --verbose . |
Oops, something went wrong.