-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from snprajwal/crit-lint
Enable linting for crit
- Loading branch information
Showing
11 changed files
with
236 additions
and
31 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 |
---|---|---|
|
@@ -10,5 +10,4 @@ image | |
scripts/*.h | ||
scripts/expected.go | ||
scripts/output.go | ||
magic/magic.go | ||
crit/bin |
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,13 +1,10 @@ | ||
run: | ||
skip-dirs: | ||
- rpc | ||
- stats | ||
- crit | ||
|
||
linters: | ||
disable-all: false | ||
presets: | ||
- bugs | ||
- performance | ||
- unused | ||
- format | ||
|
||
linters-settings: | ||
exhaustive: | ||
default-signifies-exhaustive: true |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
This directory contains scripts used by go-criu. | ||
|
||
# `magicgen` | ||
CRIU uses a 32-bit integer value to determine the type of image file. These values are called *magics*, and are defined [here](/~https://github.com/checkpoint-restore/criu/tree/master/criu/include/magic.h). `magicgen.go` processes this header file and generates `../magic/magic.go` with a map of magic names and values. | ||
|
||
`Usage: magicgen.go /path/to/magic.h /path/to/magic.go` | ||
|
||
A set of Makefile targets are provided for convenience: | ||
- `make` or `make magic-gen`: Generate `../magic/magic.go` | ||
- `make test`: Run unit test and E2E test for `magicgen.go` | ||
- `make clean`: Remove `../magic/magic.go` and `magic.h` |
Oops, something went wrong.