fix: resolve mypy type errors and editorconfig issues
- Add type annotations for json_output and agent_thoughts variables - Fix trailing whitespace in modified files - Update .gitignore to not ignore api/core directorypull/21899/head
parent
0057d5f72a
commit
b3f138fa10
@ -0,0 +1,71 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## [3.3.0](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.2.1...v3.3.0) (2025-05-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add `.jj` (Jujutsu) directory to default exclude list ([#458](https://github.com/editorconfig-checker/editorconfig-checker/issues/458)) ([ac903a0](https://github.com/editorconfig-checker/editorconfig-checker/commit/ac903a0a7f5506a80b3c5d2e76584b5e277b896a))
|
||||||
|
* update default paths to exclude ([#462](https://github.com/editorconfig-checker/editorconfig-checker/issues/462)) ([84c5c55](https://github.com/editorconfig-checker/editorconfig-checker/commit/84c5c5579e96a9601f1b0ce51fec66257ceb0b24))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* skip correct number of errors when consolidating errors ([#464](https://github.com/editorconfig-checker/editorconfig-checker/issues/464)) ([8c695f5](https://github.com/editorconfig-checker/editorconfig-checker/commit/8c695f5ef82063d657796dfc0b58e35b022d4b93))
|
||||||
|
|
||||||
|
## [3.2.1](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.2.0...v3.2.1) (2025-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* check for exclusion before MIME type ([#447](https://github.com/editorconfig-checker/editorconfig-checker/issues/447)) ([cd9976b](https://github.com/editorconfig-checker/editorconfig-checker/commit/cd9976ba25738a02a2130a7fc5e729ed9d6b7251))
|
||||||
|
* empty format in the config file should be treated as Default ([#448](https://github.com/editorconfig-checker/editorconfig-checker/issues/448)) ([f8799d0](https://github.com/editorconfig-checker/editorconfig-checker/commit/f8799d0915e6c7a3c82941c14b5bafcf472283cf)), closes [#430](https://github.com/editorconfig-checker/editorconfig-checker/issues/430)
|
||||||
|
* **test:** make TestGetRelativePath work under Darwin ([#445](https://github.com/editorconfig-checker/editorconfig-checker/issues/445)) ([d956561](https://github.com/editorconfig-checker/editorconfig-checker/commit/d95656138c991c47847015902c75f46aeccb8d06))
|
||||||
|
* **test:** support running our test suite under `-trimpath`, closes [#397](https://github.com/editorconfig-checker/editorconfig-checker/issues/397) ([#439](https://github.com/editorconfig-checker/editorconfig-checker/issues/439)) ([fc78406](https://github.com/editorconfig-checker/editorconfig-checker/commit/fc78406ae4d64dc63256c5b37db61b770bf5e436))
|
||||||
|
* **test:** we no longer need -ldflags at all ([#444](https://github.com/editorconfig-checker/editorconfig-checker/issues/444)) ([9ffcae2](https://github.com/editorconfig-checker/editorconfig-checker/commit/9ffcae2b7d984c6bf48fde83aaf55ab8962a927a))
|
||||||
|
|
||||||
|
## [3.2.0](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.1.2...v3.2.0) (2025-01-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add support for env var NO_COLOR ([#429](https://github.com/editorconfig-checker/editorconfig-checker/issues/429)) ([9135f53](https://github.com/editorconfig-checker/editorconfig-checker/commit/9135f531e762ad4c02f4bf45f03888771773da56))
|
||||||
|
* only output "0 errors found" when verbose output is enabled ([#423](https://github.com/editorconfig-checker/editorconfig-checker/issues/423)) ([1d29a8b](https://github.com/editorconfig-checker/editorconfig-checker/commit/1d29a8b16b4cde8d46f80db29e60330c5bd16095))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* improve default excludes ([#427](https://github.com/editorconfig-checker/editorconfig-checker/issues/427)) ([d0cbd25](https://github.com/editorconfig-checker/editorconfig-checker/commit/d0cbd250caa46a07994b6161ccf2bb4910571a23))
|
||||||
|
|
||||||
|
## [3.1.2](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.1.1...v3.1.2) (2025-01-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* provide both .tar.gz as well as .zip archives ([#416](https://github.com/editorconfig-checker/editorconfig-checker/issues/416)) ([00e9890](https://github.com/editorconfig-checker/editorconfig-checker/commit/00e9890847982b2503ec3a11ff539bf2ac4c34c6)), closes [#415](https://github.com/editorconfig-checker/editorconfig-checker/issues/415)
|
||||||
|
|
||||||
|
## [3.1.1](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.1.0...v3.1.1) (2025-01-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* dockerfile expected binary at /, not /usr/bin/ [#410](https://github.com/editorconfig-checker/editorconfig-checker/issues/410) ([#411](https://github.com/editorconfig-checker/editorconfig-checker/issues/411)) ([2c82197](https://github.com/editorconfig-checker/editorconfig-checker/commit/2c821979c0b3ea291f65ec813cae3fa265603528))
|
||||||
|
|
||||||
|
## [3.1.0](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.0.3...v3.1.0) (2025-01-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add zip version when compressing all binaries ([#321](https://github.com/editorconfig-checker/editorconfig-checker/issues/321)) ([#362](https://github.com/editorconfig-checker/editorconfig-checker/issues/362)) ([f1bb625](https://github.com/editorconfig-checker/editorconfig-checker/commit/f1bb625f2553952d4d8c72e3f97d17417f0c1ef7))
|
||||||
|
* consolidate adjacent error messages ([#360](https://github.com/editorconfig-checker/editorconfig-checker/issues/360)) ([cf4ae1c](https://github.com/editorconfig-checker/editorconfig-checker/commit/cf4ae1ccede331b2aa1b115f1de5257737de7eef))
|
||||||
|
* editorconfig-checker-disable-next-line ([#363](https://github.com/editorconfig-checker/editorconfig-checker/issues/363)) ([6116ec6](https://github.com/editorconfig-checker/editorconfig-checker/commit/6116ec6685b33652e9e25def9b8897ed4b015c7d))
|
||||||
|
* provide Codeclimate compatible report fromat ([#367](https://github.com/editorconfig-checker/editorconfig-checker/issues/367)) ([282c315](https://github.com/editorconfig-checker/editorconfig-checker/commit/282c315bd1c48f49cc1328de36e2ba4433c50249))
|
||||||
|
* support `.editorconfig-checker.json` config ([#375](https://github.com/editorconfig-checker/editorconfig-checker/issues/375)) ([cb0039c](https://github.com/editorconfig-checker/editorconfig-checker/commit/cb0039cfe68a11139011bcffe84b8ff62b3209bb))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* actually use the correct end marker ([#405](https://github.com/editorconfig-checker/editorconfig-checker/issues/405)) ([3c03499](https://github.com/editorconfig-checker/editorconfig-checker/commit/3c034994cba21db7babd33672a0d26184ff88255))
|
||||||
|
* add `.ecrc` deprecation warning ([#389](https://github.com/editorconfig-checker/editorconfig-checker/issues/389)) ([d33b81c](https://github.com/editorconfig-checker/editorconfig-checker/commit/d33b81cc71c2eb740dd3e1c00f07dbc430b89087))
|
||||||
|
* this release-please marker ([#403](https://github.com/editorconfig-checker/editorconfig-checker/issues/403)) ([617c6d4](https://github.com/editorconfig-checker/editorconfig-checker/commit/617c6d44b5a8668de16bf67038dd5930e01c074e))
|
||||||
|
* typo in config, `SpacesAftertabs` => `SpacesAfterTabs` ([#386](https://github.com/editorconfig-checker/editorconfig-checker/issues/386)) ([25e3542](https://github.com/editorconfig-checker/editorconfig-checker/commit/25e3542ee45b0bd5cbdd450ba8eebee6ad3bba43))
|
||||||
@ -1,22 +1,21 @@
|
|||||||
# Open Source License
|
The MIT License (MIT)
|
||||||
|
|
||||||
Dify is licensed under a modified version of the Apache License 2.0, with the following additional conditions:
|
Copyright (c) 2018 Max Strübing
|
||||||
|
|
||||||
1. Dify may be utilized commercially, including as a backend service for other applications or as an application development platform for enterprises. Should the conditions below be met, a commercial license must be obtained from the producer:
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
a. Multi-tenant service: Unless explicitly authorized by Dify in writing, you may not use the Dify source code to operate a multi-tenant environment.
|
in the Software without restriction, including without limitation the rights
|
||||||
- Tenant Definition: Within the context of Dify, one tenant corresponds to one workspace. The workspace provides a separated area for each tenant's data and configurations.
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
b. LOGO and copyright information: In the process of using Dify's frontend, you may not remove or modify the LOGO or copyright information in the Dify console or applications. This restriction is inapplicable to uses of Dify that do not involve its frontend.
|
furnished to do so, subject to the following conditions:
|
||||||
- Frontend Definition: For the purposes of this license, the "frontend" of Dify includes all components located in the `web/` directory when running Dify from the raw source code, or the "web" image when running Dify with Docker.
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
2. As a contributor, you should agree that:
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
a. The producer can adjust the open-source agreement to be more strict or relaxed as deemed necessary.
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
b. Your contributed code may be used for commercial purposes, including but not limited to its cloud business operations.
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
Apart from the specific conditions mentioned above, all other rights and restrictions follow the Apache License 2.0. Detailed information about the Apache License 2.0 can be found at http://www.apache.org/licenses/LICENSE-2.0.
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
The interactive design of this product is protected by appearance patent.
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
© 2025 LangGenius, Inc.
|
|
||||||
|
|||||||
@ -1,268 +1,475 @@
|
|||||||

|
# editorconfig-checker
|
||||||
|
|
||||||
<p align="center">
|
<a href="https://www.buymeacoffee.com/mstruebing" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
|
||||||
📌 <a href="https://dify.ai/blog/introducing-dify-workflow-file-upload-a-demo-on-ai-podcast">Introducing Dify Workflow File Upload: Recreate Google NotebookLM Podcast</a>
|
|
||||||
</p>
|
[](https://github.com/editorconfig-checker/editorconfig-checker/actions/workflows/ci.yml)
|
||||||
|
[](https://codecov.io/gh/editorconfig-checker/editorconfig-checker)
|
||||||
<p align="center">
|
[](https://hitsofcode.com/github/editorconfig-checker/editorconfig-checker/view?branch=main&label=Hits-of-Code)
|
||||||
<a href="https://cloud.dify.ai">Dify Cloud</a> ·
|
[](https://goreportcard.com/report/github.com/editorconfig-checker/editorconfig-checker/v3)<!-- x-release-please-major -->
|
||||||
<a href="https://docs.dify.ai/getting-started/install-self-hosted">Self-hosting</a> ·
|
|
||||||
<a href="https://docs.dify.ai">Documentation</a> ·
|

|
||||||
<a href="https://dify.ai/pricing">Dify edition overview</a>
|
|
||||||
</p>
|
1. [What?](#what)
|
||||||
|
2. [Quickstart](#quickstart)
|
||||||
<p align="center">
|
3. [Installation](#installation)
|
||||||
<a href="https://dify.ai" target="_blank">
|
4. [Usage](#usage)
|
||||||
<img alt="Static Badge" src="https://img.shields.io/badge/Product-F04438"></a>
|
5. [Configuration](#configuration)
|
||||||
<a href="https://dify.ai/pricing" target="_blank">
|
6. [Excluding](#excluding)
|
||||||
<img alt="Static Badge" src="https://img.shields.io/badge/free-pricing?logo=free&color=%20%23155EEF&label=pricing&labelColor=%20%23528bff"></a>
|
1. [Excluding Lines](#excluding-lines)
|
||||||
<a href="https://discord.gg/FngNHpbcY7" target="_blank">
|
2. [Excluding Blocks](#excluding-blocks)
|
||||||
<img src="https://img.shields.io/discord/1082486657678311454?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb"
|
3. [Excluding Paths](#excluding-paths)
|
||||||
alt="chat on Discord"></a>
|
1. [Inline](#inline)
|
||||||
<a href="https://reddit.com/r/difyai" target="_blank">
|
2. [Default Excludes](#default-excludes)
|
||||||
<img src="https://img.shields.io/reddit/subreddit-subscribers/difyai?style=plastic&logo=reddit&label=r%2Fdifyai&labelColor=white"
|
3. [Ignoring Default Excludes](#ignoring-default-excludes)
|
||||||
alt="join Reddit"></a>
|
4. [Manually Excluding](#manually-excluding)
|
||||||
<a href="https://twitter.com/intent/follow?screen_name=dify_ai" target="_blank">
|
1. [via configuration](#via-configuration)
|
||||||
<img src="https://img.shields.io/twitter/follow/dify_ai?logo=X&color=%20%23f5f5f5"
|
2. [via arguments](#via-arguments)
|
||||||
alt="follow on X(Twitter)"></a>
|
7. [Docker](#docker)
|
||||||
<a href="https://www.linkedin.com/company/langgenius/" target="_blank">
|
8. [Continuous Integration](#continuous-integration)
|
||||||
<img src="https://custom-icon-badges.demolab.com/badge/LinkedIn-0A66C2?logo=linkedin-white&logoColor=fff"
|
9. [Support](#support)
|
||||||
alt="follow on LinkedIn"></a>
|
10. [Contributing](#contributing)
|
||||||
<a href="https://hub.docker.com/u/langgenius" target="_blank">
|
11. [Semantic Versioning Policy](#semantic-versioning-policy)
|
||||||
<img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/langgenius/dify-web?labelColor=%20%23FDB062&color=%20%23f79009"></a>
|
|
||||||
<a href="https://github.com/langgenius/dify/graphs/commit-activity" target="_blank">
|
## What?
|
||||||
<img alt="Commits last month" src="https://img.shields.io/github/commit-activity/m/langgenius/dify?labelColor=%20%2332b583&color=%20%2312b76a"></a>
|
|
||||||
<a href="https://github.com/langgenius/dify/" target="_blank">
|

|
||||||
<img alt="Issues closed" src="https://img.shields.io/github/issues-search?query=repo%3Alanggenius%2Fdify%20is%3Aclosed&label=issues%20closed&labelColor=%20%237d89b0&color=%20%235d6b98"></a>
|
|
||||||
<a href="https://github.com/langgenius/dify/discussions/" target="_blank">
|
This is a tool to check if your files consider your `.editorconfig` rules.
|
||||||
<img alt="Discussion posts" src="https://img.shields.io/github/discussions/langgenius/dify?labelColor=%20%239b8afb&color=%20%237a5af8"></a>
|
Most tools—like linters, for example—only test one filetype and need an extra configuration.
|
||||||
</p>
|
This tool only needs your `.editorconfig` to check all files.
|
||||||
|
|
||||||
<p align="center">
|
If you don't know about editorconfig already you can read about it here: [editorconfig.org](https://editorconfig.org/).
|
||||||
<a href="./README.md"><img alt="README in English" src="https://img.shields.io/badge/English-d9d9d9"></a>
|
|
||||||
<a href="./README_TW.md"><img alt="繁體中文文件" src="https://img.shields.io/badge/繁體中文-d9d9d9"></a>
|
Currently, implemented editorconfig features are:
|
||||||
<a href="./README_CN.md"><img alt="简体中文版自述文件" src="https://img.shields.io/badge/简体中文-d9d9d9"></a>
|
|
||||||
<a href="./README_JA.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
|
- `end_of_line`
|
||||||
<a href="./README_ES.md"><img alt="README en Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
|
- `insert_final_newline`
|
||||||
<a href="./README_FR.md"><img alt="README en Français" src="https://img.shields.io/badge/Français-d9d9d9"></a>
|
- `trim_trailing_whitespace`
|
||||||
<a href="./README_KL.md"><img alt="README tlhIngan Hol" src="https://img.shields.io/badge/Klingon-d9d9d9"></a>
|
- `indent_style`
|
||||||
<a href="./README_KR.md"><img alt="README in Korean" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
|
- `indent_size`
|
||||||
<a href="./README_AR.md"><img alt="README بالعربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
|
- `max_line_length`
|
||||||
<a href="./README_TR.md"><img alt="Türkçe README" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
|
|
||||||
<a href="./README_VI.md"><img alt="README Tiếng Việt" src="https://img.shields.io/badge/Ti%E1%BA%BFng%20Vi%E1%BB%87t-d9d9d9"></a>
|
Unsupported features are:
|
||||||
<a href="./README_DE.md"><img alt="README in Deutsch" src="https://img.shields.io/badge/German-d9d9d9"></a>
|
|
||||||
<a href="./README_BN.md"><img alt="README in বাংলা" src="https://img.shields.io/badge/বাংলা-d9d9d9"></a>
|
- `charset`
|
||||||
</p>
|
|
||||||
|
## Quickstart
|
||||||
Dify is an open-source LLM app development platform. Its intuitive interface combines agentic AI workflow, RAG pipeline, agent capabilities, model management, observability features, and more, allowing you to quickly move from prototype to production.
|
|
||||||
|
<!-- x-release-please-start-version -->
|
||||||
## Quick start
|
```shell
|
||||||
|
VERSION="v3.3.0"
|
||||||
> Before installing Dify, make sure your machine meets the following minimum system requirements:
|
OS="linux"
|
||||||
>
|
ARCH="amd64"
|
||||||
> - CPU >= 2 Core
|
curl -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz && \
|
||||||
> - RAM >= 4 GiB
|
tar xzf ec-$OS-$ARCH.tar.gz && \
|
||||||
|
./bin/ec-$OS-$ARCH
|
||||||
</br>
|
|
||||||
|
|
||||||
The easiest way to start the Dify server is through [docker compose](docker/docker-compose.yaml). Before running Dify with the following commands, make sure that [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) are installed on your machine:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd dify
|
|
||||||
cd docker
|
|
||||||
cp .env.example .env
|
|
||||||
docker compose up -d
|
|
||||||
```
|
```
|
||||||
|
<!-- x-release-please-end -->
|
||||||
|
|
||||||
After running, you can access the Dify dashboard in your browser at [http://localhost/install](http://localhost/install) and start the initialization process.
|
## Installation
|
||||||
|
|
||||||
#### Seeking help
|
|
||||||
|
|
||||||
Please refer to our [FAQ](https://docs.dify.ai/getting-started/install-self-hosted/faqs) if you encounter problems setting up Dify. Reach out to [the community and us](#community--contact) if you are still having issues.
|
|
||||||
|
|
||||||
> If you'd like to contribute to Dify or do additional development, refer to our [guide to deploying from source code](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code)
|
|
||||||
|
|
||||||
## Key features
|
|
||||||
|
|
||||||
**1. Workflow**:
|
|
||||||
Build and test powerful AI workflows on a visual canvas, leveraging all the following features and beyond.
|
|
||||||
|
|
||||||
**2. Comprehensive model support**:
|
|
||||||
Seamless integration with hundreds of proprietary / open-source LLMs from dozens of inference providers and self-hosted solutions, covering GPT, Mistral, Llama3, and any OpenAI API-compatible models. A full list of supported model providers can be found [here](https://docs.dify.ai/getting-started/readme/model-providers).
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
**3. Prompt IDE**:
|
|
||||||
Intuitive interface for crafting prompts, comparing model performance, and adding additional features such as text-to-speech to a chat-based app.
|
|
||||||
|
|
||||||
**4. RAG Pipeline**:
|
|
||||||
Extensive RAG capabilities that cover everything from document ingestion to retrieval, with out-of-box support for text extraction from PDFs, PPTs, and other common document formats.
|
|
||||||
|
|
||||||
**5. Agent capabilities**:
|
|
||||||
You can define agents based on LLM Function Calling or ReAct, and add pre-built or custom tools for the agent. Dify provides 50+ built-in tools for AI agents, such as Google Search, DALL·E, Stable Diffusion and WolframAlpha.
|
|
||||||
|
|
||||||
**6. LLMOps**:
|
|
||||||
Monitor and analyze application logs and performance over time. You could continuously improve prompts, datasets, and models based on production data and annotations.
|
|
||||||
|
|
||||||
**7. Backend-as-a-Service**:
|
|
||||||
All of Dify's offerings come with corresponding APIs, so you could effortlessly integrate Dify into your own business logic.
|
|
||||||
|
|
||||||
## Feature Comparison
|
|
||||||
|
|
||||||
<table style="width: 100%;">
|
|
||||||
<tr>
|
|
||||||
<th align="center">Feature</th>
|
|
||||||
<th align="center">Dify.AI</th>
|
|
||||||
<th align="center">LangChain</th>
|
|
||||||
<th align="center">Flowise</th>
|
|
||||||
<th align="center">OpenAI Assistants API</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Programming Approach</td>
|
|
||||||
<td align="center">API + App-oriented</td>
|
|
||||||
<td align="center">Python Code</td>
|
|
||||||
<td align="center">App-oriented</td>
|
|
||||||
<td align="center">API-oriented</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Supported LLMs</td>
|
|
||||||
<td align="center">Rich Variety</td>
|
|
||||||
<td align="center">Rich Variety</td>
|
|
||||||
<td align="center">Rich Variety</td>
|
|
||||||
<td align="center">OpenAI-only</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">RAG Engine</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Agent</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Workflow</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Observability</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Enterprise Feature (SSO/Access control)</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Local Deployment</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">✅</td>
|
|
||||||
<td align="center">❌</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
## Using Dify
|
Grab a binary from the [release page](https://github.com/editorconfig-checker/editorconfig-checker/releases).
|
||||||
|
|
||||||
- **Cloud </br>**
|
If you have go installed you can run `go get github.com/editorconfig-checker/editorconfig-checker/v3` <!-- x-release-please-major -->
|
||||||
We host a [Dify Cloud](https://dify.ai) service for anyone to try with zero setup. It provides all the capabilities of the self-deployed version, and includes 200 free GPT-4 calls in the sandbox plan.
|
and run `make build` inside the project folder.
|
||||||
|
This will place a binary called `ec` into the `bin` directory.
|
||||||
|
|
||||||
- **Self-hosting Dify Community Edition</br>**
|
If you are using Arch Linux, you can use [pacman](https://wiki.archlinux.org/title/Pacman) to install from [extra repository](https://archlinux.org/packages/extra/x86_64/editorconfig-checker/):
|
||||||
Quickly get Dify running in your environment with this [starter guide](#quick-start).
|
|
||||||
Use our [documentation](https://docs.dify.ai) for further references and more in-depth instructions.
|
|
||||||
|
|
||||||
- **Dify for enterprise / organizations</br>**
|
|
||||||
We provide additional enterprise-centric features. [Log your questions for us through this chatbot](https://udify.app/chat/22L1zSxg6yW1cWQg) or [send us an email](mailto:business@dify.ai?subject=[GitHub]Business%20License%20Inquiry) to discuss enterprise needs. </br>
|
|
||||||
> For startups and small businesses using AWS, check out [Dify Premium on AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6) and deploy it to your own AWS VPC with one click. It's an affordable AMI offering with the option to create apps with custom logo and branding.
|
|
||||||
|
|
||||||
## Staying ahead
|
|
||||||
|
|
||||||
Star Dify on GitHub and be instantly notified of new releases.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Advanced Setup
|
|
||||||
|
|
||||||
If you need to customize the configuration, please refer to the comments in our [.env.example](docker/.env.example) file and update the corresponding values in your `.env` file. Additionally, you might need to make adjustments to the `docker-compose.yaml` file itself, such as changing image versions, port mappings, or volume mounts, based on your specific deployment environment and requirements. After making any changes, please re-run `docker-compose up -d`. You can find the full list of available environment variables [here](https://docs.dify.ai/getting-started/install-self-hosted/environments).
|
|
||||||
|
|
||||||
If you'd like to configure a highly-available setup, there are community-contributed [Helm Charts](https://helm.sh/) and YAML files which allow Dify to be deployed on Kubernetes.
|
|
||||||
|
|
||||||
- [Helm Chart by @LeoQuote](https://github.com/douban/charts/tree/master/charts/dify)
|
|
||||||
- [Helm Chart by @BorisPolonsky](https://github.com/BorisPolonsky/dify-helm)
|
|
||||||
- [Helm Chart by @magicsong](https://github.com/magicsong/ai-charts)
|
|
||||||
- [YAML file by @Winson-030](https://github.com/Winson-030/dify-kubernetes)
|
|
||||||
- [YAML file by @wyy-holding](https://github.com/wyy-holding/dify-k8s)
|
|
||||||
|
|
||||||
#### Using Terraform for Deployment
|
|
||||||
|
|
||||||
Deploy Dify to Cloud Platform with a single click using [terraform](https://www.terraform.io/)
|
|
||||||
|
|
||||||
##### Azure Global
|
|
||||||
|
|
||||||
- [Azure Terraform by @nikawang](https://github.com/nikawang/dify-azure-terraform)
|
|
||||||
|
|
||||||
##### Google Cloud
|
|
||||||
|
|
||||||
- [Google Cloud Terraform by @sotazum](https://github.com/DeNA/dify-google-cloud-terraform)
|
|
||||||
|
|
||||||
#### Using AWS CDK for Deployment
|
|
||||||
|
|
||||||
Deploy Dify to AWS with [CDK](https://aws.amazon.com/cdk/)
|
|
||||||
|
|
||||||
##### AWS
|
|
||||||
|
|
||||||
- [AWS CDK by @KevinZhao](https://github.com/aws-samples/solution-for-deploying-dify-on-aws)
|
|
||||||
|
|
||||||
#### Using Alibaba Cloud Computing Nest
|
```shell
|
||||||
|
pacman -S editorconfig-checker
|
||||||
|
```
|
||||||
|
|
||||||
Quickly deploy Dify to Alibaba cloud with [Alibaba Cloud Computing Nest](https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=Dify%E7%A4%BE%E5%8C%BA%E7%89%88)
|
Also, development (VCS) package is available in the [AUR](https://aur.archlinux.org/packages/editorconfig-checker-git):
|
||||||
|
|
||||||
#### Using Alibaba Cloud Data Management
|
```shell
|
||||||
|
# <favourite-aur-helper> <install-command> editorconfig-checker-git
|
||||||
|
|
||||||
One-Click deploy Dify to Alibaba Cloud with [Alibaba Cloud Data Management](https://www.alibabacloud.com/help/en/dms/dify-in-invitational-preview/)
|
# i.e.
|
||||||
|
paru -S editorconfig-checker-git
|
||||||
|
```
|
||||||
|
|
||||||
|
If Go 1.16 or greater is installed, you can also install it globally via `go install`:
|
||||||
|
|
||||||
## Contributing
|
```shell
|
||||||
|
go install github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@latest
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```txt
|
||||||
|
USAGE:
|
||||||
|
-config string
|
||||||
|
config
|
||||||
|
-debug
|
||||||
|
print debugging information
|
||||||
|
-disable-end-of-line
|
||||||
|
disables the trailing whitespace check
|
||||||
|
-disable-indent-size
|
||||||
|
disables only the indent-size check
|
||||||
|
-disable-indentation
|
||||||
|
disables the indentation check
|
||||||
|
-disable-insert-final-newline
|
||||||
|
disables the final newline check
|
||||||
|
-disable-trim-trailing-whitespace
|
||||||
|
disables the trailing whitespace check
|
||||||
|
-dry-run
|
||||||
|
show which files would be checked
|
||||||
|
-exclude string
|
||||||
|
a regex which files should be excluded from checking - needs to be a valid regular expression
|
||||||
|
-format
|
||||||
|
specifies the output format, see "Formats" below for more information
|
||||||
|
-h print the help
|
||||||
|
-help
|
||||||
|
print the help
|
||||||
|
-ignore-defaults
|
||||||
|
ignore default excludes
|
||||||
|
-init
|
||||||
|
creates an initial configuration
|
||||||
|
-no-color
|
||||||
|
disables printing color
|
||||||
|
-color
|
||||||
|
enables printing color
|
||||||
|
-v print debugging information
|
||||||
|
-verbose
|
||||||
|
print debugging information
|
||||||
|
-version
|
||||||
|
print the version number
|
||||||
|
```
|
||||||
|
|
||||||
|
If you run this tool from a repository root it will check all files which are added to the git repository and are text files. If the tool isn't able to determine a file type it will be added to be checked too.
|
||||||
|
|
||||||
|
If you run this tool from a normal directory it will check all files which are text files. If the tool isn't able to determine a file type it will be added to be checked too.
|
||||||
|
|
||||||
|
### Formats
|
||||||
|
|
||||||
|
The following output formats are supported:
|
||||||
|
|
||||||
|
- **default**: Plain text, human readable output.<br/>
|
||||||
|
```text
|
||||||
|
<file>:
|
||||||
|
<startingLine>-<endLine>: <message>
|
||||||
|
```
|
||||||
|
- **gcc**: GCC compatible output. Useful for editors that support compiling and showing syntax errors. <br/>
|
||||||
|
`<file>:<line>:<column>: <type>: <message>`
|
||||||
|
- **github-actions**: The format used by GitHub Actions <br/>
|
||||||
|
`::error file=<file>,line=<startingLine>,endLine=<endingLine>::<message>`
|
||||||
|
- **codeclimate**: The [Code Climate](https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#data-types) json format used for [custom quality reports](https://docs.gitlab.com/ee/ci/testing/code_quality.html#implement-a-custom-tool) in GitLab CI
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"check_name": "editorconfig-checker",
|
||||||
|
"description": "Wrong indent style found (tabs instead of spaces)",
|
||||||
|
"fingerprint": "e87a958a3960d60a11d4b49c563cccd2",
|
||||||
|
"severity": "minor",
|
||||||
|
"location": {
|
||||||
|
"path": ".vscode/extensions.json",
|
||||||
|
"lines": {
|
||||||
|
"begin": 2,
|
||||||
|
"end": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
The configuration is done via arguments or it will take the first config file found with the following file names:
|
||||||
|
|
||||||
|
- `.editorconfig-checker.json`
|
||||||
|
- `.ecrc` (deprecated filename, soon unsupported)
|
||||||
|
|
||||||
|
A sample configuration file can look like this and will be used from your current working directory if not specified via the `--config` argument:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"Verbose": false,
|
||||||
|
"Debug": false,
|
||||||
|
"IgnoreDefaults": false,
|
||||||
|
"SpacesAfterTabs": false,
|
||||||
|
"NoColor": false,
|
||||||
|
"Exclude": [],
|
||||||
|
"AllowedContentTypes": [],
|
||||||
|
"PassedFiles": [],
|
||||||
|
"Disable": {
|
||||||
|
"EndOfLine": false,
|
||||||
|
"Indentation": false,
|
||||||
|
"IndentSize": false,
|
||||||
|
"InsertFinalNewline": false,
|
||||||
|
"TrimTrailingWhitespace": false,
|
||||||
|
"MaxLineLength": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
For those who'd like to contribute code, see our [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md).
|
You can set any of the options under the `"Disable"` section to `true` to disable those particular checks.
|
||||||
At the same time, please consider supporting Dify by sharing it on social media and at events and conferences.
|
|
||||||
|
|
||||||
> We are looking for contributors to help translate Dify into languages other than Mandarin or English. If you are interested in helping, please see the [i18n README](https://github.com/langgenius/dify/blob/main/web/i18n/README.md) for more information, and leave us a comment in the `global-users` channel of our [Discord Community Server](https://discord.gg/8Tpq4AcN9c).
|
You could also specify command line arguments, and they will get merged with the configuration file. The command line arguments have a higher precedence than the configuration.
|
||||||
|
|
||||||
## Community & contact
|
You can create a configuration with the `init`-flag. If you specify a `config`-path it will be created there.
|
||||||
|
|
||||||
- [GitHub Discussion](https://github.com/langgenius/dify/discussions). Best for: sharing feedback and asking questions.
|
By default, the allowed_content_types are:
|
||||||
- [GitHub Issues](https://github.com/langgenius/dify/issues). Best for: bugs you encounter using Dify.AI, and feature proposals. See our [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md).
|
|
||||||
- [Discord](https://discord.gg/FngNHpbcY7). Best for: sharing your applications and hanging out with the community.
|
|
||||||
- [X(Twitter)](https://twitter.com/dify_ai). Best for: sharing your applications and hanging out with the community.
|
|
||||||
|
|
||||||
**Contributors**
|
1. `text/` (matches `text/plain`, `text/html`, etc.)
|
||||||
|
1. `application/ecmascript`
|
||||||
|
1. `application/json`
|
||||||
|
1. `application/x-ndjson`
|
||||||
|
1. `application/xml`
|
||||||
|
1. `+json` (matches `application/geo+json`, etc.)
|
||||||
|
1. `+xml` (matches `application/rss+xml`, etc.)
|
||||||
|
1. `application/octet-stream`
|
||||||
|
|
||||||
<a href="https://github.com/langgenius/dify/graphs/contributors">
|
`application/octet-stream` is needed as a fallback when no content type could be determined. You can add additional accepted content types with the `allowed_content_types` key. But the default ones don't get removed.
|
||||||
<img src="https://contrib.rocks/image?repo=langgenius/dify" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
## Star history
|
## Excluding
|
||||||
|
|
||||||
|
### Excluding Lines
|
||||||
|
|
||||||
|
You can exclude single lines inline. To do that you need a comment on that line that says: `editorconfig-checker-disable-line`.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const myTemplateString = `
|
||||||
|
first line
|
||||||
|
wrongly indented line because it needs to be` // editorconfig-checker-disable-line
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively, you can use `editorconfig-checker-disable-next-line` to skip the line that comes after this comment.
|
||||||
|
This modifier is present to improve readability, or because your sometimes have no other choice because of your own/language constraints.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// editorconfig-checker-disable-next-line used because blah blah blah what ever the reason blah
|
||||||
|
const myTemplateString = `a line that is (...) longer (...) than ... usual` // or with a very long inline comment
|
||||||
|
```
|
||||||
|
|
||||||
[](https://star-history.com/#langgenius/dify&Date)
|
Please note that using `editorconfig-checker-disable-next-line` has only an effect on the next line, so it will report if the line where you added the modifier doesn't comply.
|
||||||
|
|
||||||
## Security disclosure
|
### Excluding Blocks
|
||||||
|
|
||||||
To protect your privacy, please avoid posting security issues on GitHub. Instead, send your questions to security@dify.ai and we will provide you with a more detailed answer.
|
To temporarily disable all checks, add a comment containing `editorconfig-checker-disable`. Re-enable with a comment containing `editorconfig-checker-enable`
|
||||||
|
|
||||||
## License
|
```javascript
|
||||||
|
// editorconfig-checker-disable
|
||||||
|
const myTemplateString = `
|
||||||
|
first line
|
||||||
|
wrongly indented line because it needs to be
|
||||||
|
`
|
||||||
|
// editorconfig-checker-enable
|
||||||
|
```
|
||||||
|
|
||||||
|
### Excluding Paths
|
||||||
|
|
||||||
|
You can exclude paths from being checked in several ways:
|
||||||
|
|
||||||
|
- ignoring a file by documenting it inside the to-be-excluded file
|
||||||
|
- adding a regex matching the path to the [configuration file](#configuration)
|
||||||
|
- passing a regex matching the path as argument to `--exclude`
|
||||||
|
|
||||||
|
All these excludes are used in addition to the [default excludes](#default-excludes), unless you [opt out of them](#ignoring-default-excludes).
|
||||||
|
|
||||||
|
If you want to see which files would be checked without checking them you can pass the `--dry-run` flag.
|
||||||
|
|
||||||
|
Note that while `--dry-run` might output absolute paths, the regular expression you write must match the filenames using relative paths from where editorconfig-checker is used. This becomes especially relevant if you need to anchor your regular expression in order to only match files in the top level your checked directory.
|
||||||
|
|
||||||
|
Additionally, paths will be normalized to Unix style before matching against the regex list happens. As a result you don't have to write `[\\/]` to account for Windows and Unix path styles but can just use `/` instead.
|
||||||
|
|
||||||
|
#### Inline
|
||||||
|
|
||||||
|
If you want to exclude a file inline you need a comment on the first line of the file that contains: `editorconfig-checker-disable-file`
|
||||||
|
|
||||||
|
```haskell
|
||||||
|
-- editorconfig-checker-disable-file
|
||||||
|
add :: Int -> Int -> Int
|
||||||
|
add x y =
|
||||||
|
let result = x + y -- falsy indentation would not report
|
||||||
|
in result -- falsy indentation would not report
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Default Excludes
|
||||||
|
|
||||||
|
If you choose to [ignore them](#ignoring-default-excludes), these paths are excluded automatically:
|
||||||
|
|
||||||
|
```txt
|
||||||
|
// source control related files and folders
|
||||||
|
"\\.git/",
|
||||||
|
"\\.jj/",
|
||||||
|
// package manager, generated, & lock files
|
||||||
|
// Cargo (Rust)
|
||||||
|
"Cargo\\.lock$",
|
||||||
|
// Composer (PHP)
|
||||||
|
"composer\\.lock$",
|
||||||
|
// RubyGems (Ruby)
|
||||||
|
"Gemfile\\.lock$",
|
||||||
|
// Go Modules (Go)
|
||||||
|
"go\\.(mod|sum)$",
|
||||||
|
// Gradle (Java)
|
||||||
|
"gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
"gradlew(\\.bat)?$",
|
||||||
|
"(buildscript-)?gradle\\.lockfile?$",
|
||||||
|
// Maven (Java)
|
||||||
|
"\\.mvn/wrapper/maven-wrapper\\.properties$",
|
||||||
|
"\\.mvn/wrapper/MavenWrapperDownloader\\.java$",
|
||||||
|
"mvnw(\\.cmd)?$",
|
||||||
|
// NodeJS
|
||||||
|
"/node_modules/",
|
||||||
|
// npm (NodeJS)
|
||||||
|
"npm-shrinkwrap\\.json$",
|
||||||
|
"package-lock\\.json$",
|
||||||
|
// pip (Python)
|
||||||
|
"Pipfile\\.lock$",
|
||||||
|
// Poetry (Python)
|
||||||
|
"poetry\\.lock$",
|
||||||
|
// pnpm (NodeJS)
|
||||||
|
"pnpm-lock\\.yaml$",
|
||||||
|
// Terraform & OpenTofu
|
||||||
|
"\\.terraform\\.lock\\.hcl$",
|
||||||
|
// uv (Python)
|
||||||
|
"uv\\.lock$",
|
||||||
|
// yarn (NodeJS)
|
||||||
|
"\\.pnp\\.c?js$",
|
||||||
|
"\\.pnp\\.loader\\.mjs$",
|
||||||
|
"\\.yarn/",
|
||||||
|
"yarn\\.lock$",
|
||||||
|
// font files
|
||||||
|
"\\.eot$",
|
||||||
|
"\\.otf$",
|
||||||
|
"\\.ttf$",
|
||||||
|
"\\.woff2?$",
|
||||||
|
// image & video formats
|
||||||
|
"\\.avif$",
|
||||||
|
"\\.gif$",
|
||||||
|
"\\.ico$",
|
||||||
|
"\\.jpe?g$",
|
||||||
|
"\\.mp4$",
|
||||||
|
"\\.p[bgnp]m$",
|
||||||
|
"\\.png$",
|
||||||
|
"\\.svg$",
|
||||||
|
"\\.tiff?$",
|
||||||
|
"\\.webp$",
|
||||||
|
"\\.wmv$",
|
||||||
|
// other binary or container formats
|
||||||
|
"\\.bak$",
|
||||||
|
"\\.bin$",
|
||||||
|
"\\.docx?$",
|
||||||
|
"\\.exe$",
|
||||||
|
"\\.pdf$",
|
||||||
|
"\\.snap$",
|
||||||
|
"\\.xlsx?$",
|
||||||
|
// archive formats
|
||||||
|
"\\.7z$",
|
||||||
|
"\\.bz2$",
|
||||||
|
"\\.gz$",
|
||||||
|
"\\.jar$",
|
||||||
|
"\\.tar$",
|
||||||
|
"\\.tgz$",
|
||||||
|
"\\.war$",
|
||||||
|
"\\.zip$",
|
||||||
|
// log & (git) patch files
|
||||||
|
"\\.log$",
|
||||||
|
"\\.patch$",
|
||||||
|
// generated or minified CSS and JavaScript files
|
||||||
|
"\\.(css|js)\\.map$",
|
||||||
|
"min\\.(css|js)$",
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Ignoring Default Excludes
|
||||||
|
|
||||||
|
If you either set `IgnoreDefaults` to `true` or pass the `-ignore-defaults` commandline switch, the [default excludes](#default-excludes) will be ignored entirely.
|
||||||
|
|
||||||
|
#### Manually Excluding
|
||||||
|
|
||||||
|
##### via configuration
|
||||||
|
|
||||||
|
In your [configuration file](#configuration) you can exclude files with the `"exclude"` key which takes an array of regular expressions.
|
||||||
|
This will get merged with the default excludes (if not [ignored](#ignoring-default-excludes)). You should remember to escape your regular expressions correctly.
|
||||||
|
|
||||||
|
A [configuration file](#configuration) which would ignore all test files and all Markdown files can look like this:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"Verbose": false,
|
||||||
|
"IgnoreDefaults": false,
|
||||||
|
"Exclude": ["testfiles", "\\.md$"],
|
||||||
|
"SpacesAfterTabs": false,
|
||||||
|
"Disable": {
|
||||||
|
"EndOfLine": false,
|
||||||
|
"Indentation": false,
|
||||||
|
"IndentSize": false,
|
||||||
|
"InsertFinalNewline": false,
|
||||||
|
"TrimTrailingWhitespace": false,
|
||||||
|
"MaxLineLength": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### via arguments
|
||||||
|
|
||||||
|
If you want to play around how the tool would behave you can also pass the `--exclude` argument to the binary. This will accept a regular expression as well. The argument given will be added to the excludes as defined by your [configuration file](#configuration) (respecting both its [`Exclude`](#via-configuration) and [`IgnoreDefaults`](#ignoring-default-excludes) settings).
|
||||||
|
|
||||||
|
For example: `ec --exclude node_modules`
|
||||||
|
|
||||||
|
## Docker
|
||||||
|
|
||||||
|
You are able to run this tool inside a Docker container.
|
||||||
|
To do this you need to have Docker installed and run this command in your repository root which you want to check:
|
||||||
|
`docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker`
|
||||||
|
|
||||||
|
Docker Hub: [mstruebing/editorconfig-checker](https://hub.docker.com/r/mstruebing/editorconfig-checker)
|
||||||
|
|
||||||
|
## Continuous Integration
|
||||||
|
|
||||||
|
### Mega-Linter
|
||||||
|
|
||||||
|
Instead of installing and configuring `editorconfig-checker` and all other linters in your project CI workflows (GitHub Actions & others), you can use [Mega-Linter](https://megalinter.io/latest/) which does all that for you with a single [assisted installation](https://megalinter.io/latest/install-assisted/).
|
||||||
|
|
||||||
|
Mega-Linter embeds [editorconfig-checker](https://megalinter.io/latest/descriptors/editorconfig_editorconfig_checker/) by default in all its [flavors](https://megalinter.io/latest/flavors/), meaning that it will be run at each commit or Pull Request to detect any issue related to `.editorconfig`.
|
||||||
|
|
||||||
|
If you want to use only `editorconfig-checker` and not the 70+ other linters, you can use the following `.mega-linter.yml` configuration file:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
ENABLE:
|
||||||
|
- EDITORCONFIG
|
||||||
|
```
|
||||||
|
|
||||||
|
### GitLab CI
|
||||||
|
|
||||||
|
The [ss-open/ci/recipes project](https://gitlab.com/ss-open/ci/recipes) offers a ready to use lint job integrating editorconfig-checker.
|
||||||
|
|
||||||
|
- Main documentation: <https://gitlab.com/ss-open/ci/recipes/-/blob/main/README.md>
|
||||||
|
- Editorconfig job specific documentation: <https://gitlab.com/ss-open/ci/recipes/-/blob/main/stages/lint/editorconfig/README.md>
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
If you have any questions, suggestions, need a wrapper for a programming language or just want to chat join #editorconfig-checker on freenode(IRC).
|
||||||
|
If you don't have an IRC-client set up you can use the [freenode webchat](https://webchat.freenode.net/?channels=editorconfig-checker).
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
This repository is available under the [Dify Open Source License](LICENSE), which is essentially Apache 2.0 with a few additional restrictions.
|
Anyone can help to improve the project, submit a Feature Request, a bug report or even correct a spelling mistake.
|
||||||
|
|
||||||
|
The steps to contribute can be found in the [CONTRIBUTING.md](./CONTRIBUTING.md) file.
|
||||||
|
|
||||||
|
## Semantic Versioning Policy
|
||||||
|
|
||||||
|
**editorconfig-checker** adheres to [Semantic Versioning](https://semver.org/) for releases.
|
||||||
|
|
||||||
|
However, as it is a code quality tool, it's not always clear when a minor or major version bump occurs. The following rules are used to determine the version bump:
|
||||||
|
|
||||||
|
- Patch release (1.0.x -> 1.0.y)
|
||||||
|
- Updates to output formats (error messages, logs, ...).
|
||||||
|
- Performance improvements which doesn't affect behavior.
|
||||||
|
- Build process changes (e.g., updating dependencies, updating `Dockerfile`, ...).
|
||||||
|
- Reverts (reverting a previous commit).
|
||||||
|
- Bug fixes which result in **editorconfig-checker** reporting less linting errors (removing "false-positive" linting errors).
|
||||||
|
- Minor release (1.x.0 -> 1.y.0)
|
||||||
|
- Adding new [configuration options](#configuration), including new CLI flags.
|
||||||
|
- Adding new [path to exclude by default](#default-excludes).
|
||||||
|
- Adding new [output formats](#formats).
|
||||||
|
- Supporting a new [editorconfig](https://editorconfig.org/) property (e.g: `insert_final_newline`, `indent_size`, ...).
|
||||||
|
- Any new feature which doesn't break existing behavior.
|
||||||
|
- Major release (x.0.0 -> y.0.0)
|
||||||
|
- Removal of a [configuration](#configuration) option.
|
||||||
|
- Removal of an [output format](#formats).
|
||||||
|
- Removal of a [path to exclude by default](#default-excludes).
|
||||||
|
- Removal of support for an [editorconfig](https://editorconfig.org/) property.
|
||||||
|
- Bug fixes, which result in **editorconfig-checker** reporting more linting errors, because the previous behavior was incorrect according to the [editorconfig specification](https://editorconfig.org/).
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
# venv
|
||||||
|
venv*/
|
||||||
|
.venv/
|
||||||
|
|
||||||
|
# ide
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# custom
|
||||||
|
web/.env.local.save
|
||||||
|
venv312/
|
||||||
@ -1,4 +1,3 @@
|
|||||||
TTS_AUTO_PLAY_TIMEOUT = 5
|
TTS_AUTO_PLAY_TIMEOUT = 5
|
||||||
|
|
||||||
# sleep 20 ms ( 40ms => 1280 byte audio file,20ms => 640 byte audio file)
|
# sleep 20 ms ( 40ms => 1280 byte audio file,20ms => 640 byte audio file)
|
||||||
TTS_AUTO_PLAY_YIELD_CPU_TIME = 0.02
|
TTS_AUTO_PLAY_YIELD_CPU_TIME = 0.02
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue