mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
# pre-commit is a tool to perform a predefined set of tasks manually and/or
 | 
						|
# automatically before git commits are made.
 | 
						|
#
 | 
						|
# Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level
 | 
						|
#
 | 
						|
# Common tasks
 | 
						|
#
 | 
						|
# - Run on all files:   pre-commit run --all-files
 | 
						|
# - Register git hooks: pre-commit install --install-hooks
 | 
						|
#
 | 
						|
# See https://pre-commit.com for more information
 | 
						|
# See https://pre-commit.com/hooks.html for more hooks
 | 
						|
repos:
 | 
						|
  # `pre-commit sample-config` default hooks
 | 
						|
  - repo: https://github.com/pre-commit/pre-commit-hooks
 | 
						|
    rev: v5.0.0
 | 
						|
    hooks:
 | 
						|
      - id: check-added-large-files
 | 
						|
      - id: check-executables-have-shebangs
 | 
						|
      - id: check-shebang-scripts-are-executable
 | 
						|
      - id: end-of-file-fixer
 | 
						|
        exclude: ^docs/doxygen-awesome-theme/
 | 
						|
      - id: trailing-whitespace
 | 
						|
        exclude: ^docs/doxygen-awesome-theme/
 | 
						|
 | 
						|
  # Autoformat: YAML, JSON, Markdown, etc.
 | 
						|
  - repo: https://github.com/rbubley/mirrors-prettier
 | 
						|
    rev: v3.5.3
 | 
						|
    hooks:
 | 
						|
      - id: prettier
 | 
						|
        exclude: ^docs/doxygen-awesome-theme/
 | 
						|
 | 
						|
  - repo: local
 | 
						|
    hooks:
 | 
						|
      - id: gofmt
 | 
						|
        name: Go Format
 | 
						|
        entry: pre-commit-hooks/run-go-fmt.sh
 | 
						|
        types: [go]
 | 
						|
        language: golang
 | 
						|
        description: "Runs `gofmt`, requires golang"
 | 
						|
 | 
						|
  - repo: https://github.com/igorshubovych/markdownlint-cli
 | 
						|
    rev: v0.44.0
 | 
						|
    hooks:
 | 
						|
      - id: markdownlint-fix
 | 
						|
        exclude: LICENSE.md
 |