slopthreshold 2.1.0.dev22__py3-none-any.whl

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.
Files changed (44) hide show
  1. slopthreshold/__init__.py +1 -0
  2. slopthreshold/guide/STYLE_GUIDE.md +495 -0
  3. slopthreshold/packs/editorconfig-pack/.editorconfig +899 -0
  4. slopthreshold/packs/editorconfig-pack/Directory.Build.props +47 -0
  5. slopthreshold/packs/editorconfig-pack/Directory.Build.targets +16 -0
  6. slopthreshold/packs/editorconfig-pack/Directory.Packages.props +29 -0
  7. slopthreshold/packs/editorconfig-pack/README.md +141 -0
  8. slopthreshold/packs/editorconfig-pack/global.json +7 -0
  9. slopthreshold/packs/editorconfig-pack/nuget.config +19 -0
  10. slopthreshold/packs/editorconfig-pack/ruff.toml +29 -0
  11. slopthreshold/packs/editorconfig-pack/sonar-drift-allowlist.json +10 -0
  12. slopthreshold/packs/frontend-lint-pack/.prettierrc.json +7 -0
  13. slopthreshold/packs/frontend-lint-pack/.stylelintrc.json +64 -0
  14. slopthreshold/packs/frontend-lint-pack/README.md +64 -0
  15. slopthreshold/packs/frontend-lint-pack/eslint.config.mjs +108 -0
  16. slopthreshold/packs/frontend-lint-pack/package.json +23 -0
  17. slopthreshold/packs/frontend-lint-pack/tsconfig.app.json +17 -0
  18. slopthreshold/packs/frontend-lint-pack/tsconfig.base.json +20 -0
  19. slopthreshold/packs/frontend-lint-pack/tsconfig.json +4 -0
  20. slopthreshold/packs/frontend-lint-pack/tsconfig.spec.json +8 -0
  21. slopthreshold/packs/project-guide-starters/app-STYLE_GUIDE.md +35 -0
  22. slopthreshold/packs/project-guide-starters/frontend-STYLE_GUIDE.md +33 -0
  23. slopthreshold/packs/project-guide-starters/library-STYLE_GUIDE.md +36 -0
  24. slopthreshold/packs/three-layer-wiring/.githooks/commit-msg +13 -0
  25. slopthreshold/packs/three-layer-wiring/.githooks/post-merge +8 -0
  26. slopthreshold/packs/three-layer-wiring/.githooks/pre-commit +10 -0
  27. slopthreshold/packs/three-layer-wiring/.githooks/pre-push +14 -0
  28. slopthreshold/packs/three-layer-wiring/.github/actionlint.yaml +3 -0
  29. slopthreshold/packs/three-layer-wiring/.github/workflows/quality.yml +164 -0
  30. slopthreshold/packs/three-layer-wiring/.gitleaks.toml +16 -0
  31. slopthreshold/packs/three-layer-wiring/.hadolint.yaml +6 -0
  32. slopthreshold/packs/three-layer-wiring/README.md +62 -0
  33. slopthreshold/packs/three-layer-wiring/budget.json +14 -0
  34. slopthreshold/tools/check_characters.py +104 -0
  35. slopthreshold/tools/check_ci_config.py +405 -0
  36. slopthreshold/tools/check_package_health.py +554 -0
  37. slopthreshold/tools/check_sonar_drift.py +1123 -0
  38. slopthreshold/tools/mine_sonar_metrics.py +1259 -0
  39. slopthreshold/tools/validate_guide_tags.py +795 -0
  40. slopthreshold/zh.py +973 -0
  41. slopthreshold-2.1.0.dev22.dist-info/METADATA +49 -0
  42. slopthreshold-2.1.0.dev22.dist-info/RECORD +44 -0
  43. slopthreshold-2.1.0.dev22.dist-info/WHEEL +4 -0
  44. slopthreshold-2.1.0.dev22.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.5
2
+ Name: slopthreshold
3
+ Version: 2.1.0.dev22
4
+ Summary: SlopThreshold - the threshold slop doesn't cross. zh CLI: style-guide tag validation, package health gate, Sonar drift and metrics for the ZhEaIsNsAaBn house rules.
5
+ Project-URL: Homepage, https://hassanragai.dev/Documentations/SlopThreshold/
6
+ Project-URL: Repository, https://github.com/ZHEAISNSAABN/ZhEaIsNsAaBn.SlopThreshold
7
+ Author: Hassan Mohamed Ragai
8
+ License: MIT
9
+ Keywords: ai-code-review,code-quality,dotnet,lint,sonarqube,style-guide
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Software Development :: Quality Assurance
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+
19
+ # SlopThreshold
20
+
21
+ **The threshold slop doesn't cross.**
22
+
23
+ SlopThreshold is a code-quality enforcement system: a 258-rule style guide
24
+ for .NET and frontend stacks, build-time enforcement packs, git hooks and CI
25
+ gates, and an AI review skill. This package ships the `zh` command line —
26
+ the deterministic layer that runs the same checks locally, in hooks and in
27
+ CI.
28
+
29
+ ```bash
30
+ pip install slopthreshold
31
+ zh adopt app # install the packs, starter guide, tools and hooks
32
+ zh doctor # check your wiring
33
+ zh check # tags + health + format + lint + secrets
34
+ zh pr # local mirror of CI
35
+ ```
36
+
37
+ Highlights:
38
+
39
+ - **Style-guide tags**: validates `OVERRIDE` / `BYPASS` tags against the
40
+ generalized guide (tiers, approvers, expiry, scopes).
41
+ - **Package health gate**: grades NuGet/npm pins for licence, maintenance
42
+ freshness and known vulnerabilities (OSV), with recorded evidence.
43
+ - **Size thresholds**: method 50 lines, class 500, cognitive complexity 15 —
44
+ enforced by the bundled packs so AI-written code cannot sprawl.
45
+ - **Sonar drift + metrics**: compares your SonarQube profile with the local
46
+ pack and mines repeat findings into pack improvements.
47
+
48
+ Full documentation: https://hassanragai.dev/Documentations/SlopThreshold/
49
+ Source: https://github.com/ZHEAISNSAABN/ZhEaIsNsAaBn.SlopThreshold
@@ -0,0 +1,44 @@
1
+ slopthreshold/__init__.py,sha256=to6dXINKxDkyFAS3r-EUz77XP64BPtQ84az9nXBflZ4,28
2
+ slopthreshold/zh.py,sha256=XzdjFfiDzPbaUFA6OKqWteKyyK3vM2hlS6irW0k8QJY,34243
3
+ slopthreshold/guide/STYLE_GUIDE.md,sha256=oqnhxBU0VuION3vpSJZOs_j7S2g2sjD6V6qAwSUzLVI,58111
4
+ slopthreshold/packs/editorconfig-pack/.editorconfig,sha256=ZuOmZJK7vg7omUjcK_JoiNk2PKO2_RxPntqKxbfK28k,50064
5
+ slopthreshold/packs/editorconfig-pack/Directory.Build.props,sha256=s5T_qxqtrdn2Mfoy8SzJdVljzJJWERUfHrWHBupBFhA,2303
6
+ slopthreshold/packs/editorconfig-pack/Directory.Build.targets,sha256=b9j8qtP4LFOnTimQlvL-ZHvr-J7rFEkPDAn3Q1C2kzc,698
7
+ slopthreshold/packs/editorconfig-pack/Directory.Packages.props,sha256=pQ5N0t-mebuiUYCIMkJ8sV-6rHeXWFB7KRnZw73_Nr0,1329
8
+ slopthreshold/packs/editorconfig-pack/README.md,sha256=-NxB5xtyTgiFcDdURwCHQK5xqAyjiqkos8x3L0Ztuyk,6620
9
+ slopthreshold/packs/editorconfig-pack/global.json,sha256=IMk8p4EtCpgl7vcSFxVvlasvT-Wq3-si68HCS2MAGNM,111
10
+ slopthreshold/packs/editorconfig-pack/nuget.config,sha256=9A12pNryHjIy0iXzk8e8vmpj7OnVc45NOzFOkcNajaM,745
11
+ slopthreshold/packs/editorconfig-pack/ruff.toml,sha256=bhrLPy4l7BfURZPt8WsV15jHPRpbITQNWqeLFCBypSA,915
12
+ slopthreshold/packs/editorconfig-pack/sonar-drift-allowlist.json,sha256=wjNymqpbNEozczzGcT_eXmAHhCOnT7PoXNuBH3dkToM,836
13
+ slopthreshold/packs/frontend-lint-pack/.prettierrc.json,sha256=k2bzuCOdS8Yns1elp09keiCyF6_00yVqF7dApz-gHHI,106
14
+ slopthreshold/packs/frontend-lint-pack/.stylelintrc.json,sha256=c9xWnFq3az0IFsaj5PZBWyOl53oJOT6VhYCao5oot5w,1398
15
+ slopthreshold/packs/frontend-lint-pack/README.md,sha256=bFLqgE9Q3Gb2tlBb40ti2Z50qu7pWCIvP0V1GEMwu2o,3284
16
+ slopthreshold/packs/frontend-lint-pack/eslint.config.mjs,sha256=3K8kVSn1FFZ-r-dzYVGem2pjSGT1fufWfc96b7RYB7g,5710
17
+ slopthreshold/packs/frontend-lint-pack/package.json,sha256=ab3L7BH8TjsU7R7iKOPjGGlH0Lz51pws4xuHT6FLWUE,687
18
+ slopthreshold/packs/frontend-lint-pack/tsconfig.app.json,sha256=coHyoW-ezw-54EuU1Ub4OOWQ_0BIaII3SOnXTKpzGWk,437
19
+ slopthreshold/packs/frontend-lint-pack/tsconfig.base.json,sha256=33IGTGDwvs3VDRDxbnIbMa32zsGv5ulpfQ44ICJxD2U,543
20
+ slopthreshold/packs/frontend-lint-pack/tsconfig.json,sha256=lj6Og7wx4VumjW9s_neyxP85qagjfjs6NXIb6dU_vXg,107
21
+ slopthreshold/packs/frontend-lint-pack/tsconfig.spec.json,sha256=phwmq_ZefwRGTrcedE3yh3AKr3aMMwrBz60SXtGuCuM,197
22
+ slopthreshold/packs/project-guide-starters/app-STYLE_GUIDE.md,sha256=5G_4pOO_M9tj99nD3584ITDcpM2uwoSLF8_btNQ1evk,1448
23
+ slopthreshold/packs/project-guide-starters/frontend-STYLE_GUIDE.md,sha256=AqWhJ6XAeCvUVp15EKLz99PyojdXy7tSrjcgYxGl6WQ,1332
24
+ slopthreshold/packs/project-guide-starters/library-STYLE_GUIDE.md,sha256=DHpxW-gLmYc4cdT_7wnBGgiMPDgFkQDJHS6a17hjZtE,1388
25
+ slopthreshold/packs/three-layer-wiring/.gitleaks.toml,sha256=AeFU9EHWXduU8bzWwMdSlmV3SIPIhazgcgTEVL96xds,412
26
+ slopthreshold/packs/three-layer-wiring/.hadolint.yaml,sha256=ktXyJGjVA7Koqp5Lu2es7pkpeqI855V_j7jdIRnbl7w,172
27
+ slopthreshold/packs/three-layer-wiring/README.md,sha256=Prc_UH5Oom5hMpMNzaa7Fu84-RuSD8BK98JGHHECVIQ,3183
28
+ slopthreshold/packs/three-layer-wiring/budget.json,sha256=2Jj2J90wnFOreR0vR-A-RJRmCAw1UIQztS1_MfsLIaw,367
29
+ slopthreshold/packs/three-layer-wiring/.githooks/commit-msg,sha256=0orWFngZ3D7E9Osr_BpeQeSuh8FcluGf4ZDoJxQsHk0,404
30
+ slopthreshold/packs/three-layer-wiring/.githooks/post-merge,sha256=v549B7t325TGR_FIxDj9cIrGkhjqQQLaoJ4J_xzzCak,515
31
+ slopthreshold/packs/three-layer-wiring/.githooks/pre-commit,sha256=OsVBaoH2mXK5iRxPTmVclkcUEOEa-se6wDLY-6k0_jM,408
32
+ slopthreshold/packs/three-layer-wiring/.githooks/pre-push,sha256=6hkJ95sPIU2_JB6es03GM6gUagT2dY5nKdKR8aohscM,453
33
+ slopthreshold/packs/three-layer-wiring/.github/actionlint.yaml,sha256=baCLIK6RLWVeYvE79MrMPn1al-lyoIoNMuRIvnYViLo,106
34
+ slopthreshold/packs/three-layer-wiring/.github/workflows/quality.yml,sha256=8KOqPqB7fQ8MrRiFjFYO3oOrpLHjgFcVVOOilh1X_Zs,5987
35
+ slopthreshold/tools/check_characters.py,sha256=TbVa3z2_0_OmJ6j7ii4gUMTWrQjUndklLHOoOk1DZh0,3744
36
+ slopthreshold/tools/check_ci_config.py,sha256=7nwwNdV2d7AcQ5_eu1aNSB4o781Ml2gjlP5xfS5ZOIU,15004
37
+ slopthreshold/tools/check_package_health.py,sha256=9ktRPyHU5RHnaFSzHKydZdgrrYvEibqd-KrKMk43LEs,22626
38
+ slopthreshold/tools/check_sonar_drift.py,sha256=g87Ud4YE-hbhgdUC8El9PLTbjRPPPk_B0z-sU3dMDNk,44297
39
+ slopthreshold/tools/mine_sonar_metrics.py,sha256=_Nz7ua6CsIWrdRiNebox9cVVyWO7msqrhiGuLNHuQl4,47189
40
+ slopthreshold/tools/validate_guide_tags.py,sha256=lwwBVu9GpfqfZ_l_kcvxCzMYTWrZ3N0HVgLowph_EmY,29504
41
+ slopthreshold-2.1.0.dev22.dist-info/METADATA,sha256=7dL-A8217OHg19jCUxYpjRIhM-ZZxERZsGnm2eqLtaY,2184
42
+ slopthreshold-2.1.0.dev22.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
43
+ slopthreshold-2.1.0.dev22.dist-info/entry_points.txt,sha256=1POWeATmKTbh6ziaMLonW7khem1cWZuooerfTYzBG0U,45
44
+ slopthreshold-2.1.0.dev22.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ zh = slopthreshold.zh:main