-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-commit config for a few formatting things
- Loading branch information
1 parent
632f2c1
commit 52778ca
Showing
68 changed files
with
1,383 additions
and
480 deletions.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
*.spcasm linguist-language=Assembly | ||
*.spcasmtest linguist-language=Assembly | ||
*.spcasmtest.noerror linguist-language=Assembly | ||
*.spcasmtest.noerror linguist-language=Assembly |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
repos: | ||
- repo: https://github.com/doublify/pre-commit-rust | ||
rev: v1.0 | ||
hooks: | ||
- id: fmt | ||
entry: cargo +nightly fmt | ||
types: [rust] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0 | ||
hooks: | ||
- id: prettier |
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,67 +1,53 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug spcasm", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=spcasm", | ||
], | ||
"filter": { | ||
"name": "spcasm", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [ | ||
"tests/opcodes.s", | ||
"-f", | ||
"hex-dump", | ||
"-" | ||
], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug spcasm tests", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--lib" | ||
], | ||
"filter": { | ||
"name": "spcasm", | ||
"kind": "lib" | ||
} | ||
}, | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"name": "Test sals in extension host", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceRoot}/sals", | ||
"${workspaceRoot}/tests/opcodes.s" | ||
], | ||
"outFiles": [ | ||
"${workspaceRoot}/sals/vscode/dist/**/*.js" | ||
], | ||
"env": { | ||
"SERVER_PATH": "${workspaceRoot}/target/debug/sals" | ||
} | ||
}, | ||
{ | ||
"name": "Attach to sals server", | ||
"request": "attach", | ||
"type": "lldb", | ||
"program": "${workspaceRoot}/target/debug/sals", | ||
"pid": "${command:pickMyProcess}" | ||
} | ||
] | ||
} | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug spcasm", | ||
"cargo": { | ||
"args": ["build", "--bin=spcasm"], | ||
"filter": { | ||
"name": "spcasm", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": ["tests/opcodes.s", "-f", "hex-dump", "-"], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug spcasm tests", | ||
"cargo": { | ||
"args": ["test", "--no-run", "--lib"], | ||
"filter": { | ||
"name": "spcasm", | ||
"kind": "lib" | ||
} | ||
}, | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"name": "Test sals in extension host", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceRoot}/sals", | ||
"${workspaceRoot}/tests/opcodes.s" | ||
], | ||
"outFiles": ["${workspaceRoot}/sals/vscode/dist/**/*.js"], | ||
"env": { | ||
"SERVER_PATH": "${workspaceRoot}/target/debug/sals" | ||
} | ||
}, | ||
{ | ||
"name": "Attach to sals server", | ||
"request": "attach", | ||
"type": "lldb", | ||
"program": "${workspaceRoot}/target/debug/sals", | ||
"pid": "${command:pickMyProcess}" | ||
} | ||
] | ||
} |
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,80 +1,80 @@ | ||
{ | ||
"cSpell.words": [ | ||
"ADDW", | ||
"ajsdkfl", | ||
"ALLOC", | ||
"asciiz", | ||
"autotrim", | ||
"brrtools", | ||
"CBNE", | ||
"CLRC", | ||
"CLRP", | ||
"CLRV", | ||
"CMPW", | ||
"DBNZ", | ||
"DECW", | ||
"endasm", | ||
"Endianness", | ||
"endmacro", | ||
"FFBF", | ||
"FFDE", | ||
"fillbyte", | ||
"filldword", | ||
"filllong", | ||
"fillword", | ||
"Gau's", | ||
"incbin", | ||
"incsrc", | ||
"INCW", | ||
"jumptable", | ||
"lalrpop", | ||
"LALRPOP", | ||
"mdbook", | ||
"misassembled", | ||
"MOVW", | ||
"MSRV", | ||
"msvc", | ||
"noalign", | ||
"nocash", | ||
"nodirectory", | ||
"noerror", | ||
"NOTC", | ||
"notrycmd", | ||
"NVHZ", | ||
"NVHZC", | ||
"NVPBHIZC", | ||
"oldstyle", | ||
"padbyte", | ||
"paddword", | ||
"padlong", | ||
"padword", | ||
"PCALL", | ||
"PROGBITS", | ||
"pseudoinstruction", | ||
"pullpc", | ||
"pushpc", | ||
"readelf", | ||
"rustc", | ||
"rustflags", | ||
"Rustup", | ||
"sampletable", | ||
"SETC", | ||
"SETP", | ||
"shstrtab", | ||
"spcasmtest", | ||
"startpos", | ||
"STRTAB", | ||
"SUBW", | ||
"TCALL", | ||
"TCLR", | ||
"trycmd", | ||
"TSET", | ||
"unoptimized", | ||
"vasm", | ||
"Virt", | ||
"wrongoption", | ||
"xffbinary", | ||
"xkas", | ||
"yoshi" | ||
] | ||
} | ||
"cSpell.words": [ | ||
"ADDW", | ||
"ajsdkfl", | ||
"ALLOC", | ||
"asciiz", | ||
"autotrim", | ||
"brrtools", | ||
"CBNE", | ||
"CLRC", | ||
"CLRP", | ||
"CLRV", | ||
"CMPW", | ||
"DBNZ", | ||
"DECW", | ||
"endasm", | ||
"Endianness", | ||
"endmacro", | ||
"FFBF", | ||
"FFDE", | ||
"fillbyte", | ||
"filldword", | ||
"filllong", | ||
"fillword", | ||
"Gau's", | ||
"incbin", | ||
"incsrc", | ||
"INCW", | ||
"jumptable", | ||
"lalrpop", | ||
"LALRPOP", | ||
"mdbook", | ||
"misassembled", | ||
"MOVW", | ||
"MSRV", | ||
"msvc", | ||
"noalign", | ||
"nocash", | ||
"nodirectory", | ||
"noerror", | ||
"NOTC", | ||
"notrycmd", | ||
"NVHZ", | ||
"NVHZC", | ||
"NVPBHIZC", | ||
"oldstyle", | ||
"padbyte", | ||
"paddword", | ||
"padlong", | ||
"padword", | ||
"PCALL", | ||
"PROGBITS", | ||
"pseudoinstruction", | ||
"pullpc", | ||
"pushpc", | ||
"readelf", | ||
"rustc", | ||
"rustflags", | ||
"Rustup", | ||
"sampletable", | ||
"SETC", | ||
"SETP", | ||
"shstrtab", | ||
"spcasmtest", | ||
"startpos", | ||
"STRTAB", | ||
"SUBW", | ||
"TCALL", | ||
"TCLR", | ||
"trycmd", | ||
"TSET", | ||
"unoptimized", | ||
"vasm", | ||
"Virt", | ||
"wrongoption", | ||
"xffbinary", | ||
"xkas", | ||
"yoshi" | ||
] | ||
} |
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
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 |
---|---|---|
|
@@ -34,4 +34,4 @@ pullpc | |
|
||
some_other_subroutine: | ||
nop | ||
; [...] | ||
; [...] |
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
Oops, something went wrong.