Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
- id: emmyluacodestyle-check
language: lua
name: EmmyLuaCodeStyle check
description: >
use EmmyLuaCodeStyle to check lua files
entry: CodeFormat
types:
- lua
args:
- check
- -DAE
- -f

- id: emmyluacodestyle-format
language: lua
name: EmmyLuaCodeStyle format
description: >
use EmmyLuaCodeStyle to format lua files
entry: CodeFormat
types:
- lua
args:
- format
- -ow
- -f
36 changes: 36 additions & 0 deletions emmyluacodestyle-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
local git_ref = '1.5.7'
local modrev = 'scm'
local specrev = '1'

rockspec_format = '3.0'
package = 'EmmyLuaCodeStyle'
version = modrev .. '-' .. specrev

local repo_url = 'https://github.com/CppCXY/EmmyLuaCodeStyle'

description = {
summary = 'fast, powerful, and feature-rich Lua formatting and checking tool.',
detailed =
[[Lua code parsing, formatting, and code diagnosis algorithm library and language service implementation based on C++]],
labels = { 'lua' },
homepage = repo_url,
license = 'MIT'
}

source = {
url = repo_url .. '/archive/' .. git_ref .. '.zip',
dir = package .. '-' .. git_ref,
}

build = {
type = 'cmake',
variables = {
CMAKE_INSTALL_PREFIX = 'build',
},
install = {
bin = {
CodeFormat = 'build/bin/CodeFormat',
CodeFormatServer = 'build/bin/CodeFormatServer',
},
}
}
Loading