Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanheemstra committed Nov 10, 2024
2 parents d9614c2 + e88a357 commit 31ad563
Show file tree
Hide file tree
Showing 11 changed files with 217 additions and 26 deletions.
41 changes: 31 additions & 10 deletions README.ar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

# منشئ ثريجيل

| | |
| ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| CI/CD | [![CI - Test](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/test.yml/badge.svg)](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/test.yml)[![CD - Build](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/build.yml/badge.svg)](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/build.yml) |
| طَرد | [![PyPI - Version](https://img.shields.io/pypi/v/threagile-builder.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/threagile-builder/)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/threagile-builder.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/threagile-builder/) |
| ميتا | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)[![code style - black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/ambv/black)[![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/)[![GitHub Sponsors](https://img.shields.io/github/sponsors/vanHeemstraSystems?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/vanHeemstraSystems) |
| | |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| سي آي/سي دي | [![CI - Test](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/test.yml/badge.svg)](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/test.yml)[![CD - Build](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/build.yml/badge.svg)](https://github.com/vanHeemstraSystems/threagile-builder/actions/workflows/build.yml) |
| طَرد | [![PyPI - Version](https://img.shields.io/pypi/v/threagile-builder.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/threagile-builder/)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/threagile-builder.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/threagile-builder/) |
| ميتا | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)[![code style - black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/ambv/black)[![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/)[![GitHub Sponsors](https://img.shields.io/github/sponsors/vanHeemstraSystems?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/vanHeemstraSystems) |

* * *

Expand All @@ -20,7 +20,7 @@

الحصول على التعليمات البرمجية الخاصة بك وتشغيلها على النظام الخاص بك.

**Note**: تأكد من الوفاء[متطلبات](./200/README.md).
**ملحوظة**: تأكد من الوفاء[متطلبات](./200/README.md).

1. عملية التثبيت:
```bash
Expand Down Expand Up @@ -84,6 +84,27 @@
$ pytest tests/
```

ملاحظة: PHPStan هي أداة تحليل ثابتة تكتشف الأخطاء في كود PHP الخاص بك دون تشغيلها. لتشغيل PHPStan في حاوية Docker:

على نظام التشغيل Unix/Linux/macOS:

```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

على نظام التشغيل Windows:

```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

يمكنك تخصيص التحليل عن طريق:

- تحديد مستويات القاعدة (0-9): إضافة`--level 8`
- باستخدام ملف التكوين: أضف`-c phpstan.neon`

# وثائق واجهة برمجة التطبيقات

انتقل إلى`http://127.0.0.1:5000/docs`في متصفح الويب الخاص بك، أو قم بتنزيل openapi.json من`http://127.0.0.1:5000/openapi.json`.
Expand All @@ -97,7 +118,7 @@
**جدول المحتويات**

- [تثبيت](#installation)
- [مصدر الإصدار](#version-source)
- [مصدر النسخة](#version-source)
- [البيئات](#environments)
- [يبني](#build)
- [رخصة](#license)
Expand All @@ -108,7 +129,7 @@
pip install threagile-builder
```

## مصدر الإصدار
## مصدر النسخة

- ال[Hatch-vcs](https://github.com/ofek/hatch-vcs)يحدد البرنامج المساعد لمصدر الإصدار إصدار المشروع باستخدام علامات Git

Expand All @@ -119,11 +140,11 @@ pip install threagile-builder

## يبني

- جميع أهداف البناء تستخدم[Hatch-vcs](https://github.com/ofek/hatch-vcs)بناء البرنامج المساعد هوك لشحن أ`_version.py`ملف بحيث يمكن استخدام الإصدار في وقت التشغيل
- تستخدم جميع أهداف البناء[Hatch-vcs](https://github.com/ofek/hatch-vcs)بناء البرنامج المساعد هوك لشحن أ`_version.py`ملف بحيث يمكن استخدام الإصدار في وقت التشغيل
- تستخدم العجلات[Hatch-mypyc](https://github.com/ofek/hatch-mypyc)أنشئ ملحقًا ربطًا لتجميع جميع التعليمات البرمجية أولاً[Mypyc](https://github.com/mypyc/mypyc)
- ال[يبني](.github/workflows/build.yml)يوضح سير عمل GitHub كيفية:
- يستخدم[cibuildwheel](https://github.com/pypa/cibuildwheel)لتوزيع العجلات الثنائية لكل منصة
- استخدم[app](https://hatch.pypa.io/latest/plugins/builder/app/)بناء الهدف لبناء توزيعات مستقلة لكل منصة
- استخدم[برنامج](https://hatch.pypa.io/latest/plugins/builder/app/)بناء الهدف لبناء توزيعات مستقلة لكل منصة

## رخصة

Expand Down
23 changes: 22 additions & 1 deletion README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ Bringen Sie Ihren Code auf Ihrem eigenen System zum Laufen.
$ pytest tests/
```

Hinweis: PHPStan ist ein statisches Analysetool, das Fehler in Ihrem PHP-Code findet, ohne ihn auszuführen. So führen Sie PHPStan in einem Docker-Container aus:

Unter Unix/Linux/macOS:

```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

Unter Windows:

```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

Sie können die Analyse anpassen, indem Sie:

- Regelebenen einstellen (0-9): Add`--level 8`
- Verwenden einer Konfigurationsdatei: Hinzufügen`-c phpstan.neon`

# API-Dokumentation

Navigieren Sie zu`http://127.0.0.1:5000/docs`in Ihrem Webbrowser oder laden Sie openapi.json herunter von`http://127.0.0.1:5000/openapi.json`.
Expand Down Expand Up @@ -137,7 +158,7 @@ Sehen[README.md](./100/README.md)

Sehen[README.md](./200/README.md)

## 300 – Erstellen unserer Anwendung
## 300 - Building Our Application

Sehen[README.md](./300/README.md)

Expand Down
29 changes: 25 additions & 4 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ constructor-threagil

* * *

> A[basado en bloques](https://developers.google.com/blockly)aplicación web sin código para crear[amenazante](https://threagile.io)archivos YAML
> A[basado en bloques](https://developers.google.com/blockly)aplicación web sin código para crear[amenazante](https://threagile.io)Archivos YAML
- [Glosario](./GLOSSARY.md)
- [Referencias](./REFERENCES.md)
- [Documentación](./DOCUMENTATION.md)

**Resumen ejecutivo**

Poner en funcionamiento su código en su propio sistema.
Cómo poner en marcha su código en su propio sistema.

**Nota**: Asegúrese de cumplir con los[requisitos](./200/README.md).

Expand Down Expand Up @@ -84,6 +84,27 @@ Poner en funcionamiento su código en su propio sistema.
$ pytest tests/
```

Nota: PHPStan es una herramienta de análisis estático que encuentra errores en su código PHP sin ejecutarlo. Para ejecutar PHPStan en un contenedor Docker:

En Unix/Linux/macOS:

```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

En Windows:

```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

Puede personalizar el análisis mediante:

- Configuración de niveles de regla (0-9): Agregar`--level 8`
- Usando un archivo de configuración: Agregar`-c phpstan.neon`

# Documentación API

Navegar a`http://127.0.0.1:5000/docs`en su navegador web, o descargue openapi.json desde`http://127.0.0.1:5000/openapi.json`.
Expand All @@ -97,7 +118,7 @@ Dejemos que una herramienta como Prometeo raspe`http://127.0.0.1:9464/metrics`.
**Tabla de contenido**

- [Instalación](#installation)
- [Fuente de la versión](#version-source)
- [Version source](#version-source)
- [Ambientes](#environments)
- [Construir](#build)
- [Licencia](#license)
Expand All @@ -115,7 +136,7 @@ pip install threagile-builder
## Ambientes

- Definido claramente de forma independiente[`hatch.toml`](https://hatch.pypa.io/latest/intro/#configuration)
- El`test`la matriz utiliza el[contenedores-escotilla](https://github.com/ofek/hatch-containers)complemento para ejecutar cada entorno dentro de contenedores Docker; El uso se puede ver en el[prueba](.github/workflows/test.yml)flujo de trabajo de GitHub
- El`test`La matriz utiliza el[contenedores-escotilla](https://github.com/ofek/hatch-containers)complemento para ejecutar cada entorno dentro de contenedores Docker; El uso se puede ver en el[prueba](.github/workflows/test.yml)flujo de trabajo de GitHub

## Construir

Expand Down
25 changes: 23 additions & 2 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ Faire en sorte que votre code soit opérationnel sur votre propre système.
$ pytest tests/
```
Remarque : PHPStan est un outil d'analyse statique qui trouve les bugs dans votre code PHP sans l'exécuter. Pour exécuter PHPStan dans un conteneur Docker :
Sous Unix/Linux/macOS :
```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```
Sous Windows :
```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```
Vous pouvez personnaliser l'analyse en :

- Définition des niveaux de règle (0-9) : Ajouter`--level 8`
- Utilisation d'un fichier de configuration : Ajouter`-c phpstan.neon`
# Documentation API
Accédez à`http://127.0.0.1:5000/docs`dans votre navigateur Web, ou téléchargez le fichier openapi.json depuis`http://127.0.0.1:5000/openapi.json`.
Expand Down Expand Up @@ -129,15 +150,15 @@ pip install threagile-builder
`threagile-builder`est distribué selon les termes du[AVEC](https://spdx.org/licenses/MIT.html)licence.
## 100 - Présentation
## 100 - Introduction
Voir[README.md](./100/README.md)
## 200 - Exigences
Voir[README.md](./200/README.md)
## 300 - Créer notre application
## 300 - Construire notre application
Voir[README.md](./300/README.md)
Expand Down
23 changes: 22 additions & 1 deletion README.hi.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ thregile-बिल्डर
$ pytest tests/
```

ध्यान दें: PHPStan एक स्थिर विश्लेषण उपकरण है जो आपके PHP कोड को चलाए बिना बग ढूंढता है। डॉकर कंटेनर में PHPStan चलाने के लिए:

यूनिक्स/लिनक्स/मैकओएस पर:

```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

विंडोज़ पर:

```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

आप विश्लेषण को इसके द्वारा अनुकूलित कर सकते हैं:

- नियम स्तर सेट करना (0-9): जोड़ें`--level 8`
- कॉन्फ़िग फ़ाइल का उपयोग करना: जोड़ें`-c phpstan.neon`

# एपीआई दस्तावेज़ीकरण

पर नेविगेट करें`http://127.0.0.1:5000/docs`अपने वेब ब्राउज़र में, या openapi.json डाउनलोड करें`http://127.0.0.1:5000/openapi.json`.
Expand All @@ -92,7 +113,7 @@ thregile-बिल्डर

प्रोमेथियस जैसे उपकरण को परिमार्जन करने दें`http://127.0.0.1:9464/metrics`.

**_नया_**
**_ NEW _**

**विषयसूची**

Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ Getting your code up and running on your own system.
$ pytest tests/
```

Note: PHPStan is a static analysis tool that finds bugs in your PHP code without running it. To run PHPStan in a Docker container:

On Unix/Linux/macOS:
```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

On Windows:
```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

You can customize the analysis by:
- Setting rule levels (0-9): Add `--level 8`
- Using a config file: Add `-c phpstan.neon`

# API Documentation

Navigate to `http://127.0.0.1:5000/docs` in your web browser, or download the openapi.json from `http://127.0.0.1:5000/openapi.json`.
Expand Down
23 changes: 22 additions & 1 deletion README.nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,28 @@ Uw code op uw eigen systeem operationeel krijgen.
$ pytest tests/
```

# API Documentation
Opmerking: PHPStan is een statische analysetool die bugs in uw PHP-code vindt zonder deze uit te voeren. Om PHPStan in een Docker-container uit te voeren:

Op Unix/Linux/macOS:

```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

Op Windows:

```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

U kunt de analyse aanpassen door:

- Regelniveaus instellen (0-9): Toevoegen`--level 8`
- Een configuratiebestand gebruiken: Add`-c phpstan.neon`

# API-documentatie

Navigeer naar`http://127.0.0.1:5000/docs`in uw webbrowser, of download de openapi.json van`http://127.0.0.1:5000/openapi.json`.

Expand Down
27 changes: 24 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@
$ pytest tests/
```

注意:PHPStan 是一个静态分析工具,无需运行 PHP 代码即可发现其中的错误。要在 Docker 容器中运行 PHPStan:

在 Unix/Linux/macOS 上:

```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

在 Windows 上:

```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

您可以通过以下方式自定义分析:

- 设置规则级别(0-9):添加`--level 8`
- 使用配置文件:添加`-c phpstan.neon`

# API文档

导航至`http://127.0.0.1:5000/docs`在您的网络浏览器中,或从以下位置下载 openapi.json`http://127.0.0.1:5000/openapi.json`.
Expand All @@ -110,12 +131,12 @@ pip install threagile-builder

## 版本来源

- 这[孵化VCS](https://github.com/ofek/hatch-vcs) version source plugin determines the project version using Git tags
- 这[孵化VCS](https://github.com/ofek/hatch-vcs)版本源插件使用 Git 标签确定项目版本

## 环境

- 整齐地定义在一个独立的[`hatch.toml`](https://hatch.pypa.io/latest/intro/#configuration)
- 这`test`矩阵使用[孵化集装箱](https://github.com/ofek/hatch-containers)用于运行 Docker 容器内每个环境的插件;用法可以在[测试](.github/workflows/test.yml) GitHub workflow
- 整齐地定义在独立的[`hatch.toml`](https://hatch.pypa.io/latest/intro/#configuration)
- 这`test`矩阵使用[孵化集装箱](https://github.com/ofek/hatch-containers)用于运行 Docker 容器内每个环境的插件;用法可以在[测试](.github/workflows/test.yml)GitHub 工作流程

## 建造

Expand Down
Loading

0 comments on commit 31ad563

Please sign in to comment.