-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
c679cfb
commit 75dac30
Showing
6 changed files
with
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import BaseTemplateGenerator from '../BaseTemplateGenerator'; | ||
import { resolveGeneratorInheritance } from '../GeneratorResolver'; | ||
|
||
class GitHooksGenerator extends BaseTemplateGenerator { | ||
constructor(args: any, options: any) { | ||
super(args, options); | ||
} | ||
} | ||
|
||
export default resolveGeneratorInheritance(GitHooksGenerator); |
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,27 @@ | ||
name: Check Coding Style | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check-coding-syle: | ||
name: Check Coding Style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Check EditorConfig | ||
- name: Install eclint | ||
run: sudo npm install -g eclint | ||
- name: Check EditorConfig style | ||
run: eclint check $(git ls-files) | ||
|
||
# Check Commit Messages | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Check commits | ||
run: pre-commit run --hook-stage manual |
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,3 @@ | ||
[general] | ||
ignore = body-is-missing | ||
contrib = contrib-title-conventional-commits |
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,26 @@ | ||
default_install_hook_types: | ||
- pre-commit | ||
- pre-push | ||
- commit-msg | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- name: Check, that no large files have been committed | ||
id: check-added-large-files | ||
|
||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python | ||
rev: '2.7.1' | ||
hooks: | ||
- name: Check EditorConfig | ||
id: editorconfig-checker | ||
alias: ec | ||
|
||
- repo: https://github.com/jorisroovers/gitlint | ||
rev: "v0.19.1" | ||
hooks: | ||
- name: Lint commit messages | ||
id: gitlint | ||
- id: gitlint-ci | ||
args: ['--commits', 'origin/main..HEAD'] |
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