code-standards 7.31.12__tar.gz → 7.31.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {code_standards-7.31.12 → code_standards-7.31.14}/PKG-INFO +2 -2
- {code_standards-7.31.12 → code_standards-7.31.14}/pyproject.toml +2 -2
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/cli/main.py +80 -135
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/cli-reference.v1.json +1 -1
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/eslint.peers.json +2 -2
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/eslint.strict.mjs +3 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/comment_corpus.py +63 -38
- code_standards-7.31.14/src/sarj_standards/schemas/rule-catalog.v1.json +1 -0
- code_standards-7.31.12/src/sarj_standards/schemas/rule-catalog.v1.json +0 -1
- {code_standards-7.31.12 → code_standards-7.31.14}/.gitignore +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/LICENSE +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/README.md +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/__main__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/_meta.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/api.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/cli/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/Mintfile.mobile.strict +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/basedpyright.python315-watch.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/basedpyright.strict.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/detekt.strict.yml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/doctor.config.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/eslint-compact-formatter.mjs +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/eslint.application.mjs +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/ktlint.strict.editorconfig +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/markdownlint.strict.yaml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/mobile-tools.versions.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/mobsf.strict.yml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/pyright.strict.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/ruff.application.toml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/ruff.python315-watch.toml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/ruff.strict.toml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/rule-calibration-campaign.v1.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/rule-inventory.v1.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/rule-ledger.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/shellcheck.strict.rc +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/swiftformat.strict +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/swiftlint.strict.yml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/taplo.strict.toml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/configs/yamllint.strict.yaml +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/configs.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/doctor.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/exclusions.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/hooks.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/launcher.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/lifecycle.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/manifest.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/packagemanager.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/retired_suppressions.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/scaffold.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/service.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/transaction.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/upgrade.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/adoption/uvtool.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/catalogs/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/catalogs/slack_automations.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/corpus/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/corpus/manifest.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/corpus/snapshot.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/diagnostics/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/diagnostics/analysis.schema.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/diagnostics/baseline.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/diagnostics/models.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/diagnostics/serialize.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/diagnostics/source.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/filesystem.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/analysis.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/external.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/library_policy.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/mobile_tools.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/policy.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/repo_standards.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/runner.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/linting/textlint.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/_values.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/artifacts.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/causality.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/changes.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/process.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/publish.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/registry.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/release_age.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/retirement.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/rollout.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/tags.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/release/typescript.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/cli_reference_artifact.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/config_generation.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/docs.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/hooks.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/ledger.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/repository.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/ruff_freshness.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_authoring.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_catalog_artifact.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_changes.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_inventory_artifact.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_level_source.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_lifecycle.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/rule_maintenance.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/repository/third_party_catalog_artifact.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/rules/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/rules/catalog.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/rules/contracts.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/rules/corpus_runner.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/rules/evaluation.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/setup/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/libs/setup/repository.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/py.typed +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/schemas/__init__.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/schemas/_paths.py +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/schemas/rule-catalog.v1.schema.json +0 -0
- {code_standards-7.31.12 → code_standards-7.31.14}/src/sarj_standards/schemas/slack-automations.v1.schema.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: code-standards
|
|
3
|
-
Version: 7.31.
|
|
3
|
+
Version: 7.31.14
|
|
4
4
|
Summary: One deterministic quality gate for Sarj Python, TypeScript, Swift, Kotlin, shell, SQL, IaC, and repository policy.
|
|
5
5
|
Project-URL: Homepage, https://code-standards.sarj.ai/
|
|
6
6
|
Project-URL: Documentation, https://code-standards.sarj.ai/cli/
|
|
@@ -29,7 +29,7 @@ Requires-Dist: repo-standards==5.16.10
|
|
|
29
29
|
Requires-Dist: ruff==0.16.8
|
|
30
30
|
Requires-Dist: sarj-iac-lint==0.15.11
|
|
31
31
|
Requires-Dist: sarj-python-lint==0.87.3
|
|
32
|
-
Requires-Dist: sarj-sql-lint==0.17.
|
|
32
|
+
Requires-Dist: sarj-sql-lint==0.17.6
|
|
33
33
|
Requires-Dist: semgrep==1.177.0
|
|
34
34
|
Requires-Dist: shellcheck-py==0.11.0.1; (sys_platform == 'darwin' and platform_machine == 'arm64') or (sys_platform == 'darwin' and platform_machine == 'x86_64') or (sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64')
|
|
35
35
|
Requires-Dist: typer==0.27.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "code-standards"
|
|
3
|
-
version = "7.31.
|
|
3
|
+
version = "7.31.14"
|
|
4
4
|
description = "One deterministic quality gate for Sarj Python, TypeScript, Swift, Kotlin, shell, SQL, IaC, and repository policy."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -30,7 +30,7 @@ dependencies = [
|
|
|
30
30
|
"shellcheck-py==0.11.0.1; (sys_platform == 'darwin' and platform_machine == 'arm64') or (sys_platform == 'darwin' and platform_machine == 'x86_64') or (sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64')",
|
|
31
31
|
"sarj-iac-lint==0.15.11",
|
|
32
32
|
"sarj-python-lint==0.87.3",
|
|
33
|
-
"sarj-sql-lint==0.17.
|
|
33
|
+
"sarj-sql-lint==0.17.6",
|
|
34
34
|
"typer==0.27.2",
|
|
35
35
|
]
|
|
36
36
|
|
|
@@ -2575,136 +2575,89 @@ def _dispatch(args: _Args) -> int:
|
|
|
2575
2575
|
return 2
|
|
2576
2576
|
|
|
2577
2577
|
|
|
2578
|
-
class
|
|
2579
|
-
|
|
2580
|
-
|
|
2578
|
+
class _TextJsonFormat(StrEnum):
|
|
2579
|
+
TEXT = "text"
|
|
2580
|
+
JSON = "json"
|
|
2581
2581
|
|
|
2582
2582
|
|
|
2583
|
-
class
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
VALUE_2 = "none"
|
|
2583
|
+
class _JsonTextFormat(StrEnum):
|
|
2584
|
+
JSON = "json"
|
|
2585
|
+
TEXT = "text"
|
|
2587
2586
|
|
|
2588
2587
|
|
|
2589
|
-
class
|
|
2590
|
-
|
|
2591
|
-
|
|
2588
|
+
class _HookChoice(StrEnum):
|
|
2589
|
+
PRE_COMMIT = "pre-commit"
|
|
2590
|
+
LEFTHOOK = "lefthook"
|
|
2591
|
+
NONE = "none"
|
|
2592
2592
|
|
|
2593
2593
|
|
|
2594
|
-
class
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
VALUE_2 = "ktlint"
|
|
2598
|
-
VALUE_3 = "markdownlint"
|
|
2599
|
-
VALUE_4 = "mobile-security"
|
|
2600
|
-
VALUE_5 = "pyright"
|
|
2601
|
-
VALUE_6 = "ruff"
|
|
2602
|
-
VALUE_7 = "shellcheck"
|
|
2603
|
-
VALUE_8 = "swiftformat"
|
|
2604
|
-
VALUE_9 = "swiftlint"
|
|
2605
|
-
VALUE_10 = "taplo"
|
|
2606
|
-
VALUE_11 = "yamllint"
|
|
2607
|
-
|
|
2594
|
+
class _ProfileChoice(StrEnum):
|
|
2595
|
+
STANDARD = "standard"
|
|
2596
|
+
APPLICATION = "application"
|
|
2608
2597
|
|
|
2609
|
-
class _ChoiceCheckOutputFormat(StrEnum):
|
|
2610
|
-
VALUE_0 = "text"
|
|
2611
|
-
VALUE_1 = "json"
|
|
2612
|
-
VALUE_2 = "sarif"
|
|
2613
|
-
VALUE_3 = "github"
|
|
2614
2598
|
|
|
2599
|
+
class _ConfigChoice(StrEnum):
|
|
2600
|
+
DETEKT = "detekt"
|
|
2601
|
+
ESLINT = "eslint"
|
|
2602
|
+
KTLINT = "ktlint"
|
|
2603
|
+
MARKDOWNLINT = "markdownlint"
|
|
2604
|
+
MOBILE_SECURITY = "mobile-security"
|
|
2605
|
+
PYRIGHT = "pyright"
|
|
2606
|
+
RUFF = "ruff"
|
|
2607
|
+
SHELLCHECK = "shellcheck"
|
|
2608
|
+
SWIFTFORMAT = "swiftformat"
|
|
2609
|
+
SWIFTLINT = "swiftlint"
|
|
2610
|
+
TAPLO = "taplo"
|
|
2611
|
+
YAMLLINT = "yamllint"
|
|
2615
2612
|
|
|
2616
|
-
class _ChoiceObserveOutputFormat(StrEnum):
|
|
2617
|
-
VALUE_0 = "text"
|
|
2618
|
-
VALUE_1 = "json"
|
|
2619
|
-
VALUE_2 = "sarif"
|
|
2620
|
-
VALUE_3 = "github"
|
|
2621
2613
|
|
|
2614
|
+
class _DiagnosticFormat(StrEnum):
|
|
2615
|
+
TEXT = "text"
|
|
2616
|
+
JSON = "json"
|
|
2617
|
+
SARIF = "sarif"
|
|
2618
|
+
GITHUB = "github"
|
|
2622
2619
|
|
|
2623
|
-
class _ChoiceExcludeAddExcludeKind(StrEnum):
|
|
2624
|
-
VALUE_0 = "path"
|
|
2625
|
-
VALUE_1 = "rule"
|
|
2626
2620
|
|
|
2621
|
+
class _ExcludeKind(StrEnum):
|
|
2622
|
+
PATH = "path"
|
|
2623
|
+
RULE = "rule"
|
|
2627
2624
|
|
|
2628
|
-
class _ChoiceExcludeRemoveExcludeKind(StrEnum):
|
|
2629
|
-
VALUE_0 = "path"
|
|
2630
|
-
VALUE_1 = "rule"
|
|
2631
2625
|
|
|
2626
|
+
class _ReleaseTargetChoice(StrEnum):
|
|
2627
|
+
TYPESCRIPT = "typescript"
|
|
2628
|
+
BOOTSTRAP = "bootstrap"
|
|
2629
|
+
PYTHON = "python"
|
|
2630
|
+
SQL = "sql"
|
|
2631
|
+
IAC = "iac"
|
|
2632
|
+
STANDARDS = "standards"
|
|
2633
|
+
TSCONFIG = "tsconfig"
|
|
2632
2634
|
|
|
2633
|
-
class _ChoiceShowConfigName(StrEnum):
|
|
2634
|
-
VALUE_0 = "detekt"
|
|
2635
|
-
VALUE_1 = "eslint"
|
|
2636
|
-
VALUE_2 = "ktlint"
|
|
2637
|
-
VALUE_3 = "markdownlint"
|
|
2638
|
-
VALUE_4 = "mobile-security"
|
|
2639
|
-
VALUE_5 = "pyright"
|
|
2640
|
-
VALUE_6 = "ruff"
|
|
2641
|
-
VALUE_7 = "shellcheck"
|
|
2642
|
-
VALUE_8 = "swiftformat"
|
|
2643
|
-
VALUE_9 = "swiftlint"
|
|
2644
|
-
VALUE_10 = "taplo"
|
|
2645
|
-
VALUE_11 = "yamllint"
|
|
2646
2635
|
|
|
2636
|
+
class _TypescriptReleaseMode(StrEnum):
|
|
2637
|
+
CHECK = "check"
|
|
2638
|
+
PACK = "pack"
|
|
2639
|
+
PUBLISH = "publish"
|
|
2647
2640
|
|
|
2648
|
-
class _ChoiceShowConfigProfile(StrEnum):
|
|
2649
|
-
VALUE_0 = "standard"
|
|
2650
|
-
VALUE_1 = "application"
|
|
2651
2641
|
|
|
2642
|
+
class _RepositoryCheck(StrEnum):
|
|
2643
|
+
CI_HISTORY = "ci-history"
|
|
2644
|
+
FILE_CONVENTIONS = "file-conventions"
|
|
2645
|
+
PRIVATE_REFS = "private-refs"
|
|
2646
|
+
VERSIONS = "versions"
|
|
2652
2647
|
|
|
2653
|
-
class _ChoiceMaintainReleaseCreateTagsReleaseTargets(StrEnum):
|
|
2654
|
-
VALUE_0 = "typescript"
|
|
2655
|
-
VALUE_1 = "bootstrap"
|
|
2656
|
-
VALUE_2 = "python"
|
|
2657
|
-
VALUE_3 = "sql"
|
|
2658
|
-
VALUE_4 = "iac"
|
|
2659
|
-
VALUE_5 = "standards"
|
|
2660
|
-
VALUE_6 = "tsconfig"
|
|
2661
2648
|
|
|
2649
|
+
class _RuleCategoryChoice(StrEnum):
|
|
2650
|
+
ARCHITECTURE = "architecture"
|
|
2651
|
+
CORRECTNESS = "correctness"
|
|
2652
|
+
MAINTAINABILITY = "maintainability"
|
|
2653
|
+
PERFORMANCE = "performance"
|
|
2654
|
+
SECURITY = "security"
|
|
2655
|
+
STYLE = "style"
|
|
2656
|
+
TESTING = "testing"
|
|
2662
2657
|
|
|
2663
|
-
class _ChoiceMaintainReleaseTypescriptReleaseMode(StrEnum):
|
|
2664
|
-
VALUE_0 = "check"
|
|
2665
|
-
VALUE_1 = "pack"
|
|
2666
|
-
VALUE_2 = "publish"
|
|
2667
2658
|
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
VALUE_0 = "typescript"
|
|
2671
|
-
VALUE_1 = "bootstrap"
|
|
2672
|
-
VALUE_2 = "python"
|
|
2673
|
-
VALUE_3 = "sql"
|
|
2674
|
-
VALUE_4 = "iac"
|
|
2675
|
-
VALUE_5 = "standards"
|
|
2676
|
-
VALUE_6 = "tsconfig"
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
class _ChoiceMaintainCheckRepoOnly(StrEnum):
|
|
2680
|
-
VALUE_0 = "ci-history"
|
|
2681
|
-
VALUE_1 = "file-conventions"
|
|
2682
|
-
VALUE_2 = "private-refs"
|
|
2683
|
-
VALUE_3 = "versions"
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
class _ChoiceMaintainRulesNewRuleCategory(StrEnum):
|
|
2687
|
-
VALUE_0 = "architecture"
|
|
2688
|
-
VALUE_1 = "correctness"
|
|
2689
|
-
VALUE_2 = "maintainability"
|
|
2690
|
-
VALUE_3 = "performance"
|
|
2691
|
-
VALUE_4 = "security"
|
|
2692
|
-
VALUE_5 = "style"
|
|
2693
|
-
VALUE_6 = "testing"
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
class _ChoiceMaintainRulesChangesOutputFormat(StrEnum):
|
|
2697
|
-
VALUE_0 = "json"
|
|
2698
|
-
VALUE_1 = "text"
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
class _ChoiceMaintainRulesChangesRequiredAddedLevel(StrEnum):
|
|
2702
|
-
VALUE_0 = "warning"
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
class _ChoiceMaintainRulesEvaluateOutputFormat(StrEnum):
|
|
2706
|
-
VALUE_0 = "json"
|
|
2707
|
-
VALUE_1 = "text"
|
|
2659
|
+
class _RequiredAddedLevel(StrEnum):
|
|
2660
|
+
WARNING = "warning"
|
|
2708
2661
|
|
|
2709
2662
|
|
|
2710
2663
|
def _version_option(*, value: bool) -> None:
|
|
@@ -2782,8 +2735,8 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
2782
2735
|
ctx: typer.Context,
|
|
2783
2736
|
*,
|
|
2784
2737
|
output_format: Annotated[
|
|
2785
|
-
|
|
2786
|
-
] =
|
|
2738
|
+
_TextJsonFormat, typer.Option("--format", help="output format (default: text)")
|
|
2739
|
+
] = _TextJsonFormat.TEXT,
|
|
2787
2740
|
repair: Annotated[
|
|
2788
2741
|
bool,
|
|
2789
2742
|
typer.Option(
|
|
@@ -2814,7 +2767,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
2814
2767
|
ctx: typer.Context,
|
|
2815
2768
|
*,
|
|
2816
2769
|
hooks: Annotated[
|
|
2817
|
-
|
|
2770
|
+
_HookChoice | None,
|
|
2818
2771
|
typer.Option("--hooks", help="hook manager (default: detect Lefthook, otherwise pre-commit)"),
|
|
2819
2772
|
] = None,
|
|
2820
2773
|
python_dest: Annotated[
|
|
@@ -2842,7 +2795,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
2842
2795
|
bool,
|
|
2843
2796
|
typer.Option("--force", help="replace conflicting generated lint configuration after review"),
|
|
2844
2797
|
] = False,
|
|
2845
|
-
profile: Annotated[
|
|
2798
|
+
profile: Annotated[_ProfileChoice | None, typer.Option("--profile", hidden=True)] = None,
|
|
2846
2799
|
no_install: Annotated[
|
|
2847
2800
|
bool,
|
|
2848
2801
|
typer.Option("--no-install", help="write wiring without installing dependencies or hooks"),
|
|
@@ -2855,7 +2808,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
2855
2808
|
),
|
|
2856
2809
|
] = False,
|
|
2857
2810
|
only: Annotated[
|
|
2858
|
-
list[
|
|
2811
|
+
list[_ConfigChoice] | None, typer.Option("--config", help="select one config explicitly (repeatable)")
|
|
2859
2812
|
] = None,
|
|
2860
2813
|
) -> int:
|
|
2861
2814
|
return handler(
|
|
@@ -2900,7 +2853,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
2900
2853
|
"--rule", parser=_parse_rule_selector, help="check only this custom ENGINE:ID rule (repeatable)"
|
|
2901
2854
|
),
|
|
2902
2855
|
] = None,
|
|
2903
|
-
output_format: Annotated[
|
|
2856
|
+
output_format: Annotated[_DiagnosticFormat, typer.Option("--format")] = _DiagnosticFormat.TEXT,
|
|
2904
2857
|
output: Annotated[Path | None, typer.Option("--output", help="write JSON or SARIF atomically to PATH")] = None,
|
|
2905
2858
|
max_annotations_per_level: Annotated[int, typer.Option("--max-annotations-per-level", min=0, max=10)] = 10,
|
|
2906
2859
|
files: Annotated[
|
|
@@ -2943,9 +2896,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
2943
2896
|
list[RuleSelector],
|
|
2944
2897
|
typer.Option("--rule", parser=_parse_rule_selector, help="canonical ENGINE:ID selector (repeatable)"),
|
|
2945
2898
|
],
|
|
2946
|
-
output_format: Annotated[
|
|
2947
|
-
_ChoiceObserveOutputFormat, typer.Option("--format")
|
|
2948
|
-
] = _ChoiceObserveOutputFormat.VALUE_0,
|
|
2899
|
+
output_format: Annotated[_DiagnosticFormat, typer.Option("--format")] = _DiagnosticFormat.TEXT,
|
|
2949
2900
|
output: Annotated[Path | None, typer.Option("--output")] = None,
|
|
2950
2901
|
trust_repository_code: Annotated[
|
|
2951
2902
|
bool,
|
|
@@ -3204,7 +3155,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3204
3155
|
def command_exclude_add(
|
|
3205
3156
|
ctx: typer.Context,
|
|
3206
3157
|
*,
|
|
3207
|
-
exclude_kind: Annotated[
|
|
3158
|
+
exclude_kind: Annotated[_ExcludeKind, typer.Argument(metavar="{path,rule}")],
|
|
3208
3159
|
value: Annotated[str, typer.Argument(help="repository-relative glob or canonical engine:rule selector")],
|
|
3209
3160
|
) -> int:
|
|
3210
3161
|
return handler(
|
|
@@ -3221,7 +3172,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3221
3172
|
def command_exclude_remove(
|
|
3222
3173
|
ctx: typer.Context,
|
|
3223
3174
|
*,
|
|
3224
|
-
exclude_kind: Annotated[
|
|
3175
|
+
exclude_kind: Annotated[_ExcludeKind, typer.Argument(metavar="{path,rule}")],
|
|
3225
3176
|
value: Annotated[str, typer.Argument(help="repository-relative glob or canonical engine:rule selector")],
|
|
3226
3177
|
) -> int:
|
|
3227
3178
|
return handler(
|
|
@@ -3262,10 +3213,8 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3262
3213
|
def command_show_config(
|
|
3263
3214
|
ctx: typer.Context,
|
|
3264
3215
|
*,
|
|
3265
|
-
name: Annotated[
|
|
3266
|
-
profile: Annotated[
|
|
3267
|
-
_ChoiceShowConfigProfile, typer.Option("--profile", hidden=True)
|
|
3268
|
-
] = _ChoiceShowConfigProfile.VALUE_0,
|
|
3216
|
+
name: Annotated[_ConfigChoice, typer.Argument()],
|
|
3217
|
+
profile: Annotated[_ProfileChoice, typer.Option("--profile", hidden=True)] = _ProfileChoice.STANDARD,
|
|
3269
3218
|
) -> int:
|
|
3270
3219
|
return handler(
|
|
3271
3220
|
_Args(
|
|
@@ -3377,7 +3326,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3377
3326
|
def command_maintain_release_create_tags(
|
|
3378
3327
|
ctx: typer.Context,
|
|
3379
3328
|
*,
|
|
3380
|
-
release_targets: Annotated[list[
|
|
3329
|
+
release_targets: Annotated[list[_ReleaseTargetChoice], typer.Argument()],
|
|
3381
3330
|
release_commit: Annotated[str, typer.Option("--commit", help="exact commit that was published")],
|
|
3382
3331
|
attempts: Annotated[int, typer.Option("--attempts")] = 6,
|
|
3383
3332
|
delay_seconds: Annotated[float, typer.Option("--delay-seconds")] = 10.0,
|
|
@@ -3462,7 +3411,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3462
3411
|
def command_maintain_release_typescript(
|
|
3463
3412
|
ctx: typer.Context,
|
|
3464
3413
|
*,
|
|
3465
|
-
release_mode: Annotated[
|
|
3414
|
+
release_mode: Annotated[_TypescriptReleaseMode, typer.Argument()],
|
|
3466
3415
|
output: Annotated[Path | None, typer.Option("--output", help="artifact directory (required for pack)")] = None,
|
|
3467
3416
|
) -> int:
|
|
3468
3417
|
return handler(
|
|
@@ -3516,7 +3465,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3516
3465
|
def command_maintain_release_publish(
|
|
3517
3466
|
ctx: typer.Context,
|
|
3518
3467
|
*,
|
|
3519
|
-
release_target: Annotated[
|
|
3468
|
+
release_target: Annotated[_ReleaseTargetChoice, typer.Argument()],
|
|
3520
3469
|
) -> int:
|
|
3521
3470
|
return handler(
|
|
3522
3471
|
_Args(
|
|
@@ -3532,7 +3481,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3532
3481
|
def command_maintain_check(
|
|
3533
3482
|
ctx: typer.Context,
|
|
3534
3483
|
*,
|
|
3535
|
-
repo_only: Annotated[list[
|
|
3484
|
+
repo_only: Annotated[list[_RepositoryCheck] | None, typer.Option("--only")] = None,
|
|
3536
3485
|
commits: Annotated[
|
|
3537
3486
|
str | None, typer.Option("--commits", help="also inspect commit messages in this revision range")
|
|
3538
3487
|
] = None,
|
|
@@ -3682,7 +3631,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3682
3631
|
selector: Annotated[
|
|
3683
3632
|
RuleSelector, typer.Argument(parser=_parse_rule_selector, help="canonical ENGINE:ID selector")
|
|
3684
3633
|
],
|
|
3685
|
-
rule_category: Annotated[
|
|
3634
|
+
rule_category: Annotated[_RuleCategoryChoice, typer.Option("--category")],
|
|
3686
3635
|
rule_summary: Annotated[str, typer.Option("--summary")],
|
|
3687
3636
|
apply_rule: Annotated[bool, typer.Option("--apply", help="create the planned files")] = False,
|
|
3688
3637
|
) -> int:
|
|
@@ -3785,11 +3734,9 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3785
3734
|
*,
|
|
3786
3735
|
before: Annotated[str, typer.Option("--before")],
|
|
3787
3736
|
after: Annotated[str, typer.Option("--after")],
|
|
3788
|
-
output_format: Annotated[
|
|
3789
|
-
_ChoiceMaintainRulesChangesOutputFormat, typer.Option("--format")
|
|
3790
|
-
] = _ChoiceMaintainRulesChangesOutputFormat.VALUE_1,
|
|
3737
|
+
output_format: Annotated[_JsonTextFormat, typer.Option("--format")] = _JsonTextFormat.JSON,
|
|
3791
3738
|
required_added_level: Annotated[
|
|
3792
|
-
|
|
3739
|
+
_RequiredAddedLevel | None,
|
|
3793
3740
|
typer.Option("--require-added-level", help="fail when an added rule does not start at this level"),
|
|
3794
3741
|
] = None,
|
|
3795
3742
|
) -> int:
|
|
@@ -3834,9 +3781,7 @@ def build_app(handler: Callable[[_Args], int] = _dispatch) -> typer.Typer:
|
|
|
3834
3781
|
"--scope", help="corpus ignores baselines/rule exclusions; effective applies adopted repository policy"
|
|
3835
3782
|
),
|
|
3836
3783
|
] = _EvaluationScope.CORPUS,
|
|
3837
|
-
output_format: Annotated[
|
|
3838
|
-
_ChoiceMaintainRulesEvaluateOutputFormat, typer.Option("--format")
|
|
3839
|
-
] = _ChoiceMaintainRulesEvaluateOutputFormat.VALUE_0,
|
|
3784
|
+
output_format: Annotated[_JsonTextFormat, typer.Option("--format")] = _JsonTextFormat.JSON,
|
|
3840
3785
|
output: Annotated[Path | None, typer.Option("--output")] = None,
|
|
3841
3786
|
trust_repository_code: Annotated[
|
|
3842
3787
|
bool,
|