Skip to content

Commit

Permalink
chore: setup more relaxed linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Oct 14, 2024
1 parent 574f896 commit 78b0cfe
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"MD004": {
"style": "dash"
},
"MD012": false,
"MD013": false,
"MD036": false,
"MD046": false,
"MD024": {
"siblings_only": true
}
}
12 changes: 12 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends: default

# Ignore helm templates and .terraform provider paths
ignore: |
.terraform/
tmp/
rules:
line-length: disable
document-start: disable
comments: disable
truthy: disable # github workflows uses "on:" a lot, which is a truthy value in yaml
8 changes: 7 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@
hooks = {
gofmt.enable = true;
shellcheck.enable = true;
markdownlint.enable = true;
markdownlint = {
enable = true;
};
yamllint.enable = true;
commitizen.enable = true;
};
};
# https://devenv.sh/packages/
packages = [ pkgs.go-task ];
languages.go.enable = true;
enterTest = ''
echo "Entering test environment"
task test
'';
}
96 changes: 96 additions & 0 deletions docs/devenv.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Config",
"type": "object",
"properties": {
"allowBroken": {
"type": "boolean"
},
"allowUnfree": {
"type": "boolean"
},
"clean": {
"anyOf": [
{
"$ref": "#/definitions/Clean"
},
{
"type": "null"
}
]
},
"imports": {
"type": "array",
"items": {
"type": "string"
}
},
"impure": {
"type": "boolean"
},
"inputs": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Input"
}
},
"permittedInsecurePackages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"definitions": {
"Clean": {
"type": "object",
"required": [
"enabled",
"keep"
],
"properties": {
"enabled": {
"type": "boolean"
},
"keep": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Input": {
"type": "object",
"properties": {
"flake": {
"type": "boolean"
},
"follows": {
"type": [
"string",
"null"
]
},
"inputs": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Input"
}
},
"overlays": {
"type": "array",
"items": {
"type": "string"
}
},
"url": {
"type": [
"string",
"null"
]
}
}
}
}
}

0 comments on commit 78b0cfe

Please sign in to comment.