2 Commits

Author SHA1 Message Date
89bf93de8f feat: using node version of markdown-lint, no custom rule
Some checks failed
CI / Check PR Title (pull_request) Successful in 46s
CI / Makefile Lint (pull_request) Failing after 1m23s
CI / Markdown Lint (pull_request) Failing after 49s
CI / Go Lint (pull_request) Successful in 1m33s
CI / Unit Tests (pull_request) Successful in 55s
CI / Fuzz Tests (pull_request) Successful in 1m52s
CI / Mutation Tests (pull_request) Successful in 1m31s
2026-05-16 15:22:06 -04:00
46b59d743e feat: custom lint rule, fixed readme 2026-04-29 20:54:05 -04:00
7 changed files with 1389 additions and 19 deletions

3
.gitignore vendored
View File

@@ -24,3 +24,6 @@ go.work.sum
# env file
.env
# Node dev tooling (markdownlint)
node_modules/

15
.markdownlint-cli2.jsonc Normal file
View File

@@ -0,0 +1,15 @@
{
"customRules": ["markdownlint-rule-max-one-sentence-per-line"],
"gitignore": true,
"config": {
"default": true,
"heading-style": { "style": "atx" },
"ul-indent": { "indent": 2 },
"line-length": false,
"no-duplicate-heading": { "siblings_only": true },
"no-inline-html": {
"allowed_elements": ["br", "code", "details", "summary", "img", "picture", "source"]
},
"first-line-heading": true
}
}

View File

@@ -1,17 +0,0 @@
default: true
heading-style:
style: atx
ul-indent:
indent: 2
line-length: false
no-duplicate-heading:
siblings_only: true
no-inline-html:
allowed_elements:
- br
- details
- summary
- img
- picture
- source
first-line-heading: true

View File

@@ -4,6 +4,7 @@ help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk -F ':.*## ' '{printf " %-15s %s\n", $$1, $$2}'
install: ## Install dev tools
npm install
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/checkmake/checkmake/cmd/checkmake@latest
go install github.com/go-gremlins/gremlins/cmd/gremlins@latest
@@ -33,7 +34,7 @@ lint-makefile: ## Lint the Makefile
checkmake Makefile
lint-markdown: ## Lint Markdown files
docker run --rm -v $(CURDIR):/workdir davidanson/markdownlint-cli2 "**/*.md"
npx markdownlint-cli2 "**/*.md"
lint: lint-go lint-makefile lint-markdown ## Lint all code

View File

@@ -1,3 +1,6 @@
# <img height="30" src="assets/logo.svg" alt="Go Cuckoo, by `mvhutz`."> Go Cuckoo
A hash table that uses cuckoo hashing to achieve a worst-case O(1) lookup time. Read more about it in [the package documentation](https://pkg.go.dev/git.maximhutz.com/tools/go-cuckoo).
A hash table that uses cuckoo hashing to achieve a worst-case O(1) lookup time.
Read more about it in [the package documentation][docs].
[docs]: https://pkg.go.dev/git.maximhutz.com/tools/go-cuckoo

1358
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

7
package.json Normal file
View File

@@ -0,0 +1,7 @@
{
"private": true,
"devDependencies": {
"markdownlint-cli2": "^0.22.1",
"markdownlint-rule-max-one-sentence-per-line": "^0.0.2"
}
}