Skip to content

Commit e664e46

Browse files
authored
Improve linting rules (#15)
1 parent dd3fc41 commit e664e46

38 files changed

+4773
-3515
lines changed

.editorconfig

Lines changed: 1445 additions & 290 deletions
Large diffs are not rendered by default.

.gitattributes

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
### Header #########################################################################################
2+
3+
# Author: Florian Bernd
4+
# Source: https://github.com/zysharp/templates
5+
6+
### Git Line Endings ###############################################################################
7+
8+
# Set default behavior to automatically normalize line endings
9+
* text=auto
10+
11+
# Documents
12+
*.md text diff=markdown
13+
*.mdx text diff=markdown
14+
15+
# Serialization
16+
*.json text
17+
*.toml text
18+
*.xml text
19+
*.yaml text
20+
*.yml text
21+
22+
# Graphics
23+
*.eps binary
24+
*.gif binary
25+
*.ico binary
26+
*.jpg binary
27+
*.jpeg binary
28+
*.png binary
29+
*.tif binary
30+
*.tiff binary
31+
32+
# Force batch scripts to always use CRLF line endings
33+
*.bat text eol=crlf
34+
*.cmd text eol=crlf
35+
*.ps1 text eol=crlf
36+
37+
# Force bash scripts to always use LF line endings
38+
*.bash text eol=lf
39+
*.fish text eol=lf
40+
*.sh text eol=lf
41+
*.zsh text eol=lf
42+
43+
# Text files where line endings should be preserved
44+
*.patch -text
45+
46+
### C# #############################################################################################
47+
48+
*.cs text diff=csharp
49+
*.cshtml text diff=html
50+
*.csproj text
51+
*.csx text diff=csharp
52+
*.sln text
53+
54+
### Exclude files from exporting ###################################################################
55+
56+
.gitattributes export-ignore
57+
.gitignore export-ignore
58+
.gitkeep export-ignore
59+
60+
### License ########################################################################################
61+
62+
# The MIT License (MIT)
63+
#
64+
# Copyright (c) 2022 Florian Bernd
65+
#
66+
# Permission is hereby granted, free of charge, to any person obtaining a copy
67+
# of this software and associated documentation files (the "Software"), to deal
68+
# in the Software without restriction, including without limitation the rights
69+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
70+
# copies of the Software, and to permit persons to whom the Software is
71+
# furnished to do so, subject to the following conditions:
72+
#
73+
# The above copyright notice and this permission notice shall be included in all
74+
# copies or substantial portions of the Software.
75+
#
76+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
77+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
78+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
79+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
80+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
81+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
82+
# SOFTWARE.
83+
84+
####################################################################################################

.gitignore

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ mono_crash.*
2323
[Rr]eleases/
2424
x64/
2525
x86/
26+
[Ww][Ii][Nn]32/
2627
[Aa][Rr][Mm]/
2728
[Aa][Rr][Mm]64/
2829
bld/
@@ -56,11 +57,17 @@ dlldata.c
5657
# Benchmark Results
5758
BenchmarkDotNet.Artifacts/
5859

59-
# .NET Core
60+
# .NET
6061
project.lock.json
6162
project.fragment.lock.json
6263
artifacts/
6364

65+
# Tye
66+
.tye/
67+
68+
# ASP.NET Scaffolding
69+
ScaffoldingReadMe.txt
70+
6471
# StyleCop
6572
StyleCopReport.xml
6673

@@ -137,6 +144,11 @@ _TeamCity*
137144
.axoCover/*
138145
!.axoCover/settings.json
139146

147+
# Coverlet is a free, cross platform Code Coverage Tool
148+
coverage*.json
149+
coverage*.xml
150+
coverage*.info
151+
140152
# Visual Studio code coverage results
141153
*.coverage
142154
*.coveragexml
@@ -348,3 +360,19 @@ MigrationBackup/
348360

349361
# Ionide (cross platform F# VS Code tools) working folder
350362
.ionide/
363+
364+
# Fody - auto-generated XML schema
365+
FodyWeavers.xsd
366+
367+
# JetBrains Rider
368+
.idea/
369+
*.sln.iml
370+
371+
##
372+
## Visual Studio Code
373+
##
374+
.vscode/*
375+
!.vscode/settings.json
376+
!.vscode/tasks.json
377+
!.vscode/launch.json
378+
!.vscode/extensions.json

NuGet.Config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file -->
23
<configuration>
34
<packageSources>
45
<clear />
56
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
67
</packageSources>
7-
<!-- https://devblogs.microsoft.com/nuget/introducing-package-source-mapping/ -->
88
<packageSourceMapping>
99
<packageSource key="nuget.org">
1010
<package pattern="*" />
1111
</packageSource>
1212
</packageSourceMapping>
13-
</configuration>
13+
</configuration>
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
using System;
1+
using System;
22

3-
namespace ZySharp.Metaprogramming.Examples
3+
namespace ZySharp.Metaprogramming.Examples;
4+
5+
public static class Program
46
{
5-
public static class Program
7+
private static void Main()
68
{
7-
private static void Main()
8-
{
9-
throw new NotImplementedException();
10-
}
9+
throw new NotImplementedException();
1110
}
12-
}
11+
}

0 commit comments

Comments
 (0)