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
.editorconfig: various #88431
.editorconfig: various #88431
Conversation
@@ -34,3 +34,9 @@ indent_size = 2 | |||
# Match perl/python/shell scripts, set indent width of four | |||
[*.{pl,py,sh}] | |||
indent_size = 4 | |||
|
|||
# Disable for auto-generated hackage2nix file | |||
[pkgs/development/haskell-modules/hackage-packages.nix] |
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.
While you are at it, maybe also check if we need to add pkgs/development/node-packages/node-packages-v*.nix
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.
Apart from not having final newlines they seem fine.
Some of the generated json files (node-packages-*.json
, recipes-archive-melpa.json
) will probably need to be excluded if we end up adding json
.
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.
Added node-packages-v*.nix
and gemset.nix
(#88564).
I guess we're probably going to end up doing this for a lot of the generated files.
@Mic92 There is about 50 I'm going through the repo by file type and size now looking for other outliers. |
I think mainly @7c6f434c uses them. I don't know what tool he uses it for. |
I've been using as well. What do you think about adding it here? I send a PR it if you agree? |
Feel free to add it with me as a maintainer. |
|
I think we can still merge this one. |
I guess we should still try and get all of generated files listed and add some of the more common file types. |
insert_final_newline = unset | ||
|
||
# Disable for auto-generated perl-packages file | ||
[pkgs/top-level/perl-packages.nix] |
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.
Some of the stuff might be automatic. Some of it is manual. But there might be a lot of errors still though given its size.
add Gemfile, .json, .lock, .md, .pm disable for some files or file types that are auto-generated or require significant changes
I wanted to set a treewide default and require that files opt-out but there are too many miscellaneous files checked in for a default to be enforced without it becoming tedious. |
Draft until we decide to keep theeditorconfig
CI check.