EditorConfig Validation
Atmos supports validation of EditorConfigs to check the formatting of your configuration files. By enforcing the canonical rules specified in your .editorconfig
file, it helps ensure consistent formatting across your project.
Example
Configuration
To use the atmos validate editorconfig
command, ensure that your project contains a properly configured .editorconfig
file at the root level or in relevant directories. This file defines the coding styles for the project, such as indentation, line endings, and character encodings.
.editorconfig
Output
The atmos validate editorconfig
command will provide detailed output indicating whether the files comply with the .editorconfig
rules or if there are any violations. For example:
Troubleshooting
If validation fails, review your .editorconfig
file and ensure the rules align with your project's requirements. You can also run the command with verbose output for more details: