codeguard-cli 2.0.0__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.
Files changed (212) hide show
  1. codeguard_cli-2.0.0/.gitignore +308 -0
  2. codeguard_cli-2.0.0/CHANGELOG.md +79 -0
  3. codeguard_cli-2.0.0/LICENSE +184 -0
  4. codeguard_cli-2.0.0/PKG-INFO +210 -0
  5. codeguard_cli-2.0.0/README.md +164 -0
  6. codeguard_cli-2.0.0/action/README.md +40 -0
  7. codeguard_cli-2.0.0/archive/README.md +18 -0
  8. codeguard_cli-2.0.0/archive/backend/README.md +456 -0
  9. codeguard_cli-2.0.0/archive/frontend/src/App.tsx +205 -0
  10. codeguard_cli-2.0.0/archive/frontend/src/components/Layout/Layout.tsx +439 -0
  11. codeguard_cli-2.0.0/archive/frontend/src/index.css +261 -0
  12. codeguard_cli-2.0.0/archive/frontend/src/index.tsx +196 -0
  13. codeguard_cli-2.0.0/archive/frontend/src/pages/CodeAnalysis/CodeAnalysis.tsx +505 -0
  14. codeguard_cli-2.0.0/archive/frontend/src/pages/Dashboard/Dashboard.tsx +442 -0
  15. codeguard_cli-2.0.0/archive/frontend/src/pages/PerformanceAnalysis/PerformanceAnalysis.tsx +720 -0
  16. codeguard_cli-2.0.0/archive/frontend/src/pages/Reports/Reports.tsx +737 -0
  17. codeguard_cli-2.0.0/archive/frontend/src/pages/SecurityScan/SecurityScan.tsx +523 -0
  18. codeguard_cli-2.0.0/archive/frontend/src/store/themeStore.ts +22 -0
  19. codeguard_cli-2.0.0/archive/frontendv2/README.md +73 -0
  20. codeguard_cli-2.0.0/archive/frontendv2/src/App.css +42 -0
  21. codeguard_cli-2.0.0/archive/frontendv2/src/App.tsx +25 -0
  22. codeguard_cli-2.0.0/archive/frontendv2/src/assets/react.svg +1 -0
  23. codeguard_cli-2.0.0/archive/frontendv2/src/components/Layout/Layout.tsx +122 -0
  24. codeguard_cli-2.0.0/archive/frontendv2/src/index.css +97 -0
  25. codeguard_cli-2.0.0/archive/frontendv2/src/main.tsx +16 -0
  26. codeguard_cli-2.0.0/archive/frontendv2/src/pages/History/History.tsx +182 -0
  27. codeguard_cli-2.0.0/archive/frontendv2/src/pages/Workbench/ChatPanel.tsx +162 -0
  28. codeguard_cli-2.0.0/archive/frontendv2/src/pages/Workbench/EditorPanel.tsx +103 -0
  29. codeguard_cli-2.0.0/archive/frontendv2/src/pages/Workbench/HistoryPanel.tsx +109 -0
  30. codeguard_cli-2.0.0/archive/frontendv2/src/pages/Workbench/ResultsPanel.tsx +230 -0
  31. codeguard_cli-2.0.0/archive/frontendv2/src/pages/Workbench/Workbench.tsx +257 -0
  32. codeguard_cli-2.0.0/archive/frontendv2/src/theme/theme.ts +106 -0
  33. codeguard_cli-2.0.0/archive/frontendv2/src/types.ts +55 -0
  34. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tn/multipart_literal.py +2 -0
  35. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tn/parameterized.py +2 -0
  36. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tn/sql_constant.py +3 -0
  37. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tn/sql_parameterized.py +2 -0
  38. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tn/sql_static.py +2 -0
  39. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tp/concat_var.py +2 -0
  40. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tp/fstring.py +3 -0
  41. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tp/sql_format.py +3 -0
  42. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tp/sql_fstring.py +3 -0
  43. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-001/tp/sql_percent.py +3 -0
  44. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-002/tn/env_secret.py +2 -0
  45. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-002/tn/no_secret.py +1 -0
  46. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-002/tn/placeholder.py +1 -0
  47. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-002/tp/hardcoded_api_key.py +1 -0
  48. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-002/tp/hardcoded_password.py +1 -0
  49. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-002/tp/hardcoded_token.py +1 -0
  50. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-003/tn/ast_literal.py +2 -0
  51. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-003/tn/eval_literal.py +1 -0
  52. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-003/tn/no_eval.py +2 -0
  53. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-003/tp/eval_input.py +2 -0
  54. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-003/tp/eval_variable.py +2 -0
  55. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-003/tp/exec_dynamic.py +2 -0
  56. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tn/json_from_import.py +2 -0
  57. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tn/json_load.py +2 -0
  58. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tn/safe_load.py +2 -0
  59. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tn/yaml_safe_load.py +3 -0
  60. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tn/yaml_safeloader.py +2 -0
  61. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tp/from_import.py +2 -0
  62. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tp/pickle_attr.py +2 -0
  63. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tp/pickle_loads.py +3 -0
  64. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tp/yaml_alias.py +2 -0
  65. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tp/yaml_load.py +3 -0
  66. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-004/tp/yaml_unsafe_loader.py +2 -0
  67. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tn/list_form.py +2 -0
  68. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tn/os_system_literal.py +2 -0
  69. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tn/subprocess_list.py +2 -0
  70. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tn/subprocess_no_shell.py +2 -0
  71. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tn/subprocess_shell_literal.py +2 -0
  72. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tp/from_import_system.py +2 -0
  73. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tp/os_system_concat.py +2 -0
  74. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tp/popen_shell.py +2 -0
  75. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tp/shell_true_fstring.py +2 -0
  76. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tp/subprocess_shell_fstring.py +3 -0
  77. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-005/tp/subprocess_shell_var.py +3 -0
  78. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-101/tn/literals_and_fn.js +7 -0
  79. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-101/tp/eval_fn_timer.js +7 -0
  80. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-102/tn/execfile_literal.js +6 -0
  81. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-102/tp/exec_concat.js +6 -0
  82. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-103/tn/textcontent.js +6 -0
  83. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-103/tp/dom_sinks.js +7 -0
  84. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-104/tn/dsi_literal.tsx +4 -0
  85. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-104/tp/dsi_dynamic.tsx +4 -0
  86. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-105/tn/env.js +4 -0
  87. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-105/tp/secrets.js +6 -0
  88. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-106/tn/jitter.js +6 -0
  89. codeguard_cli-2.0.0/benchmarks/corpus/CG-SEC-106/tp/token_random.js +6 -0
  90. codeguard_cli-2.0.0/benchmarks/run_benchmark.py +175 -0
  91. codeguard_cli-2.0.0/changelog.d/README.md +28 -0
  92. codeguard_cli-2.0.0/docs/architecture.md +38 -0
  93. codeguard_cli-2.0.0/docs/baseline.md +41 -0
  94. codeguard_cli-2.0.0/docs/ci.md +64 -0
  95. codeguard_cli-2.0.0/docs/configuration.md +69 -0
  96. codeguard_cli-2.0.0/docs/contributing.md +13 -0
  97. codeguard_cli-2.0.0/docs/exit-codes.md +17 -0
  98. codeguard_cli-2.0.0/docs/index.md +46 -0
  99. codeguard_cli-2.0.0/docs/install.md +52 -0
  100. codeguard_cli-2.0.0/docs/migration-v2.md +77 -0
  101. codeguard_cli-2.0.0/docs/output-formats.md +55 -0
  102. codeguard_cli-2.0.0/docs/rules/CG-SEC-001.md +24 -0
  103. codeguard_cli-2.0.0/docs/rules/CG-SEC-002.md +24 -0
  104. codeguard_cli-2.0.0/docs/rules/CG-SEC-003.md +23 -0
  105. codeguard_cli-2.0.0/docs/rules/CG-SEC-004.md +29 -0
  106. codeguard_cli-2.0.0/docs/rules/CG-SEC-005.md +24 -0
  107. codeguard_cli-2.0.0/docs/rules/index.md +35 -0
  108. codeguard_cli-2.0.0/docs/suppressions.md +61 -0
  109. codeguard_cli-2.0.0/docs/usage.md +57 -0
  110. codeguard_cli-2.0.0/pyproject.toml +184 -0
  111. codeguard_cli-2.0.0/src/codeguard/__init__.py +7 -0
  112. codeguard_cli-2.0.0/src/codeguard/cli/__init__.py +2 -0
  113. codeguard_cli-2.0.0/src/codeguard/cli/_run.py +230 -0
  114. codeguard_cli-2.0.0/src/codeguard/cli/commands.py +390 -0
  115. codeguard_cli-2.0.0/src/codeguard/cli/formatters.py +422 -0
  116. codeguard_cli-2.0.0/src/codeguard/cli/main.py +206 -0
  117. codeguard_cli-2.0.0/src/codeguard/config/__init__.py +16 -0
  118. codeguard_cli-2.0.0/src/codeguard/config/loader.py +86 -0
  119. codeguard_cli-2.0.0/src/codeguard/config/schema.py +172 -0
  120. codeguard_cli-2.0.0/src/codeguard/engine/__init__.py +25 -0
  121. codeguard_cli-2.0.0/src/codeguard/engine/baseline.py +122 -0
  122. codeguard_cli-2.0.0/src/codeguard/engine/context.py +61 -0
  123. codeguard_cli-2.0.0/src/codeguard/engine/discovery.py +160 -0
  124. codeguard_cli-2.0.0/src/codeguard/engine/finding.py +205 -0
  125. codeguard_cli-2.0.0/src/codeguard/engine/fingerprint.py +94 -0
  126. codeguard_cli-2.0.0/src/codeguard/engine/gitdiff.py +80 -0
  127. codeguard_cli-2.0.0/src/codeguard/engine/policy.py +74 -0
  128. codeguard_cli-2.0.0/src/codeguard/engine/registry.py +78 -0
  129. codeguard_cli-2.0.0/src/codeguard/engine/rule.py +195 -0
  130. codeguard_cli-2.0.0/src/codeguard/engine/runner.py +267 -0
  131. codeguard_cli-2.0.0/src/codeguard/engine/suppressions.py +109 -0
  132. codeguard_cli-2.0.0/src/codeguard/lang/__init__.py +37 -0
  133. codeguard_cli-2.0.0/src/codeguard/lang/base.py +80 -0
  134. codeguard_cli-2.0.0/src/codeguard/lang/javascript.py +20 -0
  135. codeguard_cli-2.0.0/src/codeguard/lang/node.py +137 -0
  136. codeguard_cli-2.0.0/src/codeguard/lang/python_ast.py +29 -0
  137. codeguard_cli-2.0.0/src/codeguard/lang/registry.py +38 -0
  138. codeguard_cli-2.0.0/src/codeguard/lang/treesitter.py +99 -0
  139. codeguard_cli-2.0.0/src/codeguard/lang/typescript.py +24 -0
  140. codeguard_cli-2.0.0/src/codeguard/py.typed +1 -0
  141. codeguard_cli-2.0.0/src/codeguard/rules/__init__.py +6 -0
  142. codeguard_cli-2.0.0/src/codeguard/rules/_jsnodes.py +82 -0
  143. codeguard_cli-2.0.0/src/codeguard/rules/_pyimports.py +60 -0
  144. codeguard_cli-2.0.0/src/codeguard/rules/javascript/__init__.py +9 -0
  145. codeguard_cli-2.0.0/src/codeguard/rules/javascript/cg_sec_101_dynamic_code.py +89 -0
  146. codeguard_cli-2.0.0/src/codeguard/rules/javascript/cg_sec_102_child_process.py +58 -0
  147. codeguard_cli-2.0.0/src/codeguard/rules/javascript/cg_sec_103_dom_xss.py +67 -0
  148. codeguard_cli-2.0.0/src/codeguard/rules/javascript/cg_sec_104_react_dangerous_html.py +54 -0
  149. codeguard_cli-2.0.0/src/codeguard/rules/javascript/cg_sec_105_hardcoded_secret.py +73 -0
  150. codeguard_cli-2.0.0/src/codeguard/rules/javascript/cg_sec_106_weak_random.py +83 -0
  151. codeguard_cli-2.0.0/src/codeguard/rules/meta/__init__.py +55 -0
  152. codeguard_cli-2.0.0/src/codeguard/rules/security/__init__.py +8 -0
  153. codeguard_cli-2.0.0/src/codeguard/rules/security/cg_sec_001_sql_injection.py +110 -0
  154. codeguard_cli-2.0.0/src/codeguard/rules/security/cg_sec_002_hardcoded_secrets.py +184 -0
  155. codeguard_cli-2.0.0/src/codeguard/rules/security/cg_sec_003_eval_exec.py +104 -0
  156. codeguard_cli-2.0.0/src/codeguard/rules/security/cg_sec_004_unsafe_deserialization.py +156 -0
  157. codeguard_cli-2.0.0/src/codeguard/rules/security/cg_sec_005_shell_injection.py +157 -0
  158. codeguard_cli-2.0.0/test_samples/README.md +137 -0
  159. codeguard_cli-2.0.0/tests/__init__.py +1 -0
  160. codeguard_cli-2.0.0/tests/conftest.py +47 -0
  161. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_101/safe.js +7 -0
  162. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_101/vulnerable.js +7 -0
  163. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_102/safe.js +6 -0
  164. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_102/vulnerable.js +6 -0
  165. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_103/safe.js +6 -0
  166. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_103/vulnerable.js +7 -0
  167. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_104/safe.tsx +4 -0
  168. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_104/vulnerable.tsx +4 -0
  169. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_105/safe.js +4 -0
  170. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_105/vulnerable.js +6 -0
  171. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_106/safe.js +6 -0
  172. codeguard_cli-2.0.0/tests/fixtures/javascript/security/cg_sec_106/vulnerable.js +6 -0
  173. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_001/safe.py +37 -0
  174. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_001/vulnerable.py +36 -0
  175. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_002/safe.py +22 -0
  176. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_002/vulnerable.py +17 -0
  177. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_003/safe.py +27 -0
  178. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_003/vulnerable.py +24 -0
  179. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_004/safe.py +25 -0
  180. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_004/vulnerable.py +32 -0
  181. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_005/safe.py +31 -0
  182. codeguard_cli-2.0.0/tests/fixtures/python/security/cg_sec_005/vulnerable.py +26 -0
  183. codeguard_cli-2.0.0/tests/test_cli/__init__.py +1 -0
  184. codeguard_cli-2.0.0/tests/test_cli/test_ci.py +118 -0
  185. codeguard_cli-2.0.0/tests/test_cli/test_commands.py +83 -0
  186. codeguard_cli-2.0.0/tests/test_cli/test_formatters.py +95 -0
  187. codeguard_cli-2.0.0/tests/test_cli/test_scan.py +121 -0
  188. codeguard_cli-2.0.0/tests/test_cli/test_scan_rules.py +50 -0
  189. codeguard_cli-2.0.0/tests/test_cli/test_suppressions_cmd.py +52 -0
  190. codeguard_cli-2.0.0/tests/test_config/__init__.py +1 -0
  191. codeguard_cli-2.0.0/tests/test_config/test_config.py +90 -0
  192. codeguard_cli-2.0.0/tests/test_engine/__init__.py +1 -0
  193. codeguard_cli-2.0.0/tests/test_engine/test_baseline.py +74 -0
  194. codeguard_cli-2.0.0/tests/test_engine/test_discovery.py +82 -0
  195. codeguard_cli-2.0.0/tests/test_engine/test_finding.py +104 -0
  196. codeguard_cli-2.0.0/tests/test_engine/test_fingerprint.py +71 -0
  197. codeguard_cli-2.0.0/tests/test_engine/test_gitdiff.py +60 -0
  198. codeguard_cli-2.0.0/tests/test_engine/test_runner.py +142 -0
  199. codeguard_cli-2.0.0/tests/test_engine/test_suppressions.py +85 -0
  200. codeguard_cli-2.0.0/tests/test_lang/__init__.py +1 -0
  201. codeguard_cli-2.0.0/tests/test_lang/test_python_ast.py +67 -0
  202. codeguard_cli-2.0.0/tests/test_lang/test_treesitter.py +66 -0
  203. codeguard_cli-2.0.0/tests/test_rules/__init__.py +1 -0
  204. codeguard_cli-2.0.0/tests/test_rules/javascript/__init__.py +1 -0
  205. codeguard_cli-2.0.0/tests/test_rules/javascript/test_javascript_rules.py +107 -0
  206. codeguard_cli-2.0.0/tests/test_rules/security/__init__.py +1 -0
  207. codeguard_cli-2.0.0/tests/test_rules/security/test_cg_sec_001.py +80 -0
  208. codeguard_cli-2.0.0/tests/test_rules/security/test_cg_sec_002.py +64 -0
  209. codeguard_cli-2.0.0/tests/test_rules/security/test_cg_sec_003.py +54 -0
  210. codeguard_cli-2.0.0/tests/test_rules/security/test_cg_sec_004.py +88 -0
  211. codeguard_cli-2.0.0/tests/test_rules/security/test_cg_sec_005.py +94 -0
  212. codeguard_cli-2.0.0/tests/test_rules/test_pyimports.py +50 -0
@@ -0,0 +1,308 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ share/python-wheels/
20
+ *.egg-info/
21
+ .installed.cfg
22
+ *.egg
23
+ PYTHONPATH
24
+
25
+ # PyInstaller
26
+ *.manifest
27
+ *.spec
28
+
29
+ # Installer logs
30
+ pip-log.txt
31
+ pip-delete-this-directory.txt
32
+
33
+ # Unit test / coverage reports
34
+ htmlcov/
35
+ .tox/
36
+ .nox/
37
+ .coverage
38
+ .coverage.*
39
+ .cache
40
+ nosetests.xml
41
+ coverage.xml
42
+ *.cover
43
+ *.py,cover
44
+ .hypothesis/
45
+ .pytest_cache/
46
+ cover/
47
+
48
+ # Translations
49
+ *.mo
50
+ *.pot
51
+
52
+ # Django stuff:
53
+ *.log
54
+ local_settings.py
55
+ db.sqlite3
56
+ db.sqlite3-journal
57
+
58
+ # Flask stuff:
59
+ instance/
60
+ .webassets-cache
61
+
62
+ # Scrapy stuff:
63
+ .scrapy
64
+
65
+ # Sphinx documentation
66
+ docs/_build/
67
+
68
+ # PyBuilder
69
+ .pybuilder/
70
+ target/
71
+
72
+ # Jupyter Notebook
73
+ .ipynb_checkpoints
74
+
75
+ # IPython
76
+ profile_default/
77
+ ipython_config.py
78
+
79
+ # pyenv
80
+ .python-version
81
+
82
+ # pipenv
83
+ Pipfile.lock
84
+
85
+ # poetry
86
+ poetry.lock
87
+
88
+ # pdm
89
+ .pdm.toml
90
+
91
+ # PEP 582
92
+ __pypackages__/
93
+
94
+ # Celery stuff
95
+ celerybeat-schedule
96
+ celerybeat.pid
97
+
98
+ # SageMath parsed files
99
+ *.sage.py
100
+
101
+ # Environments
102
+ .env
103
+ .venv
104
+ env/
105
+ venv/
106
+ ENV/
107
+ env.bak/
108
+ venv.bak/
109
+
110
+ # Spyder project settings
111
+ .spyderproject
112
+ .spyproject
113
+
114
+ # Rope project settings
115
+ .ropeproject
116
+
117
+ # mkdocs documentation
118
+ /site
119
+
120
+ # mypy
121
+ .mypy_cache/
122
+ .dmypy.json
123
+ dmypy.json
124
+
125
+ # Pyre type checker
126
+ .pyre/
127
+
128
+ # pytype static type analyzer
129
+ .pytype/
130
+
131
+ # Cython debug symbols
132
+ cython_debug/
133
+
134
+ # Node.js
135
+ node_modules/
136
+ npm-debug.log*
137
+ yarn-debug.log*
138
+ yarn-error.log*
139
+ lerna-debug.log*
140
+ .pnpm-debug.log*
141
+
142
+ # Diagnostic reports (https://nodejs.org/api/report.html)
143
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
144
+
145
+ # Runtime data
146
+ pids
147
+ *.pid
148
+ *.seed
149
+ *.pid.lock
150
+
151
+ # Directory for instrumented libs generated by jscoverage/JSCover
152
+ lib-cov
153
+
154
+ # Coverage directory used by tools like istanbul
155
+ coverage/
156
+ *.lcov
157
+
158
+ # nyc test coverage
159
+ .nyc_output
160
+
161
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
162
+ .grunt
163
+
164
+ # Bower dependency directory (https://bower.io/)
165
+ bower_components
166
+
167
+ # node-waf configuration
168
+ .lock-wscript
169
+
170
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
171
+ build/Release
172
+
173
+ # Dependency directories
174
+ node_modules/
175
+ jspm_packages/
176
+
177
+ # Snowpack dependency directory (https://snowpack.dev/)
178
+ web_modules/
179
+
180
+ # TypeScript cache
181
+ *.tsbuildinfo
182
+
183
+ # Optional npm cache directory
184
+ .npm
185
+
186
+ # Optional eslint cache
187
+ .eslintcache
188
+
189
+ # Optional stylelint cache
190
+ .stylelintcache
191
+
192
+ # Microbundle cache
193
+ .rpt2_cache/
194
+ .rts2_cache_cjs/
195
+ .rts2_cache_es/
196
+ .rts2_cache_umd/
197
+
198
+ # Optional REPL history
199
+ .node_repl_history
200
+
201
+ # Output of 'npm pack'
202
+ *.tgz
203
+
204
+ # Yarn Integrity file
205
+ .yarn-integrity
206
+
207
+ # dotenv environment variable files
208
+ .env
209
+ .env.development.local
210
+ .env.test.local
211
+ .env.production.local
212
+ .env.local
213
+
214
+ # parcel-bundler cache (https://parceljs.org/)
215
+ .cache
216
+ .parcel-cache
217
+
218
+ # Next.js build output
219
+ .next
220
+ out
221
+
222
+ # Nuxt.js build / generate output
223
+ .nuxt
224
+ dist
225
+
226
+ # Gatsby files
227
+ .cache/
228
+
229
+ # Vuepress build output
230
+ .vuepress/dist
231
+
232
+ # Serverless directories
233
+ .serverless/
234
+
235
+ # FuseBox cache
236
+ .fusebox/
237
+
238
+ # DynamoDB Local files
239
+ .dynamodb/
240
+
241
+ # TernJS port file
242
+ .tern-port
243
+
244
+ # Stores VSCode versions used for testing VSCode extensions
245
+ .vscode-test
246
+
247
+ # yarn v2
248
+ .yarn/cache
249
+ .yarn/unplugged
250
+ .yarn/build-state.yml
251
+ .yarn/install-state.gz
252
+ .pnp.*
253
+
254
+ # React build output
255
+ build/
256
+
257
+ # IDE and Editor files
258
+ .vscode/
259
+ .idea/
260
+ *.swp
261
+ *.swo
262
+ *~
263
+
264
+ # OS generated files
265
+ .DS_Store
266
+ .DS_Store?
267
+ ._*
268
+ .Spotlight-V100
269
+ .Trashes
270
+ ehthumbs.db
271
+ Thumbs.db
272
+
273
+ # Database files
274
+ *.db
275
+ *.sqlite
276
+ *.sqlite3
277
+
278
+ # Log files
279
+ *.log
280
+ logs/
281
+
282
+ # Temporary files
283
+ *.tmp
284
+ *.temp
285
+
286
+ # API keys and secrets
287
+ .env.local
288
+ .env.production
289
+ .env.development
290
+ config/secrets.json
291
+ secrets/
292
+
293
+ # ML models and data
294
+ models/
295
+ data/
296
+ *.pkl
297
+ *.joblib
298
+ *.h5
299
+ *.pb
300
+
301
+ # Documentation build
302
+ docs/build/
303
+ docs/_build/
304
+
305
+ # Test artifacts
306
+ test-results/
307
+ screenshots/
308
+ videos/
@@ -0,0 +1,79 @@
1
+ # Changelog
2
+
3
+ All notable changes to CodeGuard are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
6
+ CodeGuard follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html). From
7
+ `2.0.0` the rule IDs, `Finding` / JSON schema, config keys, and CLI exit codes are a
8
+ stable contract.
9
+
10
+ Entries are assembled by [towncrier](https://towncrier.readthedocs.io/) from news
11
+ fragments in `changelog.d/` — run `towncrier build --draft` to preview unreleased
12
+ changes.
13
+
14
+ `2.0.0` is a large step from the `0.1` alpha (multi-language scanning, config file,
15
+ diff-aware CI, baselines, packaged distribution). See
16
+ [docs/migration-v2.md](docs/migration-v2.md) for every backward-incompatible change.
17
+
18
+ <!-- towncrier release notes start -->
19
+
20
+ ## [2.0.0] - 2026-08-31
21
+
22
+ ### Breaking changes
23
+
24
+ - Exit codes `3` (config error) and `4` (internal error) are now distinct from `2` (usage error); `0` and `1` are unchanged. The `scan --severity` flag is a deprecated alias of the new `--fail-on` (which controls the exit code); `--fail-on` defaults to `info`.
25
+ - The PyPI project is now `codeguard-cli` (the bare `codeguard` name belongs to an unrelated project). The installed command and the import package are both still `codeguard`. Install with `pipx install codeguard-cli` / `uv tool install codeguard-cli` / `pip install codeguard-cli`.
26
+ - The rule API changed: `Rule.check(tree, source, filename)` is now `Rule.analyze(ctx)`, taking a `RuleContext`, and every rule declares a `languages` set. Python rules that subclass the new `AstRule` keep their `check_ast(tree, source, filename)` method unchanged. A new `codeguard.lang` package provides the language adapter layer for the tree-sitter backends.
27
+ - `--format json` now emits an envelope object — `{ schema_version, tool, rules, results, summary }` — with a per-finding `fingerprint`. The previous bare-array output is available as `--format json-legacy` for one minor version and prints a deprecation warning.
28
+ - `Location.col` (and `end_col`) is now 1-indexed to match editors and SARIF. JSON `location.col` values shift by one; SARIF column values are unchanged in effect (the formatter no longer adds its own offset).
29
+
30
+ ### Added
31
+
32
+ - Added `codeguard.toml` / `pyproject.toml [tool.codeguard]` configuration: `include`/`exclude`, `fail_on`, `output`, `jobs`, `gitignore`, `[rules] enable`/`disable`, per-rule `severity`/`confidence_min`, `[severity_remap]`, and path-scoped `[[overrides]]`. Config is discovered by walking up to the repository root; `codeguard validate` checks it and a starter file comes from `codeguard init`. ([#7](https://github.com/mevichitra/codeguard/issues/7))
33
+ - Suppression comments gained governance: a `reason:` is expected (bare ones raise `CG-META-001`), an `until=YYYY-MM-DD` reactivates the finding once past (`CG-META-002`), the file-level keyword is now `ignore-file[...]` (`disable[...]` is a deprecated alias), and `codeguard suppressions list [--expired] [--unused]` audits every suppression with an active/expired/unused status. `//` comments work for JavaScript and TypeScript. ([#9](https://github.com/mevichitra/codeguard/issues/9))
34
+ - Added a `.pre-commit-hooks.yaml` (hook ids `codeguard`, `codeguard-full`, `codeguard-ci`) and a composite GitHub Action at `action/` — `uses: mevichitra/codeguard/action@v2` — that runs `codeguard ci` and uploads SARIF to code scanning. ([#13](https://github.com/mevichitra/codeguard/issues/13))
35
+ - Added six JavaScript / TypeScript security rules (the `CG-SEC-1xx` block): dynamic code execution via `eval` / `new Function` / string timers (CG-SEC-101), `child_process.exec` shell injection (CG-SEC-102), DOM XSS sinks like `innerHTML` and `document.write` (CG-SEC-103), React `dangerouslySetInnerHTML` (CG-SEC-104), hardcoded secrets (CG-SEC-105), and `Math.random()` used for tokens or secrets (CG-SEC-106). ([#14](https://github.com/mevichitra/codeguard/issues/14))
36
+ - Added the tree-sitter language backends for JavaScript (`.js/.jsx/.mjs/.cjs`) and TypeScript (`.ts/.tsx/.mts/.cts`). `SourceNode` now wraps tree-sitter nodes as well as Python `ast` nodes, with `child_by_field` for named children. Grammars load lazily, so a Python-only scan never imports tree-sitter.
37
+ - Directory scans now honour the repository `.gitignore`, skip vendor/tooling directories (`.venv`, `node_modules`, `__pycache__`, `dist`, ...) and generated files (`*.min.js`, `*.d.ts`) by default, and never follow directory symlinks. `AnalysisRunner.run_files(..., jobs=N)` fans a scan across a process pool with output identical to a sequential run.
38
+ - Every finding now carries a stable `fingerprint` (scheme `codeguard/v1`) derived from the rule, the file, the enclosing function/class, and the normalized statement — stable across reformatting and line moves. SARIF output emits it as `partialFingerprints`, and it is the identity key for the baseline and diff workflows.
39
+ - New `codeguard ci` command: diff-aware scanning for pull requests. It scans only files changed since the base branch (auto-detected, or `--diff REF`), applies the baseline, defaults to GitHub Actions annotations, and can also write a SARIF report with `--sarif PATH`.
40
+ - New baseline support: `codeguard baseline create / update / prune` writes a fingerprint file of today's findings, and `scan --baseline PATH` (or `baseline = "..."` in config) marks those findings so they no longer fail the run. Baselined findings are hidden by default, revealed with `--show-suppressed`.
41
+ - New commands: `codeguard list-rules`, `codeguard explain <RULE-ID>`, `codeguard validate`, and `codeguard init`.
42
+ - SARIF output gained `partialFingerprints`, `security-severity`, `helpUri`, and CWE taxonomy tags on each rule.
43
+ - Three new `--format` options: `github` (GitHub Actions annotations), `rdjson` (reviewdog), and `junit` (JUnit XML).
44
+ - `codeguard scan --diff REF` restricts a scan to files changed since REF (merge-base with HEAD), including uncommitted and untracked changes.
45
+ - `codeguard scan` accepts multiple paths, reads stdin with `-`, and gains `--config`, `--exclude`/`--include`, `--fail-on`/`--exit-zero`, `--no-gitignore`, `-j/--jobs`, `-q/--quiet`, and `--no-color`.
46
+
47
+ ### Fixed
48
+
49
+ - CG-SEC-005 now flags `os.system`, `os.popen`, `subprocess.getoutput`, and `subprocess.getstatusoutput` with a non-literal argument -- these always use a shell and have no `shell=` keyword, so they were previously missed entirely. ([#3](https://github.com/mevichitra/codeguard/issues/3))
50
+ - CG-SEC-004 and CG-SEC-005 now resolve import aliases, so `from pickle import loads`, `import subprocess as sp`, and `from os import system as sh` are detected. A shared resolver (`codeguard.rules._pyimports`) handles this. ([#4](https://github.com/mevichitra/codeguard/issues/4))
51
+ - CG-SEC-001 no longer reports a false positive for a multi-part concatenation of string literals such as `"SELECT " + " * " + " FROM t"`; the whole `+` tree is checked, not just the outermost operands. ([#5](https://github.com/mevichitra/codeguard/issues/5))
52
+ - Added the missing `.license-header.txt` so the `insert-license` pre-commit hook passes on a clean checkout.
53
+ - Fixed all in-repo GitHub URLs, which pointed at a non-existent `codeguard-ai/codeguard` org, to `mevichitra/codeguard` (including the SARIF `informationUri`).
54
+
55
+ ### Documentation
56
+
57
+ - Added a documentation site (`docs/`, MkDocs + Material) covering install, usage, exit codes, suppressions, output formats, CI, architecture, and a v2 migration guide; published to GitHub Pages on release.
58
+ - Corrected the CWE reference for CG-SEC-003 in the README (CWE-95, matching the rule).
59
+ - Filled in the "Migrating to v2" guide with the changes that have landed (package rename, 1-indexed columns, JSON envelope, `--fail-on`, exit codes 3/4, gitignore-aware discovery, rule API).
60
+ - Rewrote the "Adding a rule" guide for the new `AstRule` / `analyze(ctx)` API and the import-alias resolver.
61
+
62
+ ### Internal
63
+
64
+ - Added `TreeSitterRule`, a base class for JS/TS rules that walk a `SourceNode` tree, and `codeguard.rules._jsnodes` with call / argument / literal helpers. `run_benchmark.py` now also picks up `.js` / `.jsx` / `.ts` / `.tsx` corpus samples.
65
+ - Changelog is now assembled by towncrier from fragments in `changelog.d/`.
66
+ - Moved the abandoned FastAPI backend and the two React frontends (which shared no code with the CLI) into `archive/`; they are no longer built, tested, or released.
67
+ - Overhauled CI: concurrency cancellation, pip caching, a Windows/macOS/Python 3.13 test matrix, a build-and-install smoke test, `pip-audit`, a docs build, an old-org URL guard, and a changelog-fragment check. The release workflow now runs lint, types, and tests behind a tag/version consistency check before publishing.
68
+ - Seeded `benchmarks/corpus/` with true/false-positive cases for CG-SEC-001, CG-SEC-004, and CG-SEC-005 (precision and recall 1.0 on the seed set).
69
+ - Switched the build backend from setuptools to hatchling; the version is single-sourced from `src/codeguard/__init__.py`.
70
+ - Test fixtures moved to `tests/fixtures/<language>/<category>/<rule_id>/` and `conftest.load_fixture` gained a leading `language` argument, so JavaScript and TypeScript rules can carry their own fixtures.
71
+ - `scan` and `ci` share a single implementation (`codeguard.cli._run`); the `Finding` model gains a `baselined` flag.
72
+
73
+
74
+ ## [0.1.0]
75
+
76
+ Initial alpha: AST rule engine, CLI (`scan`), and five security rules
77
+ (CG-SEC-001..005) with human / JSON / SARIF output and inline suppression comments.
78
+
79
+ [0.1.0]: https://github.com/mevichitra/codeguard/releases/tag/v0.1.0
@@ -0,0 +1,184 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or otherwise designated in writing by the copyright owner as
57
+ "Not a Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and subsequently
61
+ incorporated within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any
81
+ Contribution embodied within the Work constitutes direct or
82
+ contributory patent infringement, then any patent rights granted to You
83
+ under this License for that Work shall terminate as of the date such
84
+ litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or
92
+ Derivative Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text file
107
+ distributed as part of the Derivative Works; within the Source
108
+ form or documentation, if provided along with the Derivative
109
+ Works; or, within a display generated by the Derivative Works,
110
+ if and wherever such third-party notices normally appear. The
111
+ contents of the NOTICE file are for informational purposes only
112
+ and do not modify the License. You may add Your own attribution
113
+ notices within Derivative Works that You distribute, alongside
114
+ or as an addendum to the NOTICE text from the Work, provided
115
+ that such additional attribution notices cannot be construed
116
+ as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the
121
+ Contribution, either on its own or as part of the Work, subject to
122
+ the terms and conditions of this License.
123
+
124
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
125
+ any Contribution intentionally submitted for inclusion in the Work
126
+ by You to the Licensor shall be under the terms and conditions of
127
+ this License, without any additional terms or conditions.
128
+ Notwithstanding the above, nothing herein shall supersede or modify
129
+ the terms of any separate license agreement you may have executed
130
+ with Licensor regarding such Contributions.
131
+
132
+ 6. Trademarks. This License does not grant permission to use the trade
133
+ names, trademarks, service marks, or product names of the Licensor,
134
+ except as required for reasonable and customary use in describing the
135
+ origin of the Work and reproducing the content of the NOTICE file.
136
+
137
+ 7. Disclaimer of Warranty. Unless required by applicable law or
138
+ agreed to in writing, Licensor provides the Work (and each
139
+ Contributor provides its Contributions) on an "AS IS" BASIS,
140
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
141
+ implied, including, without limitation, any warranties or conditions
142
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
143
+ PARTICULAR PURPOSE. You are solely responsible for determining the
144
+ appropriateness of using or reproducing the Work and assume any
145
+ risks associated with Your exercise of permissions under this License.
146
+
147
+ 8. Limitation of Liability. In no event and under no legal theory,
148
+ whether in tort (including negligence), contract, or otherwise,
149
+ unless required by applicable law (such as deliberate and grossly
150
+ negligent acts) or agreed to in writing, shall any Contributor be
151
+ liable to You for damages, including any direct, indirect, special,
152
+ incidental, or exemplary damages of any character arising as a
153
+ result of this License or out of the use or inability to use the
154
+ Work (including but not limited to damages for loss of goodwill,
155
+ work stoppage, computer failure or malfunction, or all other
156
+ commercial damages or losses), even if such Contributor has been
157
+ advised of the possibility of such damages.
158
+
159
+ 9. Accepting Warranty or Additional Liability. While redistributing
160
+ the Work or Derivative Works thereof, You may choose to offer,
161
+ and charge a fee for, acceptance of support, warranty, indemnity,
162
+ or other liability obligations and/or rights consistent with this
163
+ License. However, in accepting such obligations, You may act only
164
+ on Your own behalf and on Your sole responsibility, not on behalf
165
+ of any other Contributor, and only if You agree to indemnify,
166
+ defend, and hold each Contributor harmless for any liability
167
+ incurred by, or claims asserted against, such Contributor by reason
168
+ of your accepting any such warranty or additional liability.
169
+
170
+ END OF TERMS AND CONDITIONS
171
+
172
+ Copyright 2024 CodeGuard Contributors
173
+
174
+ Licensed under the Apache License, Version 2.0 (the "License");
175
+ you may not use this file except in compliance with the License.
176
+ You may obtain a copy of the License at
177
+
178
+ http://www.apache.org/licenses/LICENSE-2.0
179
+
180
+ Unless required by applicable law or agreed to in writing, software
181
+ distributed under the License is distributed on an "AS IS" BASIS,
182
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
183
+ See the License for the specific language governing permissions and
184
+ limitations under the License.