Skip to content

Presets

A preset is an ordinary sudsy.yaml; writing its options by hand gives the same result. Use one with extends: [preset:<language>/<name>].

Rules it enables

# The rules of cmake-lint's defaults that Sudsy has, at warn (the rest are in docs/ai/parity/cmake-lint.yaml).
cmake:
lint:
rules:
max-line-length:
level: warn
options:
max: 80
allow_non_breakable_words: false
no-trailing-whitespace: warn
statement-indent:
level: warn
options:
allow_unindented: true
no-hard-tabs:
level: warn
options:
indentation_only: true
declared-name-pattern:
level: warn
options:
names:
- "set:0:variable"
- "list GET:-1:variable"
- "list LENGTH:2:variable"
- "list JOIN:-1:variable"
- "function:0:function"
- "function:1+:argument"
- "macro:0:macro"
- "macro:1+:argument"
- "foreach:0:argument"
markers:
- "PARENT_SCOPE:parent_scope"
- "CACHE:cache"
- "CACHE INTERNAL:internal"
scopes:
- ":directory"
- "function:local"
- "macro:parent_scope"
patterns:
- "directory:[A-Z][0-9A-Z_]+|_[0-9a-z_]+"
- "local:[a-z][a-z0-9_]+"
- "internal:_[A-Z][0-9A-Z_]+"
- "cache:[A-Z][0-9A-Z_]+"
- "parent_scope:[A-Z][0-9A-Z_]+|_[0-9a-z_]+|[a-z][a-z0-9_]+"
- "argument:[a-z][a-z0-9_]+"
- "function:[0-9a-z_]+"
- "macro:[0-9A-Z_]+"
ignore_pattern: "^ENV\\{"
reference_start: "${"
reference_end: "}"
statement-blank-lines:
level: warn
options:
max: 1
documented-command:
level: warn
options:
commands: [function, macro]
doc_kinds: [LineComment]

Rules it enables

# Chromium's C++ style as clang-format's Chromium style: Google's with one parameter per line and short inline functions.
cpp:
format:
join_closing_angles: true
empty_body_own_line: true
collapse_empty_blocks: true
access_modifier_outdent: 1
align_escaped_newlines: left
short_functions: inline
bin_pack_parameters: false
break_template_declarations: "yes"
indent_case_labels: true
penalty_return_type: 200
pointer_alignment: left
spaces_before_trailing_comments: 2

Rules it enables

# The GNU coding standards as clang-format's GNU style: braces on their own line and indented, return type on its own line, a space before every parenthesis.
cpp:
format:
join_closing_angles: true
empty_body_own_line: true
collapse_empty_blocks: true
break_after_return_type: all_definitions
break_before_binary_operators: all
brace_wrapping: [class, struct, union, enum, function, namespace, extern, control, case, else, catch, while]
split_empty_braces: [class, struct, union, function, namespace]
indent_braces: true
line_width: 79
space_before_parens: always
braced_list_padding: true
space_after_cast: true

Rules it enables

# Google's C++ style guide as clang-format's Google style: two spaces, 80 columns, pointer next to the type, indented case labels.
cpp:
format:
join_closing_angles: true
empty_body_own_line: true
collapse_empty_blocks: true
access_modifier_outdent: 1
align_escaped_newlines: left
short_ifs: without_else
short_loops: true
break_template_declarations: "yes"
indent_case_labels: true
penalty_return_type: 200
pointer_alignment: left
derive_pointer_alignment: true
spaces_before_trailing_comments: 2

Rules it enables

# Microsoft's C++ style as clang-format's Microsoft style: four spaces, 120 columns, braces on their own line.
cpp:
format:
join_closing_angles: true
empty_body_own_line: true
collapse_empty_blocks: true
short_enums: false
short_functions: none
brace_wrapping: [class, enum, function, namespace, extern, control, else, catch]
split_empty_braces: [class, function, namespace]
line_width: 120
indent_size: 4
penalty_return_type: 1000

Rules it enables

# Mozilla's C++ style as clang-format's Mozilla style: return type on its own line, braces of classes and functions on their own line, comma-first initializers.
cpp:
format:
join_closing_angles: true
empty_body_own_line: true
collapse_empty_blocks: true
indent_pp_directives: keep
short_functions: inline
bin_pack_arguments: false
bin_pack_parameters: false
break_after_return_type: top_level
brace_wrapping: [class, struct, union, enum, function, extern]
split_empty_braces: [function]
break_constructor_initializers: before_comma
break_template_declarations: "yes"
constructor_initializer_indent: 2
continuation_indent: 2
indent_case_labels: true
penalty_return_type: 200
pointer_alignment: left
braced_list_padding: true

Rules it enables

# WebKit's C++ style as clang-format's WebKit style: four spaces, no column limit, operators first, function braces on their own line.
cpp:
format:
join_closing_angles: true
empty_body_own_line: true
collapse_empty_blocks: true
access_modifier_outdent: 4
align_after_open_bracket: dont_align
break_before_binary_operators: all
brace_wrapping: [function]
break_constructor_initializers: before_comma
wrap_lines: false
indent_size: 4
namespace_indentation: inner
pointer_alignment: left
braced_list_padding: true

CSharpier 1.x layout through the named C# options, including sort_usings: true.

Rules it enables

# Formats like CSharpier 1.x, for migrating without reformat churn.
csharp:
format:
line_width: 100
trailing_commas: multiline
blank_lines_between_members: separate
accessor_blank_lines: remove
collection_blank_lines: remove
inline_accessor_bodies: true
indent_switch_section_block: false
assignment_layout: fluid
assignment_conditional: binary_test
assignment_conditional_test_kinds: [ParenthesizedExpression]
switch_arm_layout: assignment
indent_nested_binary: true
binary_group_single: true
binary_group_mixed_chains: false
binary_open_kinds: [OrPattern, AndPattern]
member_chain_style: grouped
member_chain_keep_accesses: always
member_chain_factory_heads: false
member_chain_hug_calls: 1
member_chain_indent_head: true
member_chain_break_on_block: "inner"
label_blank_line: true
wrapped_brace_line: all
initializer_collapse: always
initializer_expand: crowded
initializer_group: creation
hug_last_argument: sole_bare
constructor_initializer_line: new_line
parameter_attribute_layout: hanging
base_list_layout: hanging
unbreakable_single_item_lists: true
conditional_layout: ladder
declarator_own_line_kinds: [VariableDeclaration]
stacked_flush_kinds: [UsingStatement, FixedStatement]
hanging_clause_kinds: [WhenClause, CatchFilterClause]
hang_operand_kinds: [CastExpression]
paren_condition_kinds: [IfStatement, WhileStatement, DoStatement, LockStatement, SwitchStatement, UsingStatement, FixedStatement]
assignment_inline_test_kinds: [IsPatternExpression]
member_chain_hold_comments: true
do_while_line: same_line
space_between_empty_for_clauses: true
space_after_empty_last_for_clause: true
sort_usings: true
derive_symbol_sets: true

The defaults plus inline_accessor_bodies.

Rules it enables

# The dotnet/runtime coding style: Microsoft's layout, except that a short accessor body stays on
# the accessor's line (`get { return _count; }`).
csharp:
format:
inline_accessor_bodies: true

2 spaces, 100 columns, K&R braces, {} for empty bodies. No alignment of the first argument: wrapped lines continue with 4 spaces. Trailing comments not aligned. Arguments go one per line when they do not fit.

Rules it enables

# Google's C# style guide: two spaces, 100 columns, braces on the line of the header, `} else {`,
# `{}` for an empty body, trailing commas in multi-line lists.
csharp:
format:
line_width: 100
indent_size: 2
brace_newline: none
trailing_commas: multiline
wrapped_brace_line: none
clause_keyword_line: same_line
empty_braces: tight

The lint rules that match the analyzers Roslynator turns on by default (constant-on-right, doc-summary-required, doc-summary-text, no-empty-catch, nullable-shorthand, possible-null-dereference, unused-assignment, unused-private-member, use-lambda) at warn; unused-private-member needs analysis: deep, which a preset cannot set. Checked against Roslynator by scripts/parity.sh coverage roslynator.

Rules it enables

# Roslynator.Analyzers' default set: the Sudsy rules that match the analyzers Roslynator turns on by default
# (RCS1020, RCS1048, RCS1075, RCS1098, RCS1138, RCS1139, RCS1179, RCS1202, RCS1212, RCS1213).
# `unused-private-member` needs `analysis: deep`, which a preset cannot set.
# Checked against Roslynator by `scripts/parity.sh coverage roslynator`.
csharp:
lint:
rules:
constant-on-right: warn
doc-summary-required: warn
doc-summary-text: warn
no-empty-catch: warn
nullable-shorthand: warn
possible-null-dereference: warn
unused-assignment: warn
unused-private-member: warn
use-lambda: warn

StyleCop.Analyzers 1.2.0-beta.556 default layout: closing_paren_line: same_line, empty_braces: expanded, blank_lines_between_members: always, blank_lines_after_block: require, blank_line_before_comment: require, blank_line_after_comment: remove, space_after_delegate: false, space_between_empty_for_clauses: true, trailing_commas: multiline; and the lint rules that match StyleCop’s style rules (comment-space, doc-comment-space, directive-keyword-space, no-regions, member-order, accessor-order, using-order with compare: culture, static_position: after and alias_position: after, …) and the 24 documentation comment rules (rules/builtin.md) at warn. Checked against StyleCop itself by scripts/parity.sh stylecop.

Rules it enables

# StyleCop.Analyzers' default layout: the formatter output satisfies its spacing, readability and
# layout rules (SA1002, SA1008, SA1111, SA1413, SA1500-SA1516), and the Sudsy rules that match
# StyleCop's style rules, including the SA16xx documentation rules, are on.
csharp:
format:
trailing_commas: multiline
closing_paren_line: same_line
empty_braces: expanded
blank_lines_between_members: always
blank_lines_after_block: require
blank_line_before_comment: require
blank_line_after_comment: remove
space_after_delegate: false
space_between_empty_for_clauses: true
lint:
rules:
accessor-order: warn
comment-space: warn
constant-on-right: warn
constructor-summary-standard-text: warn
debug-assert-message: warn
debug-fail-message: warn
destructor-summary-standard-text: warn
directive-keyword-space: warn
doc-comment-space: warn
doc-param-has-name: warn
doc-param-has-text: warn
doc-param-missing: warn
doc-partial-required: warn
doc-partial-summary-required: warn
doc-partial-summary-text: warn
doc-partial-typeparams: warn
doc-returns-has-text: warn
doc-returns-required: warn
doc-summary-required: warn
doc-summary-text: warn
doc-text-ends-with-period: warn
doc-text-not-empty: warn
doc-typeparam-has-name: warn
doc-typeparam-has-text: warn
doc-value-text: warn
field-name-no-underscore: warn
file-name-matches-type: warn
inheritdoc-on-inheriting-member: warn
member-order: warn
missing-doc-comment: warn
no-comment-before-block: warn
no-default-summary: warn
no-default-value-type-constructor: warn
no-doc-placeholder: warn
no-doc-slashes-in-plain-comment: warn
no-duplicate-doc-text: warn
no-empty-attribute-parens: warn
no-empty-comment: warn
no-empty-delegate-parens: warn
no-empty-statement: warn
no-region-in-body: warn
no-regions: warn
no-returns-on-void: warn
no-unneeded-base-prefix: warn
nullable-shorthand: warn
property-summary-matches-accessors: warn
property-summary-omits-restricted-accessor: warn
qualify-instance-members: warn
qualify-namespace-usings: warn
separate-attributes: warn
separate-field-declarations: warn
single-class-per-file: warn
single-namespace-per-file: warn
suppression-justification: warn
tuple-element-names-in-signatures: warn
use-lambda: warn
use-literal-suffix: warn
use-string-empty: warn
use-tuple-syntax: warn
using-order:
level: warn
options:
compare: culture
static_position: after
alias_position: after
using-placement: warn

unused-private-member counts Unity’s message methods (Awake, Update, OnTriggerEnter, …) as used in types derived from MonoBehaviour, ScriptableObject, Editor, EditorWindow, StateMachineBehaviour or AssetPostprocessor, through the rule’s reflection_base_types and reflection_methods options. A member with an attribute ([SerializeField]) is never reported. It also sets member_attribute_line: keep ([SerializeField] private int speed; stays on one line) and a four-space indent for .asmdef, .asmref and .inputactions, which Unity writes that way. It leaves Library/, Temp/, Logs/, obj/, UserSettings/ and Build(s)/ out (exclude), also without a .gitignore. The rule needs analysis: deep; a base class from a package the project cannot resolve (class Player : Manager) is added to reflection_base_types.

Rules it enables

# Unity: the folders Unity generates (the package cache holds thousands of `.cs` files) are left
# out; its message methods are called by reflection, so a class that derives from one of the base
# types uses them without any call in the project; attributes such as `[SerializeField]` stay in
# front of the field; the JSON that Unity writes itself (assembly definitions, input actions) keeps
# Unity's four-space indent.
exclude: [Library/**, Temp/**, Logs/**, obj/**, UserSettings/**, Build/**, Builds/**]
csharp:
format:
member_attribute_line: keep
lint:
rules:
unused-private-member:
level: warn
options:
reflection_base_types: [MonoBehaviour, ScriptableObject, Editor, EditorWindow, StateMachineBehaviour, AssetPostprocessor]
reflection_methods:
- Awake
- Start
- Update
- FixedUpdate
- LateUpdate
- OnEnable
- OnDisable
- OnDestroy
- OnValidate
- Reset
- OnGUI
- OnApplicationFocus
- OnApplicationPause
- OnApplicationQuit
- OnAnimatorIK
- OnAnimatorMove
- OnAudioFilterRead
- OnBecameVisible
- OnBecameInvisible
- OnCollisionEnter
- OnCollisionStay
- OnCollisionExit
- OnCollisionEnter2D
- OnCollisionStay2D
- OnCollisionExit2D
- OnTriggerEnter
- OnTriggerStay
- OnTriggerExit
- OnTriggerEnter2D
- OnTriggerStay2D
- OnTriggerExit2D
- OnControllerColliderHit
- OnDrawGizmos
- OnDrawGizmosSelected
- OnJointBreak
- OnJointBreak2D
- OnMouseDown
- OnMouseDrag
- OnMouseEnter
- OnMouseExit
- OnMouseOver
- OnMouseUp
- OnMouseUpAsButton
- OnParticleCollision
- OnParticleTrigger
- OnParticleSystemStopped
- OnParticleUpdateJobScheduled
- OnPreCull
- OnPreRender
- OnPostRender
- OnRenderImage
- OnRenderObject
- OnWillRenderObject
- OnTransformChildrenChanged
- OnTransformParentChanged
- OnBeforeTransformParentChanged
- OnRectTransformDimensionsChange
- OnCanvasGroupChanged
- OnCanvasHierarchyChanged
- OnDidApplyAnimationProperties
- OnInspectorGUI
- OnSceneGUI
- OnPreviewGUI
- OnInteractivePreviewGUI
- OnHeaderGUI
- HasPreviewGUI
- RenderStaticPreview
- CreateGUI
- OnFocus
- OnLostFocus
- OnHierarchyChange
- OnProjectChange
- OnSelectionChange
- OnInspectorUpdate
- OnStateEnter
- OnStateExit
- OnStateUpdate
- OnStateMove
- OnStateIK
- OnStateMachineEnter
- OnStateMachineExit
- OnPreprocessAsset
- OnPostprocessAsset
- OnPreprocessTexture
- OnPostprocessTexture
- OnPreprocessModel
- OnPostprocessModel
- OnPreprocessAnimation
- OnPostprocessAnimation
- OnPreprocessAudio
- OnPostprocessAudio
- OnPostprocessMaterial
- OnPostprocessMeshHierarchy
- OnPostprocessGameObjectWithUserProperties
- OnPostprocessSprites
- OnPostprocessCubemap
- OnAssignMaterialModel
overrides:
- files: ["**/*.asmdef", "**/*.asmref", "**/*.inputactions"]
json:
format:
indent_size: 4

The rules of stylelint-config-recommended that Sudsy has, at error (stylelint’s severity), the lint rules for .css, .scss and .less; declaration-block-no-duplicate-properties with ignore_consecutive_different_values. The formatter has no preset options. Checked against stylelint by scripts/parity.sh stylelint.

Rules it enables

# The rules of stylelint-config-recommended that Sudsy has, at stylelint's severity (error).
css:
lint:
rules:
at-rule-no-deprecated: error
at-rule-no-unknown:
level: error
options: { ignore: [] }
block-no-empty: error
color-no-invalid-hex: error
no-empty-comment: error
custom-property-no-missing-var-function: error
declaration-block-no-duplicate-custom-properties: error
declaration-block-no-duplicate-properties:
level: error
options:
ignore_consecutive_different_values: true
declaration-block-no-shorthand-property-overrides: error
font-family-no-duplicate-names: error
font-family-no-missing-generic-family-keyword: error
function-calc-no-unspaced-operator: error
function-linear-gradient-no-nonstandard-direction: error
keyframe-block-no-duplicate-selectors: error
keyframe-declaration-no-important: error
media-feature-name-no-unknown: error
media-type-no-deprecated: error
named-grid-areas-no-invalid: error
no-descending-specificity: error
no-duplicate-at-import-rules: error
no-duplicate-selectors: error
no-empty-source: error
no-invalid-double-slash-comments: error
no-invalid-position-at-import-rule: error
no-invalid-position-declaration: error
property-no-deprecated: error
property-no-unknown: error
selector-anb-no-unmatchable: error
selector-no-deprecated: error
selector-pseudo-class-no-unknown: error
selector-pseudo-element-no-unknown: error
selector-type-no-unknown:
level: error
options:
ignore: ["/-/"]

The recommended preset and the rules of stylelint-config-standard that Sudsy has (notation, naming patterns with stylelint’s kebab-case regex, number-max-precision: 4, length-zero-no-unit, …) at error. The empty-line, color-function and keyword-case rules of the standard set are not built yet.

Rules it enables

# stylelint-config-standard: stylelint-config-recommended and the rules of the standard set that
# Sudsy has, with its options.
extends: [preset:css/stylelint-recommended]
css:
lint:
rules:
alpha-value-notation: error
at-rule-empty-line-before: error
at-rule-no-vendor-prefix: error
color-function-alias-notation: error
color-function-notation: error
color-hex-length: error
at-extend-no-missing-placeholder: error
at-function-pattern:
level: error
options:
pattern: "^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$"
at-if-no-null: error
at-mixin-argumentless-call-parentheses: error
at-mixin-pattern:
level: error
options:
pattern: "^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$"
at-rule-conditional-no-parentheses: error
dollar-variable-pattern:
level: error
options:
pattern: "^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$"
load-no-partial-leading-underscore: error
no-global-function-names: error
custom-property-empty-line-before: error
dollar-variable-empty-line-before: error
comment-empty-line-before: error
double-slash-comment-empty-line-before: error
no-empty-comment:
level: error
options:
separators: true
comment-space:
level: error
options:
block: true
line: false
container-name-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
custom-media-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
custom-property-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
declaration-block-single-line-max-declarations:
level: error
options:
max: 1
declaration-empty-line-before: error
font-family-name-quotes: error
function-name-case: error
function-url-quotes: error
hue-degree-notation: error
import-notation:
level: error
options:
url: true
keyframe-selector-notation: error
keyframes-name-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
layer-name-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
length-zero-no-unit: error
media-feature-name-no-vendor-prefix: error
number-max-precision:
level: error
options:
max: 4
property-no-vendor-prefix: error
rule-empty-line-before: error
selector-attribute-quotes: error
selector-class-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
selector-id-pattern:
level: error
options:
pattern: "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
selector-no-vendor-prefix: error
selector-pseudo-element-colon-notation: error
selector-type-case: error
shorthand-property-no-redundant-values: error
value-no-vendor-prefix: error

Rules it enables

# hadolint's rules that Sudsy has, at hadolint's severities (error is error; warning, info and style are warn).
dockerfile:
lint:
rules:
workdir-absolute: error
no-interactive-commands: warn
last-user-not-root: warn
use-workdir-not-cd: warn
no-sudo: error
untagged-base-image: warn
no-latest-tag: warn
apt-get-pin-versions: warn
expose-port-range: error
single-healthcheck: error
pip-pin-versions: warn
apt-get-yes: warn
delete-apt-lists: warn
merge-consecutive-run: warn
pipefail-shell: warn
apt-get-no-recommends: warn
npm-pin-versions: warn
apk-pin-versions: warn
apk-no-cache: warn
copy-instead-of-add: error
copy-many-needs-directory: error
copy-from-unknown-stage: warn
copy-from-own-stage: error
duplicate-stage-name: error
json-cmd-entrypoint: warn
no-apt: warn
gem-pin-versions: warn
no-from-platform: warn
yum-yes: warn
yum-clean: warn
rpm-pin-versions: warn
zypper-yes: warn
zypper-no-dist-upgrade: warn
zypper-clean: warn
zypper-pin-versions: warn
dnf-yes: warn
dnf-clean: warn
no-nested-onbuild: error
wget-progress: warn
from-first: error
go-pin-versions: warn
no-reserved-stage-name: warn
no-secret-in-env: warn
no-redundant-target-platform: warn
numeric-user-id: warn
no-copy-whole-stage: warn
no-maintainer: error
single-cmd: warn
single-entrypoint: error
no-shell-symlink: warn

Rules it enables

# actionlint's checks that Sudsy has, at warn.
github-actions:
lint:
rules:
cyclic-needs: warn
deprecated-commands: warn
duplicate-ids: warn
expression-context: warn
expression-types: warn
if-condition: warn
invalid-expression: warn
invalid-event: warn
invalid-glob: warn
invalid-job-id: warn
invalid-permissions: warn
outdated-action: warn
invalid-runs-on: warn
no-merge-keys: warn
no-recursive-alias: warn
no-undefined-alias: warn
no-unused-anchors: warn
script-injection: warn
unknown-needs: warn
workflow-syntax: warn

Rules it enables

# The rules of revive's default set that Sudsy has, at warn (the rest are in docs/ai/parity/revive.yaml).
go:
lint:
rules:
no-wildcard-imports: warn
doc-first-word: warn
error-naming: warn
error-strings: warn
errorf: warn
increment-decrement: warn
indent-error-flow: warn
missing-doc-comment: warn
missing-package-comment: warn
no-empty-block:
level: warn
options:
comment_handles: false
waiting_loops: true
ignored_loop_heads: "^range\\b"
package-comment-form: warn
range: warn
receiver-name-consistent: warn
receiver-naming: warn
redefines-builtin-id: warn
superfluous-else: warn
unreachable-code: warn
unused-parameter: warn
var-naming: warn
# revive checks the doc comments of non-test files only.
overrides:
- files: ["**/*_test.go"]
go:
lint:
rules:
doc-first-word: "off"
missing-doc-comment: "off"
package-comment-form: "off"
# revive leaves the names of tests, examples and benchmarks alone in a test file.
- files: ["**/*_test.go"]
go:
lint:
rules:
var-naming:
level: warn
options:
ignore_pattern: "^(LastInsertId|kWh|(Example|Test|Benchmark|Fuzz).*)$"

The lint rules of graphql-eslint flat/schema-recommended and flat/operations-recommended that Sudsy has and that need no schema: naming-convention (operations and fragments PascalCase, variables camelCase), no-anonymous-operations, no-duplicate-keys, no-typename-prefix, at error. Checked against graphql-eslint by scripts/parity.sh coverage graphql-eslint.

Rules it enables

# The rules of graphql-eslint's `flat/schema-recommended` and `flat/operations-recommended` that Sudsy has and that need
# no schema or document set, at ESLint's severity (error), with the options the recommended configs set: operation and
# fragment names in PascalCase, variables in camelCase; the other names are not checked.
graphql:
lint:
rules:
naming-convention:
level: error
options:
operations: PascalCase
fragments: PascalCase
variables: camelCase
fields: "off"
arguments: "off"
types: "off"
enum_values: "off"
directives: "off"
no-anonymous-operations: error
no-duplicate-keys: error
no-name-underscore: error
no-typename-prefix: error

The rules of tflint-ruleset-terraform’s recommended preset that Sudsy has, at warn (the formatter has no style options).

Rules it enables

# The rules of tflint-ruleset-terraform's recommended preset that Sudsy has (the rest are in docs/ai/parity/tflint.yaml).
hcl:
lint:
rules:
deprecated-index: warn
deprecated-interpolation: warn
empty-list-equality: warn
no-duplicate-keys: warn
required-providers: warn
required-version: warn
typed-variables: warn
unused-declarations: warn

Rules it enables

# angular-eslint's template `recommended` and `accessibility` sets (@angular-eslint/template) that Sudsy has, at warn.
angular:
lint:
rules:
banana-in-box: warn
eqeqeq: warn
no-negated-async: warn
img-alt:
level: warn
options:
other_elements: true
skip_hidden: false
name_counts: true
click-events-have-key-events: warn
interactive-supports-focus: warn
mouse-events-have-key-events: warn
label-has-control: warn
empty-content: warn
no-autofocus: warn
prefer-control-flow: warn
table-scope: warn

Rules it enables

# eslint-plugin-svelte's flat/recommended rules that Sudsy has, at warn.
svelte:
lint:
rules:
no-at-debug-tags: warn
no-at-html-tags: warn
no-dupe-on-directives: warn
no-dupe-style-properties: warn
no-dupe-use-directives: warn
no-object-in-text-mustaches: warn
no-raw-special-elements: warn
no-unknown-style-directive-property: warn
no-useless-children-snippet: warn
no-useless-mustaches: warn
require-each-key: warn

Rules it enables

# eslint-plugin-vue's flat/recommended rules that Sudsy has, at warn, and the layout of its `max-attributes-per-line`, `html-indent` (`indent_expression_operands`) and `singleline-html-element-content-newline` (`content_newline_with_attributes`).
# `whitespace_sensitivity: ignore` lays out inline elements as blocks, which can change the spaces a browser renders; the default stays `css`.
vue:
format:
single_attribute_per_line: true
whitespace_sensitivity: ignore
content_newline_with_attributes: true
indent_expression_operands: true
lint:
rules:
attr-delimiter: warn
attr-quotes: warn
attribute-hyphenation: warn
attributes-order: warn
html-self-closing: warn
no-child-content: warn
no-deprecated-functional-template: warn
no-deprecated-html-element-is: warn
no-deprecated-inline-template: warn
no-deprecated-scope-attribute: warn
no-deprecated-slot-attribute: warn
no-deprecated-slot-scope-attribute: warn
no-deprecated-v-bind-sync: warn
no-deprecated-v-is: warn
no-deprecated-v-on-native-modifier: warn
no-deprecated-v-on-number-modifiers: warn
no-dupe-keys: warn
no-dupe-v-else-if: warn
no-duplicate-keys: warn
no-lone-template: warn
no-textarea-mustache: warn
no-use-v-if-with-v-for: warn
no-v-for-template-key-on-child: warn
no-v-html: warn
no-v-text-v-html-on-component: warn
require-component-is: warn
require-default-prop: warn
require-prop-types: warn
v-bind-style: warn
v-for-key: warn
v-on-event-hyphenation: warn
v-on-style: warn
v-slot-style: warn
valid-v-bind: warn
valid-v-cloak: warn
valid-v-else: warn
valid-v-else-if: warn
valid-v-for: warn
valid-v-html: warn
valid-v-if: warn
valid-v-is: warn
valid-v-memo: warn
valid-v-model: warn
valid-v-on: warn
valid-v-once: warn
valid-v-pre: warn
valid-v-show: warn
valid-v-slot: warn
valid-v-text: warn

Rules it enables

# @html-eslint's recommended rules that Sudsy has, at warn, and the layout of its `indent`, `attrs-newline` (more than 2 attributes, each on a line) and `no-extra-spacing-tags` and `require-closing-tags` (`<br>`, `<use/>`).
# `dialect: template` keeps `{{ }}` actions (Hugo, Go templates) as written; text without them formats as before.
# `whitespace_sensitivity: ignore` lays out inline elements as blocks (`element-newline`, no `>Home</a` hugging), which can change the spaces a browser renders between them; the default stays `css`.
html:
format:
whitespace_sensitivity: ignore
content_newline_with_elements: true
indent_comment_lines: true
dialect: template-open
indent_size: 4
max_attributes_per_line: 2
void_element_style: omit
self_closing_space: false
lint:
rules:
attr-quotes: warn
deprecated: warn
element-required-attributes: warn
element-required-content: warn
heading-level: warn
img-alt: warn
missing-doctype: warn
no-deprecated-attr: warn
no-duplicate-id: warn
no-duplicate-keys: warn
no-implicit-close: warn
require-li-container: warn
use-baseline: warn

Rules it enables

# The rules of html-validate:standard and of html-validate:recommended that Sudsy has, at error.
extends: [preset:html/html-validate-standard]
html:
lint:
rules:
aria-hidden-body: error
attr-case: error
attr-delimiter: error
attr-quotes: error
attribute-boolean-style: error
attribute-empty-style: error
doctype-style: error
element-case: error
empty-heading: error
empty-title: error
long-title: error
form-submit: error
header-scope: error
hidden-focusable: error
img-alt: error
link-text: error
meta-refresh: error
no-autoplay: error
no-conditional-comment: error
no-duplicate-class: error
no-implicit-button-type: error
no-implicit-close: error
no-implicit-input-type: error
no-inline-style: error
no-redundant-for: error
no-ambiguous-ampersand: error
no-redundant-role: error
no-self-closing: error
no-trailing-whitespace: error
prefer-button: error
prefer-native-element: error
prefer-tbody: error
presentation-role-style: error
script-type: error
text-content: error
unique-landmark: error
valid-id: error
void-style: error

Rules it enables

# The rules of html-validate:standard that Sudsy has, at html-validate's severity (error).
# Rules Sudsy turns on by default that the preset does not have stay off.
html:
lint:
rules:
attr-spacing: error
area-alt: error
aria-label-misuse: error
attribute-allowed-values: error
deprecated: error
doctype-html: error
element-name: error
element-permitted-content: error
element-permitted-occurrences: error
element-permitted-order: error
element-required-content: error
element-required-attributes: error
map-dup-name: error
multiple-labeled-controls: error
no-abstract-role: error
no-missing-references: off
no-deprecated-attr: error
no-duplicate-id: error
no-duplicate-keys: error
no-multiple-main: error
no-void-end-tag: error
unrecognized-char-ref: error

Rules it enables

# HTMLHint's default rules that Sudsy has, at warn.
html:
lint:
rules:
attr-case: warn
attr-quotes: warn
deprecated: warn
doctype-html: warn
element-case: warn
element-required-attributes: warn
input-missing-label: warn
missing-doctype: warn
no-duplicate-id: warn
no-duplicate-keys: warn
no-implicit-button-type: warn
no-implicit-close: warn
no-inline-style: warn
no-raw-gt: warn
no-style-tag: warn
void-style: warn

Rules it enables

# Google's Java style guide as Checkstyle's google_checks.xml reads it (the checks Sudsy has; the
# rest are in docs/ai/parity/checkstyle.yaml). The layout is google-java-format's, the default.
java:
format:
indent_size: 2
line_width: 100
lint:
rules:
array-type-style: warn
no-wildcard-imports: warn
modifier-order: warn
curly: warn
max-line-length:
level: warn
options:
max: 100
doc-paragraph: warn
doc-asterisk: warn
doc-tag-indent: warn
doc-summary:
level: warn
options:
forbidden_fragments: '^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )|^[a-z]'
todo-comment: warn
avoid-unicode-escape: warn
illegal-escape-text: warn
array-bracket-space: warn
abbreviation-in-name:
level: warn
options:
names: '^(?:[^A-Z]|[A-Z][^A-Z])*[A-Z]?$'
missing-doc-comment:
level: warn
options:
allowed_annotations: [Override, Test]
property_accessors: true
naming-convention:
level: warn
options:
packages: '^[a-z]+(\.[a-z][a-z0-9]*)*$'
types: '^[A-Z][a-zA-Z0-9]*$'
methods: '^[a-z](?:[a-z]|[0-9]+(?:_[0-9]+)*)+(?:[A-Z](?:[a-z]|[0-9]+(?:_[0-9]+)*)+)*[A-Z]?$'
test_methods: '^[a-z][a-z0-9]+(?:[A-Z][a-z0-9]+)*[A-Z]?(?:_[a-z][a-z0-9]+(?:[A-Z][a-z0-9]+)*[A-Z]?)*$'
members: '^[a-z](?:[a-z]|[0-9]+(?:_[0-9]+)*)(?:[a-zA-Z]|[0-9]+(?:_[0-9]+)*)*$'
parameters: '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'
catch_parameters: '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'
locals: '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'

Biome’s JS and TS defaults: Sudsy’s defaults are Prettier’s, so only tab indent and LF differ.

Rules it enables

# Formats like Biome's JS and TS output with its defaults: Sudsy's defaults are Prettier's, and Biome differs in the
# indentation (a tab) and the line ending (always LF).
js:
format:
indent_style: tab
end_of_line: lf

Biome’s recommended lint rules that Sudsy has, through the eslint and typescript-eslint rules each lists as its source, at error; the rules with no Sudsy rule are in the file header.

Rules it enables

# The rules of Biome's recommended set (JavaScript, TypeScript and JSX; biomejs.dev rules page) that Sudsy has through the
# eslint and typescript-eslint rules each Biome rule lists as its source, at Biome's severity (error for most, warn for some).
# Rules with no mapped Sudsy rule (172): noAccessKey, noAmbiguousAnchorText, noAriaHiddenOnFocusable, noAriaUnsupportedElements, noAutofocus, noDistractingElements, noHeaderScope, noInteractiveElementToNoninteractiveRole, noLabelWithoutControl, noNoninteractiveElementToInteractiveRole, noNoninteractiveTabindex, noPositiveTabindex, noRedundantAlt, noRedundantRoles, noStaticElementInteractions, noSvgWithoutTitle, useAltText, useAnchorContent, useAriaActivedescendantWithTabindex, useAriaPropsForRole, useAriaPropsSupportedByRole, useButtonType, useFocusableInteractive, useHeadingContent, useHtmlLang, useIframeTitle, useKeyWithClickEvents, useKeyWithMouseEvents, useMediaCaption, useSemanticElements, useValidAnchor, useValidAriaProps, useValidAriaRole, useValidAriaValues, useValidAutocomplete, useValidLang, noCommaOperator, noEmptyTypeParameters, noFlatMapIdentity, noStaticOnlyClass, noThisInStatic, noUselessConstructor, noUselessContinue, noUselessEmptyExport, noUselessFragments, noUselessLabel, noUselessLoneBlockStatements, noUselessRename, noUselessStringRaw, noUselessSwitchCase, noUselessUndefinedInitialization, useArrowFunction, useDateNow, useFlatMap, useIndexOf, useLiteralKeys, useMathMinMax, useNumericLiterals, useOptionalChain, useRegexLiterals, useSimpleNumberKeys, noChildrenProp, noComponentHookFactories, noConstantMathMinMaxClamp, noConstructorReturn, noGlobalObjectCalls, noInnerDeclarations, noInvalidBuiltinInstantiation, noInvalidConstructorSuper, noJsxNamespace, noNonoctalDecimalEscape, noPlaywrightMissingAwait, noPrivateImports, noQwikUseVisibleTask, noReactNativeRawText, noRenderReturnValue, noSetterReturn, noStringCaseMismatch, noUnreachableSuper, noUnsafeOptionalChaining, noUnusedFunctionParameters, noUnusedImports, noUnusedLabels, noUnusedPrivateClassMembers, noVoidElementsWithChildren, noVoidTypeReturn, noVueDataObjectDeclaration, noVueDuplicateKeys, noVueImportCompilerMacros, noVueRefAsOperand, noVueReservedKeys, noVueReservedProps, useExhaustiveDependencies, useHookAtTopLevel, useImageSize, useInlineScriptId, useJsxKeyInIterable, useParseIntRadix, usePlaywrightValidDescribeCallback, useQwikClasslist, useQwikLoaderLocation, useQwikMethodUsage, useQwikValidLexicalScope, useReactAsyncServerFunction, useReactNativePlatformComponents, useValidForDirection, noAccumulatingSpread, noDynamicNamespaceImportAccess, noImgElement, noUnwantedPolyfillio, useDomNodeTextContent, useGoogleFontPreconnect, noBlankTarget, noDangerouslySetInnerHtml, noDangerouslySetInnerHtmlWithChildren, noGlobalEval, noScriptUrl, noHeadElement, useArrayLiterals, useExponentiationOperator, useExportType, useLiteralEnumMembers, useNodejsImportProtocol, useShorthandFunctionType, useTemplate, useVueMultiWordComponentNames, useVueNextTickPromise, noApproximativeNumericConstant, noArrayIndexKey, noCatchAssign, noCommentText, noConfusingLabels, noConfusingVoidType, noConstEnum, noDocumentCookie, noDocumentImportInPage, noDoubleEquals, noDrizzleDeleteWithoutWhere, noDrizzleUpdateWithoutWhere, noDuplicateJsxProps, noDuplicateParameters, noDuplicateTestHooks, noEmptyInterface, noExportsInTest, noFocusedTests, noGlobalAssign, noGlobalIsFinite, noGlobalIsNan, noHeadImportInDocument, noIdenticalTestTitle, noImplicitAnyLet, noLabelVar, noMisrefactoredShorthandAssign, noOctalEscape, noProto, noReactNativeDeepImports, noReactSpecificProps, noReactStringRefs, noRedundantUseStrict, noSuspiciousSemicolonInJsx, noTemplateCurlyInString, noThenProperty, noUndeclaredEnvVars, noUnsafeDeclarationMerging, noUselessEscapeInString, noUselessRegexBackrefs, noVueArrowFuncInWatch, useDefaultSwitchClauseLast, useGoogleFontDisplay, useIsArray, useIterableCallbackReturn, useNamespaceKeyword
js:
lint:
rules:
no-regex-spaces: error
prefer-rest-params: error
no-empty-object-type: error
no-unsafe-function-type: error
no-wrapper-object-types: error
no-extra-boolean-cast: error
no-useless-catch: error
no-useless-escape: error
no-unneeded-ternary: error
no-this-alias: error
no-unnecessary-type-constraint: error
no-const-assign: error
no-constant-condition: error
no-empty-character-class: error
no-empty-pattern: error
use-before-define: error
no-loss-of-precision: error
no-self-assign: error
no-case-declarations: error
unreachable-code: error
no-unsafe-finally: error
unused-variable: error
unused-parameter: error
use-isnan: error
valid-typeof: error
require-yield: error
no-non-null-assertion: error
prefer-const: error
consistent-type-imports: error
no-assignment-in-condition: error
no-async-promise-executor: error
no-class-assign: error
no-compare-neg-zero: error
no-control-regex: error
no-debugger: error
no-duplicate-case: error
no-dupe-class-members: error
no-dupe-else-if: error
no-duplicate-enum-values: error
no-duplicate-keys: error
no-explicit-any: error
no-extra-non-null-assertion: error
no-fallthrough: error
no-func-assign: error
no-import-assign: error
no-irregular-whitespace: error
no-misleading-character-class: error
no-misused-new: error
no-non-null-asserted-optional-chain: error
no-prototype-builtins: error
redeclared-variable: error
no-self-compare: error
no-shadow-restricted-names: error
no-sparse-arrays: error
ban-ts-comment: error
no-unsafe-negation: error
no-with: error
adjacent-overload-signatures: error
getter-return: error

Rules it enables

# The rules of ESLint's recommended config that Sudsy has, at ESLint's severity (error).
js:
lint:
rules:
getter-return: error
no-async-promise-executor: error
no-case-declarations: error
no-class-assign: error
no-compare-neg-zero: error
no-assignment-in-condition: error
no-const-assign: error
no-control-regex: error
no-constant-comparison: error
no-constant-condition: error
no-debugger: error
no-delete-var: error
no-dupe-class-members: error
no-dupe-else-if: error
no-duplicate-case: error
no-duplicate-keys: error
no-empty-block: error
no-empty-catch: error
no-empty-character-class: error
no-empty-pattern: error
no-extra-boolean-cast: error
no-fallthrough: error
no-func-assign: error
no-import-assign: error
no-irregular-whitespace: error
no-loss-of-precision: error
no-misleading-character-class: error
no-octal: error
no-prototype-builtins: error
redeclared-variable: error
no-regex-spaces: error
no-self-assign: error
no-shadow-restricted-names: error
no-sparse-arrays: error
undefined-variable: error
no-unexpected-multiline: error
unreachable-code: error
no-unsafe-finally: error
no-unsafe-negation: error
no-useless-expression: error
unused-variable: error
unused-parameter: error
no-useless-catch: error
no-useless-escape: error
no-with: error
require-yield: error
use-isnan: error
valid-typeof: error

oxlint’s default (correctness) rules that Sudsy has, through the eslint and typescript-eslint catalogs, at warn; the rules with no Sudsy rule are in the file header.

Rules it enables

# The rules of oxlint's default set (the `correctness` category, version 1.94.0, `oxlint --print-config`) that Sudsy has,
# at oxlint's severity (warn), mapped through the eslint and typescript-eslint catalogs.
# Rules with no mapped Sudsy rule (66): constructor-super, for-direction, no-caller, no-empty-static-block, no-eval, no-ex-assign, no-global-assign, no-invalid-regexp, no-iterator, no-new-native-nonconstructor, no-nonoctal-decimal-escape, no-obj-calls, no-setter-return, no-this-before-super, no-unassigned-vars, no-unsafe-optional-chaining, no-unused-labels, no-unused-private-class-members, no-useless-backreference, no-useless-rename, oxc/bad-array-method-on-arguments, oxc/bad-char-at-comparison, oxc/bad-comparison-sequence, oxc/bad-match-all-arg, oxc/bad-min-max-func, oxc/bad-object-literal-comparison, oxc/bad-replace-all-arg, oxc/const-comparisons, oxc/double-comparisons, oxc/erasing-op, oxc/missing-throw, oxc/number-arg-out-of-range, oxc/only-used-in-recursion, oxc/uninvoked-array-callback, typescript/await-thenable, typescript/no-array-delete, typescript/no-base-to-string, typescript/no-duplicate-type-constituents, typescript/no-floating-promises, typescript/no-for-in-array, typescript/no-implied-eval, typescript/no-meaningless-void-operator, typescript/no-misused-spread, typescript/no-redundant-type-constituents, typescript/no-unnecessary-parameter-property-assignment, typescript/no-unsafe-declaration-merging, typescript/no-unsafe-unary-minus, typescript/no-useless-default-assignment, typescript/no-useless-empty-export, typescript/prefer-namespace-keyword, typescript/require-array-sort-compare, typescript/restrict-template-expressions, typescript/unbound-method, unicorn/no-await-in-promise-methods, unicorn/no-empty-file, unicorn/no-invalid-fetch-options, unicorn/no-invalid-remove-event-listener, unicorn/no-new-array, unicorn/no-single-promise-in-promise-methods, unicorn/no-thenable, unicorn/no-unnecessary-await, unicorn/no-useless-fallback-in-spread, unicorn/no-useless-length-check, unicorn/no-useless-spread, unicorn/prefer-set-size, unicorn/prefer-string-starts-ends-with
js:
lint:
rules:
getter-return: warn
no-async-promise-executor: warn
no-class-assign: warn
no-compare-neg-zero: warn
no-assignment-in-condition: warn
no-const-assign: warn
no-constant-comparison: warn
no-constant-condition: warn
no-control-regex: warn
no-debugger: warn
no-delete-var: warn
no-dupe-class-members: warn
no-dupe-else-if: warn
no-duplicate-keys: warn
no-duplicate-case: warn
no-empty-character-class: warn
no-empty-pattern: warn
no-extra-boolean-cast: warn
no-func-assign: warn
no-import-assign: warn
no-irregular-whitespace: warn
no-loss-of-precision: warn
no-misleading-character-class: warn
no-self-assign: warn
no-shadow-restricted-names: warn
no-sparse-arrays: warn
unreachable-code: warn
no-unsafe-finally: warn
no-unsafe-negation: warn
no-useless-expression: warn
unused-variable: warn
unused-parameter: warn
no-useless-catch: warn
no-useless-escape: warn
no-with: warn
require-yield: warn
use-isnan: warn
valid-typeof: warn
no-duplicate-enum-values: warn
no-extra-non-null-assertion: warn
no-misused-new: warn
no-non-null-asserted-optional-chain: warn
no-this-alias: warn
no-wrapper-object-types: warn
prefer-as-const: warn
triple-slash-reference: warn

Rules it enables

# The rules of typescript-eslint's recommended config that Sudsy has, at its severity (error).
js:
lint:
rules:
ban-ts-comment: error
no-duplicate-enum-values: error
no-empty-object-type: error
no-explicit-any: error
no-extra-non-null-assertion: error
no-misused-new: error
no-namespace: error
no-non-null-asserted-optional-chain: error
no-require-imports: error
no-this-alias: error
no-unnecessary-type-constraint: error
no-unsafe-function-type: error
no-useless-expression: error
unused-variable: error
unused-parameter: error
no-var: error
no-wrapper-object-types: error
prefer-as-const: error
prefer-const: error
prefer-rest-params: error
prefer-spread: error
triple-slash-reference: error

Biome’s defaults: tab indent, width 80, LF, collapse: opening_break; the same package.json override.

Rules it enables

# Formats like Biome's JSON output with its defaults: tabs, 80 columns, LF, an object stays
# expanded when a line break follows its opening brace, an array is on one line when it fits.
# package.json and the lockfiles are printed fully expanded.
json:
format:
line_width: 80
indent_style: tab
indent_size: 2
end_of_line: lf
bracket_spacing: true
array_bracket_spacing: false
collapse: opening_break
trailing_commas: never
overrides:
- files: ["package.json", "package-lock.json", "composer.json"]
json:
format:
collapse: never

dprint-plugin-json defaults: width 120, two spaces, LF, collapse: opening_break, no trailing commas. Speed comparison only (scripts/speed.sh dprint).

Rules it enables

# Formats like dprint's JSON output with its defaults (dprint-plugin-json 0.25): 120 columns, two spaces, LF, an object or
# array stays expanded when a line break follows its opening delimiter, no trailing commas.
json:
format:
line_width: 120
indent_size: 2
end_of_line: lf
bracket_spacing: true
array_bracket_spacing: false
collapse: opening_break
trailing_commas: never

The lint rules of eslint-plugin-jsonc flat/recommended-with-jsonc that Sudsy has: no-duplicate-keys at error; the syntax rules are the parser’s diagnostics. Checked against ESLint by scripts/parity.sh coverage eslint-jsonc.

Rules it enables

# The rules of eslint-plugin-jsonc's `flat/recommended-with-jsonc` that Sudsy has, at ESLint's severity (error):
# `jsonc/no-dupe-keys`, `jsonc/no-useless-escape`. The syntax rules (`valid-json-number`, `no-nan`, ...) are the parser's diagnostics.
json:
lint:
rules:
no-duplicate-keys: error
no-useless-escape: error

Width 80, LF, objects stay expanded after an opening line break (collapse: opening_break); package.json, package-lock.json and composer.json fully expanded (overrides, collapse: never). Number arrays not filled, numbers not normalized.

Rules it enables

# Formats like Prettier's JSON output: 80 columns, LF, an object stays expanded when its first key
# is on a line of its own, an array is on one line when it fits. package.json, package-lock.json
# and composer.json are printed fully expanded, like JSON.stringify.
json:
format:
line_width: 80
indent_size: 2
end_of_line: lf
bracket_spacing: true
array_bracket_spacing: false
collapse: opening_break
trailing_commas: never
overrides:
- files: ["package.json", "package-lock.json", "composer.json"]
json:
format:
collapse: never

Rules it enables

# ktlint's ktlint_official rules that Sudsy has, at warn, with their default options.
kotlin:
lint:
rules:
argument-list-wrapping: warn
class-signature: warn
function-signature: warn
parameter-list-wrapping: warn
trailing-comma-on-call-site: warn
trailing-comma-on-declaration-site: warn
multiline-expression-wrapping: warn
chain-method-continuation: warn
function-expression-body: warn
multiline-if-else: warn
when-entry-bracing: warn
statement-wrapping: warn
newline-wrapping: warn
import-ordering: warn
no-single-line-block-comment: warn
block-comment-after-open: warn
blank-line-between-when-conditions: warn
blank-line-between-declarations: warn
class-naming: warn
filename: warn
function-naming: warn
property-naming: warn
comment-space: warn
curly:
level: warn
options:
style: chain
enum-entry-name-case: warn
max-line-length: warn
modifier-order:
level: warn
options:
report: list
no-empty-class-body: warn
no-empty-file: warn
no-unit-return: warn
no-wildcard-imports: warn
package-name: warn
unused-import: warn

Rules it enables

# checkmake's rules, all on as checkmake runs them (its defaults: 5 lines of recipe, all, clean and test required).
makefile:
lint:
rules:
min-phony: warn
phony-declared: warn
timestamp-expanded: warn
max-body-length: warn
unique-targets: warn

Rules it enables

# markdownlint's default rules that Sudsy has, at warn, with their default options.
markdown:
lint:
rules:
commands-show-output: warn
descriptive-link-text: warn
fenced-code-language: warn
heading-increment: warn
heading-style: warn
max-line-length:
level: warn
options:
max: 80
no-alt-text: warn
no-bare-urls: warn
no-duplicate-heading: warn
no-emphasis-as-heading: warn
no-empty-links: warn
no-hard-tabs:
level: warn
options:
ignore_kinds: [FrontMatter]
no-inline-html: warn
no-missing-space-atx: warn
no-reversed-links: warn
no-space-in-code: warn
no-space-in-links: warn
no-trailing-punctuation: warn
single-title: warn

Prettier 3.9 with proseWrap: preserve: two-column list alignment, LF. Checked against Prettier by scripts/parity.sh format prettier.

Rules it enables

# Formats like Prettier's Markdown with its defaults: prose kept as written (`proseWrap: preserve`),
# two-space tab width for list alignment, LF.
markdown:
format:
indent_size: 2
end_of_line: lf
final_newline: true

Rules it enables

# PHPStan level 0 checks that Sudsy has, at warn.
php:
lint:
rules:
undefined-variable: warn
unsafe-new-static: warn
no-unset-hookable-property: warn
no-inner-function: warn
implicit-nullable-parameter: warn
class-not-found: warn

Rules it enables

# PSScriptAnalyzer's rules that Sudsy has, at its severities (Error is error, Warning is warn).
powershell:
lint:
rules:
no-cmdlet-aliases: warn
no-print: warn
no-eval: warn
no-plain-text-secure-string: error
no-wmi-cmdlets: warn
no-plain-text-password: warn
no-default-true-switch: warn
no-empty-catch: warn
approved-verbs: warn
no-global-vars: warn
no-automatic-variable-assignment: warn
null-comparison-side: warn
supports-should-process: warn
singular-nouns: warn
process-block-for-pipeline: warn
missing-mandatory-parameter: warn
unused-variable: warn
unused-parameter: warn

buf’s STANDARD lint category: the rules Sudsy has at warn (the formatter has no style options). Checked against buf by scripts/parity.sh buf.

Rules it enables

# buf's STANDARD lint category: the rules Sudsy has, at warn (the rest are in docs/ai/parity/buf.yaml).
protobuf:
lint:
rules:
message-pascal-case: warn
enum-pascal-case: warn
service-pascal-case: warn
rpc-pascal-case: warn
field-lower-snake-case: warn
oneof-lower-snake-case: warn
enum-value-upper-snake-case: warn
enum-zero-value-suffix: warn
enum-no-allow-alias: warn
enum-first-value-zero:
level: warn
options: { proto2: true }
enum-value-prefix: warn
package-defined: warn
syntax-specified: warn
package-lower-snake-case: warn
package-version-suffix: warn
import-no-public: warn
field-not-required: warn
service-suffix: warn
rpc-request-standard-name: warn
rpc-response-standard-name: warn
rpc-request-response-unique: warn
import-used: warn
file-lower-snake-case: warn

Rules it enables

# ruff 0.17's default rule set (`ruff check --isolated`) that Sudsy has, at warn; the rules ruff reports as errors for a syntax error stay errors.
python:
lint:
rules:
any-eq-parameter: warn
assert-tuple: warn
no-broad-catch:
level: warn
options:
types: [Exception, BaseException]
bare-raise-outside-handler: warn
break-outside-loop: warn
cached-method: warn
collapsible-if: warn
continue-outside-loop: warn
custom-type-var-return: warn
datetime-utc-alias: warn
default-except-not-last: warn
default-type-arguments: warn
deprecated-import: warn
deprecated-typing-alias: warn
double-negation: warn
no-eval: warn
explicit-return-none: warn
f-string: warn
f-string-missing-placeholders: warn
function-call-in-default: warn
future-feature-not-defined: warn
generic-class: warn
generic-function: warn
get-attr-with-constant: warn
hasattr-call: warn
if-expr-with-false-true: warn
if-expr-with-true-false: warn
if-tuple: warn
if-with-same-arms: warn
implicit-concat-in-collection: warn
in-dict-keys: warn
invalid-escape-sequence: warn
invalid-print-syntax: warn
is-literal: warn
late-future-import: warn
no-debugger: warn
multiple-starred-expressions: warn
multiple-starts-ends-with: warn
mutable-argument-default: warn
mutable-class-default: warn
needless-bool: warn
negate-equal-op: warn
negate-not-equal-op: warn
nested-with: warn
no-duplicate-keys: warn
open-file-without-with: warn
optional-annotation: warn
os-error-alias: warn
outdated-version-block: warn
percent-format-expected-mapping: warn
percent-format-expected-sequence: warn
percent-format-extra-named-arguments: warn
percent-format-invalid-format: warn
percent-format-missing-argument: warn
percent-format-mixed-positional-and-named: warn
percent-format-positional-count-mismatch: warn
percent-format-star-requires-sequence: warn
percent-format-unsupported-format-character: warn
printf-string-formatting: warn
quoted-annotation: warn
raise-not-implemented: warn
no-throw-generic: warn
redeclared-variable: warn
redundant-tuple-in-exception-handler: warn
regex-flag-alias: warn
return-outside-function: warn
set-attr-with-constant: warn
shadowed-variable: warn
static-join: warn
string-dot-format-extra-named-arguments: warn
string-dot-format-extra-positional-arguments: warn
string-dot-format-invalid-format: warn
string-dot-format-missing-arguments: warn
string-dot-format-mixing-automatic: warn
subprocess-run-without-check: warn
no-empty-catch:
level: warn
options:
comment_handles: false
type-alias-annotation: warn
type-check-without-type-error: warn
type-var-name-variance: warn
undefined-export: warn
use-before-define: warn
undefined-local-with-nested-import-star-usage: warn
undefined-variable: warn
unicode-literal: warn
union-annotation: warn
unnecessary-collection-call: warn
unnecessary-placeholder: warn
unsorted-dunder-all: warn
unsorted-dunder-slots: warn
unsorted-imports: warn
unused-annotation: warn
unused-import: warn
unused-unpacked-variable: warn
unused-variable: warn
no-useless-expression: warn
useless-import-alias: warn
useless-object-inheritance: warn
verbose-raise: warn
yield-outside-function: warn

Rules it enables

# RuboCop default Lint cops that Sudsy has, at warn.
ruby:
lint:
rules:
ambiguous-block-association: warn
binary-operator-with-identical-operands: warn
boolean-symbol: warn
constant-definition-in-block: warn
empty-when: warn
float-comparison: warn
hash-compare-by-identity: warn
ineffective-access-modifier: warn
inherit-exception: warn
interpolation-check: warn
literal-in-interpolation: warn
missing-super: warn
mixed-regexp-capture-types: warn
no-assignment-in-condition: warn
no-assignment-in-logical-condition: warn
parentheses-as-grouped-expression: warn
post-condition-loop: warn
raise-exception: warn
redundant-string-coercion: warn
no-broad-catch: warn
return-in-void-context: warn
no-self-assign: warn
struct-new-override: warn
no-empty-catch: warn
underscore-prefixed-variable-used: warn
unknown-rule-in-directive: warn
unused-block-argument: warn
unused-local-variable: warn
unused-method-argument: warn
useless-access-modifier: warn
useless-method-definition: warn
useless-times: warn

Rules it enables

# shellcheck's checks that Sudsy has, at shellcheck's severities (error is error; warning, info and style are warn).
shell:
lint:
rules:
quote-command-substitution: warn
quote-variable: warn
quote-at-expansion: error
quote-star-expansion: warn
no-backticks: warn
declare-and-assign-separately: warn
cd-without-exit: warn
useless-cat: warn
useless-echo: warn
read-without-raw: warn
printf-variable-format: warn
trap-expands-now: warn
no-ls-grep: warn
no-ps-grep: warn
grep-count: warn
no-egrep: warn
no-which: warn
test-exit-status: warn
test-and-or: warn
test-negated-empty: warn
and-or-is-not-if-else: warn
iterate-ls-output: warn
iterate-find-output: warn
find-xargs-print0: warn
quote-in-quotes: warn
array-in-string: error
quote-array-element: warn
split-command-output: warn
assignment-space: warn
unset-glob: warn
unquoted-pattern: warn
echo-in-substitution: warn
test-grep-output: warn
iterate-file-output: warn
eval-array: warn
assignment-not-seen: warn
array-without-index: warn
unused-variable: warn
unassigned-variable: warn

Rules it enables

# Formats like shfmt with its defaults (tabs): trailing comments of consecutive lines aligned,
# `<<-` heredocs re-indented.
shell:
format:
indent_style: tab
comment_column: align
heredoc_indent: reindent
case_last_terminator: add

Rules it enables

# sqlfluff's default rules that Sudsy has, at warn, with their default options.
sql:
lint:
rules:
count-star: warn
distinct-group-by: warn
duplicate-table-alias: warn
else-null: warn
expression-alias: warn
function-case: warn
identifier-case: warn
implicit-alias: warn
inner-join: warn
keyword-case: warn
literal-case: warn
max-line-length:
level: warn
options:
max: 80
allow_non_breakable_words: false
null-comparison: warn
prefer-coalesce: warn
right-join: warn
detached-semicolon: warn
self-alias: warn
type-case: warn
special-chars-in-identifier: warn
keyword-identifier: warn
needless-quotes: warn
unknown-columns: warn
unqualified-reference: warn
inconsistent-reference: warn
duplicate-column-alias: warn
unused-alias: warn
group-order-style: warn
union-distinct: warn
unused-cte: warn

taplo 0.10 defaults: width 80, two spaces, LF, collapse: always (an array that fits goes on one line), up to two blank lines (max_blank_lines: 2) and align_comments: true. Checked against taplo by scripts/parity.sh format taplo.

Rules it enables

# Formats like taplo with its defaults: 80 columns, two spaces, LF, up to two blank lines kept,
# arrays that fit on one line are collapsed, trailing comments of consecutive entries aligned.
toml:
format:
line_width: 80
indent_style: space
indent_size: 2
end_of_line: lf
final_newline: true
bracket_spacing: true
array_bracket_spacing: false
collapse: always
trailing_commas: multiline
max_blank_lines: 2
align_comments: true

CSharpier 1.x XML defaults: width 100, two spaces, line endings kept.

Rules it enables

# CSharpier 1.x formats XML with these defaults: 100 columns, two spaces, line endings kept.
xml:
format:
line_width: 100
indent_size: 2
indent_style: space
end_of_line: auto
max_blank_lines: 1

Width 80, LF, quote_style: prefer_double, blank_lines_after_key: remove.

Rules it enables

# Formats like Prettier's YAML output: 80 columns, sequences indented below their key, double
# quotes unless the text contains one, no blank line between a key and its block value.
yaml:
format:
line_width: 80
indent_size: 2
end_of_line: lf
bracket_spacing: true
sequence_indent: indented
quote_style: prefer_double
document_start: preserve
max_blank_lines: 1
blank_lines_after_key: remove

yamllint’s default config: lint levels (line length 80 at error, no-undefined-alias at error, ambiguous-booleans, document-start and comment-space at warn; yamllint’s other rules are off by default and so stay off) and output that satisfies it: comment_spacing: 2, max_blank_lines: 2, sequence_indent: indented, width 80. bracket_spacing: false ({a: 1}) and end_of_line: lf.

Rules it enables

# yamllint's default configuration: output that satisfies it (two spaces before an inline comment,
# at most two blank lines, sequences indented) and the lint levels it sets.
yaml:
format:
line_width: 80
indent_size: 2
sequence_indent: indented
max_blank_lines: 2
comment_spacing: 2
comment_indent: content
end_of_line: lf
bracket_spacing: false
lint:
rules:
max-line-length:
level: error
options:
max: 80
allow_non_breakable_words: true
ambiguous-booleans:
level: warn
options:
check_keys: true
allowed: []
no-trailing-whitespace: error
no-undefined-alias: error
document-start: warn
comment-space: warn
sorted-keys:
level: off
options:
report: misplaced
no-duplicate-anchors: off
no-octal-values: off