Skip to content

Commit c522e48

Browse files
committed
feat: initial commit
0 parents  commit c522e48

26 files changed

Lines changed: 1600 additions & 0 deletions

.github/workflows/linting.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch: # Allow manual triggering
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
linting:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
strategy:
16+
matrix:
17+
toolchain: [stable, nightly]
18+
19+
steps:
20+
- id: update
21+
name: Update
22+
run: sudo apt-get update
23+
24+
- id: checkout
25+
name: Checkout Repository
26+
uses: actions/checkout@v4
27+
28+
- id: node
29+
name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: "20"
33+
34+
- id: setup
35+
name: Setup Rust Toolchain
36+
uses: dtolnay/rust-toolchain@stable
37+
with:
38+
toolchain: ${{ matrix.toolchain }}
39+
components: clippy, rustfmt
40+
41+
- id: cache
42+
name: Enable Workflow Cache
43+
uses: Swatinem/rust-cache@v2
44+
45+
- id: fetch
46+
name: Download Dependencies
47+
run: cargo fetch --verbose
48+
49+
- id: build
50+
name: Compile Linter Binary
51+
run: cargo build --bin linter --verbose
52+
53+
- id: lint
54+
name: Run All Linters
55+
run: ./target/debug/linter all

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.markdownlint.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"default": true,
3+
"MD013": false,
4+
"MD031": true,
5+
"MD032": true,
6+
"MD040": true,
7+
"MD022": true,
8+
"MD009": true,
9+
"MD007": {
10+
"indent": 2
11+
},
12+
"MD026": false,
13+
"MD041": false,
14+
"MD034": false,
15+
"MD024": false,
16+
"MD033": false,
17+
"MD060": false
18+
}

.taplo.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Taplo configuration file for TOML formatting
2+
# Used by the "Even Better TOML" VS Code extension
3+
4+
# Exclude generated folders from linting
5+
exclude = [ "target/**" ]
6+
7+
[formatting]
8+
# Preserve blank lines that exist
9+
allowed_blank_lines = 1
10+
# Don't reorder keys to maintain structure
11+
reorder_keys = false
12+
# Array formatting
13+
array_trailing_comma = true
14+
array_auto_expand = false
15+
array_auto_collapse = false
16+
# Inline table formatting
17+
inline_table_expand = false
18+
compact_inline_tables = false
19+
compact_arrays = false
20+
# Alignment
21+
align_entries = false
22+
align_comments = true
23+
# Indentation
24+
indent_tables = false
25+
indent_entries = false
26+
# Other
27+
trailing_newline = true

.yamllint-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
extends: default
2+
3+
rules:
4+
line-length:
5+
max: 200
6+
comments:
7+
min-spaces-from-content: 1
8+
document-start: disable
9+
truthy:
10+
allowed-values: ["true", "false", "yes", "no", "on", "off"]
11+
12+
ignore: |
13+
target/**

0 commit comments

Comments
 (0)