Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML indent size to editorconfig #28

Open
pheus opened this issue Jul 28, 2024 · 0 comments · May be fixed by #29
Open

Add YAML indent size to editorconfig #28

pheus opened this issue Jul 28, 2024 · 0 comments · May be fixed by #29

Comments

@pheus
Copy link

pheus commented Jul 28, 2024

cookiecutter-netbox-plugin version

main (d920039)

Feature type

Change to existing functionality

Proposed functionality

The current .editorconfig is set to indent text with 4 spaces for all files. However, the YAML files generated for mkdocs and GitHub Action workflows utilize a 2-space indentation.
To streamline this, I suggest adding a specific rule for *.yml and *.yaml files in the .editorconfig to use an indentation size of 2 spaces.

Use case

Once the indentation size of 2 is specified for *.yml and *.yaml files in the .editorconfig, all supported editors or Integrated Development Environments (IDEs) will now use the correct indentation for these YAML files.

External dependencies

None.

pheus added a commit to pheus/cookiecutter-netbox-plugin that referenced this issue Jul 28, 2024
Change URL protocol to HTTPS in .editorconfig file.
Add YAML specific settings to enforce 2 spaces for indentation.

Fixes netbox-community#28
@pheus pheus linked a pull request Jul 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant