-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add .editorconfig canonical template #7
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # EditorConfig — Phenotype org canonical | ||
| # https://editorconfig.org | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| indent_style = space | ||
| indent_size = 4 | ||
| trim_trailing_whitespace = true | ||
|
|
||
| [*.{rs,toml,py,go,md,yaml,yml,json,html,css,scss}] | ||
| indent_size = 4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Go files get space indentation conflicting with gofmtMedium Severity The extension list on this line explicitly includes Reviewed by Cursor Bugbot for commit ea36390. Configure here. |
||
|
|
||
| [*.{ts,tsx,js,jsx,mjs,cjs}] | ||
| indent_size = 2 | ||
|
|
||
| [Makefile] | ||
| indent_style = tab | ||
|
|
||
| [*.md] | ||
| trim_trailing_whitespace = false # trailing spaces = line break in Markdown | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The Markdown override uses an inline comment on the same line as Severity Level: Major
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant indent_size section duplicates wildcard default
Low Severity
The
[*.{rs,toml,py,go,md,yaml,yml,json,html,css,scss}]section setsindent_size = 4, which is already the default from the[*]section. This is fully redundant — removing it changes nothing. For a "canonical template" intended for broad adoption, redundant rules add maintenance burden and risk diverging from the wildcard default if one is updated without the other.Reviewed by Cursor Bugbot for commit ea36390. Configure here.