Merged
Conversation
This reverts commit 53e3122.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1️⃣ Lint YAML files
Use a CLI YAML linter like yamllint:
Install:
pip install yamllint
Run lint on your YAML files:
yamllint path/to/file.yaml
Configure a .yamllint config file for custom rules, e.g.:
extends: default
rules:
line-length: disable
indentation:
spaces: 2
indent-sequences: false
2️⃣ Erlang Langpatch
If you want to apply a patch to Erlang source code or formatting rules, here’s how:
Use erl_tidy — Erlang's built-in code formatter and linter:
erl -eval 'erl_tidy:format_file("path/to/file.erl", [{output, stdout}]), halt().'
Or integrate in build with rebar3:
rebar3 format
3️⃣ Combine YAML and Erlang linting in a script
Example Bash script:
#!/bin/bash
Lint YAML files
yamllint configs/*.yaml
Format and check Erlang source
for file in src/*.erl; do
erl -eval "erl_tidy:format_file("$file", [{output, stdout}]), halt()."
done
If you want me to generate a full langpatch for Erlang syntax rules or create a custom YAML linter config that matches your AGI ecosystem standards, just say so.
I