fix: brought back the csharpier editor config, maybe
This commit is contained in:
parent
482b8abfa7
commit
b4370e7e9e
3 changed files with 106 additions and 0 deletions
30
news/2024-08-07-changed-default-dotnet-formatter.md
Normal file
30
news/2024-08-07-changed-default-dotnet-formatter.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Changed the default .NET formatter
|
||||
|
||||
When we first introduced the .NET formatter for C# files, we picked
|
||||
[csharpier](https://csharpier.com/) because it was a lot faster than
|
||||
[dotnet format](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format).
|
||||
Since then, the opinionated formatting that came with `csharpier` was getting in
|
||||
the way of our style and along with conflcits with
|
||||
[ReSharper](https://www.jetbrains.com/resharper/).
|
||||
|
||||
The latest is breaking change that switches the default formatter out but
|
||||
retains the `csharpier` formatting for those who want it. To put it back:
|
||||
|
||||
```nix
|
||||
config = inputs.mfgames-project-setup.lib.mkConfig {
|
||||
inherit system pkgs;
|
||||
dotnet.enable = true;
|
||||
dotnet.csharpier = true;
|
||||
dotnet.format = false; # Defaults to false, so don't need it.
|
||||
};
|
||||
```
|
||||
|
||||
To use `dotnet format`, the setup would be:
|
||||
|
||||
```nix
|
||||
config = inputs.mfgames-project-setup.lib.mkConfig {
|
||||
inherit system pkgs;
|
||||
dotnet.enable = true;
|
||||
dotnet.format = true;
|
||||
};
|
||||
```
|
12
news/2025-01-10-update-to-nixos-24.11.md
Normal file
12
news/2025-01-10-update-to-nixos-24.11.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Update to NixOS 24.11
|
||||
|
||||
An occasional chores, we've updated the flake to be based off
|
||||
[NixOS 24.11](https://nixos.org/blog/announcements/2024/nixos-2411/). From our
|
||||
understanding, the flake input could always be changed but this sets up a nice
|
||||
default using the current, non-deprecated version of NixOS.
|
||||
|
||||
This came with a couple surprising changes, mostly in behavior from our tools.
|
||||
In specific, `treefmt` got a lot noisier with 24.11 when it came to unknown
|
||||
files in the repository (like `.php` files we we don't have set up).
|
||||
Modifications were made to the linked `treefmt.toml` file to not report those to
|
||||
avoid a wall of text when there were a lot of them.
|
|
@ -101,6 +101,70 @@ let
|
|||
resharper_xmldoc_indent_child_elements = "ZeroIndent";
|
||||
resharper_xmldoc_indent_text = "ZeroIndent";
|
||||
resharper_xmldoc_insert_final_newline = false;
|
||||
}
|
||||
// pkgs.lib.attrsets.optionalAttrs inputs.dotnet.csharpier {
|
||||
# csharpier settings
|
||||
# https://csharpier.com/docs/IntegratingWithLinters
|
||||
"dotnet_diagnostic.IDE0055.severity" = "none";
|
||||
"dotnet_diagnostic.SA1000.severity" = "none";
|
||||
"dotnet_diagnostic.SA1009.severity" = "none";
|
||||
"dotnet_diagnostic.SA1111.severity" = "none";
|
||||
"dotnet_diagnostic.SA1118.severity" = "none";
|
||||
"dotnet_diagnostic.SA1137.severity" = "none";
|
||||
"dotnet_diagnostic.SA1413.severity" = "none";
|
||||
"dotnet_diagnostic.SA1500.severity" = "none";
|
||||
"dotnet_diagnostic.SA1501.severity" = "none";
|
||||
"dotnet_diagnostic.SA1502.severity" = "none";
|
||||
"dotnet_diagnostic.SA1504.severity" = "none";
|
||||
"dotnet_diagnostic.SA1516.severity" = "none";
|
||||
"dotnet_diagnostic.SA1001.severity" = "none";
|
||||
"dotnet_diagnostic.SA1002.severity" = "none";
|
||||
"dotnet_diagnostic.SA1003.severity" = "none";
|
||||
"dotnet_diagnostic.SA1007.severity" = "none";
|
||||
"dotnet_diagnostic.SA1008.severity" = "none";
|
||||
"dotnet_diagnostic.SA1010.severity" = "none";
|
||||
"dotnet_diagnostic.SA1011.severity" = "none";
|
||||
"dotnet_diagnostic.SA1012.severity" = "none";
|
||||
"dotnet_diagnostic.SA1013.severity" = "none";
|
||||
"dotnet_diagnostic.SA1014.severity" = "none";
|
||||
"dotnet_diagnostic.SA1015.severity" = "none";
|
||||
"dotnet_diagnostic.SA1016.severity" = "none";
|
||||
"dotnet_diagnostic.SA1017.severity" = "none";
|
||||
"dotnet_diagnostic.SA1018.severity" = "none";
|
||||
"dotnet_diagnostic.SA1019.severity" = "none";
|
||||
"dotnet_diagnostic.SA1020.severity" = "none";
|
||||
"dotnet_diagnostic.SA1021.severity" = "none";
|
||||
"dotnet_diagnostic.SA1022.severity" = "none";
|
||||
"dotnet_diagnostic.SA1023.severity" = "none";
|
||||
"dotnet_diagnostic.SA1024.severity" = "none";
|
||||
"dotnet_diagnostic.SA1025.severity" = "none";
|
||||
"dotnet_diagnostic.SA1026.severity" = "none";
|
||||
"dotnet_diagnostic.SA1027.severity" = "none";
|
||||
"dotnet_diagnostic.SA1028.severity" = "none";
|
||||
"dotnet_diagnostic.SA1102.severity" = "none";
|
||||
"dotnet_diagnostic.SA1103.severity" = "none";
|
||||
"dotnet_diagnostic.SA1104.severity" = "none";
|
||||
"dotnet_diagnostic.SA1105.severity" = "none";
|
||||
"dotnet_diagnostic.SA1107.severity" = "none";
|
||||
"dotnet_diagnostic.SA1110.severity" = "none";
|
||||
"dotnet_diagnostic.SA1112.severity" = "none";
|
||||
"dotnet_diagnostic.SA1113.severity" = "none";
|
||||
"dotnet_diagnostic.SA1114.severity" = "none";
|
||||
"dotnet_diagnostic.SA1115.severity" = "none";
|
||||
"dotnet_diagnostic.SA1116.severity" = "none";
|
||||
"dotnet_diagnostic.SA1117.severity" = "none";
|
||||
"dotnet_diagnostic.SA1127.severity" = "none";
|
||||
"dotnet_diagnostic.SA1128.severity" = "none";
|
||||
"dotnet_diagnostic.SA1136.severity" = "none";
|
||||
"dotnet_diagnostic.SA1505.severity" = "none";
|
||||
"dotnet_diagnostic.SA1506.severity" = "none";
|
||||
"dotnet_diagnostic.SA1507.severity" = "none";
|
||||
"dotnet_diagnostic.SA1508.severity" = "none";
|
||||
"dotnet_diagnostic.SA1509.severity" = "none";
|
||||
"dotnet_diagnostic.SA1510.severity" = "none";
|
||||
"dotnet_diagnostic.SA1511.severity" = "none";
|
||||
"dotnet_diagnostic.SA1517.severity" = "none";
|
||||
"dotnet_diagnostic.SA1518.severity" = "none";
|
||||
};
|
||||
|
||||
"*.md" = {
|
||||
|
|
Loading…
Add table
Reference in a new issue