-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.dictate.toml
More file actions
101 lines (90 loc) · 2.58 KB
/
Copy path.dictate.toml
File metadata and controls
101 lines (90 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Dictator Configuration
# Decree-based structural enforcement for code quality
# Generated by: dictator occupy
# Ignored paths
ignore = [
"Makefile",
"*.mk",
".git",
"tmp",
"log",
"node_modules",
"vendor"
]
[decree.supreme]
# Universal structural rules (applies to ALL files unless overridden)
trailing_whitespace = "deny"
tabs_vs_spaces = "spaces"
tab_width = 2
final_newline = "require"
line_endings = "lf"
blank_line_whitespace = "deny"
# max_line_length: opt-in per language (uncomment to enforce globally)
# Language-specific decrees (uncomment to enable)
# Remove the '#' from '[decree.LANGUAGE]' and its settings to activate
[decree.ruby]
# Ruby-specific structural enforcement
max_line_length = 120
max_lines = 300
ignore_comments = true
ignore_blank_lines = true
method_visibility_order = ["public", "protected", "private"]
comment_spacing = true
# External linter integration (uncomment to enable)
[decree.ruby.linter]
command = "rubocop"
# [decree.typescript]
# # TypeScript/JavaScript structural enforcement
# max_line_length = 100
# max_lines = 350
# ignore_comments = true
# ignore_blank_lines = true
# import_order = ["system", "external", "internal"]
#
# # External linter integration (uncomment to enable)
# [decree.typescript.linter]
# command = "eslint"
# [decree.golang]
# # Go structural enforcement
# # Go convention: tabs, not spaces (overrides decree.supreme)
# tabs_vs_spaces = "tabs"
# max_line_length = 120
# max_lines = 450
# ignore_comments = true
# ignore_blank_lines = true
#
# # External linter integration (uncomment to enable)
# [decree.golang.linter]
# command = "gofmt"
# [decree.rust]
# # Rust structural enforcement
# max_line_length = 100
# max_lines = 400
# ignore_comments = true
# ignore_blank_lines = true
# visibility_order = ["pub", "private"]
#
# # External linter integration (uncomment to enable)
# [decree.rust.linter]
# command = "clippy"
# [decree.python]
# # Python structural enforcement
# max_line_length = 88 # Black's default
# max_lines = 380
# ignore_comments = true
# ignore_blank_lines = true
# import_order = ["stdlib", "third_party", "local"]
#
# # External linter integration (uncomment to enable)
# [decree.python.linter]
# command = "ruff"
# [decree.frontmatter]
# # YAML frontmatter ordering for .md and .mdx files only
# # Does NOT handle: .astro (JS/TS frontmatter), .yml/.yaml, .toml
# order = ["title", "slug", "pubDate", "description", "tags", "draft"]
# required = ["title", "slug"]
# Custom decrees (WASM/native plugins)
# Uncomment and configure to enable custom linting rules
# [decree.kjr]
# enabled = true
# path = "path/to/dictator_kjr.wasm"