hashicorp / hashicorp/hcl

Support tabs in `nomad fmt`

Open
#691 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.8k
Forks
657
Avg merge
20h 36m
Merged PRs (30d)
6

Description

### Proposal

nomad fmt should support using tabs for indentation. Using two spaces is less accessible. Meanwhile, by using tabs, each team member can choose the visual level of indentation based on the file complexity and their visual needs.

This can be enabled via a cli flag `nomad fmt -tabs` or by respecting the `.editorconfig`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the `nomad fmt` entry point and the formatter configuration and test coverage. Compare the proposed CLI flag and `.editorconfig` approaches, then define the selected behavior and add tests showing that tab indentation is honored when formatting is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.