-
Notifications
You must be signed in to change notification settings - Fork 4
Add .gitattributes file and normalize line endings #33
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
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
dce9633
Add default .gitattributes file
rjmurillo d15668a
Normalize all the line endings
rjmurillo 057cc00
Adding line endings for Verify package
rjmurillo 95b1e9b
Merge branch 'master' into fix-32
rjmurillo 98f6e6e
Rebaseline verified files with line number changes
rjmurillo ffca021
Merge branch 'fix-32' of https://github.com/Litee/moq.analyzers into …
rjmurillo 2f85f83
Merge branch 'master' into fix-32
rjmurillo 01c4e52
Update .gitignore values
rjmurillo cfc4eb7
Set default eol=lf and add comments for all sections
rjmurillo 352c885
Merge branch 'master' into fix-32
rjmurillo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| # Common settings that generally should always be used with your language specific settings | ||
|
|
||
| # Auto detect text files and perform LF normalization | ||
| * text=auto | ||
|
|
||
| # | ||
| # The above will handle all files NOT found below | ||
| # | ||
|
|
||
| # Documents | ||
| *.bibtex text diff=bibtex | ||
| *.doc diff=astextplain | ||
| *.DOC diff=astextplain | ||
| *.docx diff=astextplain | ||
| *.DOCX diff=astextplain | ||
| *.dot diff=astextplain | ||
| *.DOT diff=astextplain | ||
| *.pdf diff=astextplain | ||
| *.PDF diff=astextplain | ||
| *.rtf diff=astextplain | ||
| *.RTF diff=astextplain | ||
| *.md text diff=markdown | ||
| *.mdx text diff=markdown | ||
| *.tex text diff=tex | ||
| *.adoc text | ||
| *.textile text | ||
| *.mustache text | ||
| *.csv text eol=crlf | ||
| *.tab text | ||
| *.tsv text | ||
| *.txt text | ||
| *.sql text | ||
| *.epub diff=astextplain | ||
|
|
||
| # Graphics | ||
| *.png binary | ||
| *.jpg binary | ||
| *.jpeg binary | ||
| *.gif binary | ||
| *.tif binary | ||
| *.tiff binary | ||
| *.ico binary | ||
| # SVG treated as text by default. | ||
| *.svg text | ||
| # If you want to treat it as binary, | ||
| # use the following line instead. | ||
| # *.svg binary | ||
| *.eps binary | ||
|
|
||
| # Scripts | ||
| *.bash text eol=lf | ||
| *.fish text eol=lf | ||
| *.sh text eol=lf | ||
| *.zsh text eol=lf | ||
| # These are explicitly windows files and should use crlf | ||
| *.bat text eol=crlf | ||
| *.cmd text eol=crlf | ||
| *.ps1 text eol=crlf | ||
|
|
||
| # Serialisation | ||
| *.json text | ||
| *.toml text | ||
| *.xml text | ||
| *.yaml text | ||
| *.yml text | ||
|
|
||
| # Archives | ||
| *.7z binary | ||
| *.gz binary | ||
| *.tar binary | ||
| *.tgz binary | ||
| *.zip binary | ||
|
|
||
| # Text files where line endings should be preserved | ||
| *.patch -text | ||
|
|
||
| # | ||
| # Exclude files from exporting | ||
| # | ||
|
|
||
| .gitattributes export-ignore | ||
| .gitignore export-ignore | ||
| .gitkeep export-ignore | ||
| # Auto detect text files and perform LF normalization | ||
| * text=auto | ||
|
|
||
| *.cs text diff=csharp | ||
| *.cshtml text diff=html | ||
| *.csx text diff=csharp | ||
| *.sln text eol=crlf | ||
| *.csproj text eol=crlf | ||
|
|
||
| *.verified.txt text eol=lf working-tree-encoding=UTF-8 | ||
| *.verified.xml text eol=lf working-tree-encoding=UTF-8 | ||
| *.verified.json text eol=lf working-tree-encoding=UTF-8 | ||
|
|
||
| # Apply override to all files in the directory | ||
| *.md linguist-detectable | ||
| # Basic .gitattributes for a PowerShell repo. | ||
|
|
||
| # Source files | ||
| # ============ | ||
| *.ps1 text eol=crlf | ||
| *.ps1x text eol=crlf | ||
| *.psm1 text eol=crlf | ||
| *.psd1 text eol=crlf | ||
| *.ps1xml text eol=crlf | ||
| *.pssc text eol=crlf | ||
| *.psrc text eol=crlf | ||
| *.cdxml text eol=crlf | ||
| # Fix syntax highlighting on GitHub to allow comments | ||
| .vscode/*.json linguist-language=JSON-with-Comments | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,31 @@ | ||
| | ||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio Version 17 | ||
| VisualStudioVersion = 17.10.34928.147 | ||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Moq.Analyzers", "Source\Moq.Analyzers\Moq.Analyzers.csproj", "{41ECC571-F586-460A-9BED-23528C8210C4}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Moq.Analyzers.Test", "Source\Moq.Analyzers.Test\Moq.Analyzers.Test.csproj", "{D2348836-7129-4BE5-8AE6-D05FC8C28FC1}" | ||
| EndProject | ||
| Global | ||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| Debug|Any CPU = Debug|Any CPU | ||
| Release|Any CPU = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(SolutionProperties) = preSolution | ||
| HideSolutionNode = FALSE | ||
| EndGlobalSection | ||
| GlobalSection(ExtensibilityGlobals) = postSolution | ||
| SolutionGuid = {8C917BC1-C0DE-4A46-BEE8-32FD66B447B1} | ||
| EndGlobalSection | ||
| EndGlobal | ||
| | ||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio Version 17 | ||
| VisualStudioVersion = 17.10.34928.147 | ||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Moq.Analyzers", "Source\Moq.Analyzers\Moq.Analyzers.csproj", "{41ECC571-F586-460A-9BED-23528C8210C4}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Moq.Analyzers.Test", "Source\Moq.Analyzers.Test\Moq.Analyzers.Test.csproj", "{D2348836-7129-4BE5-8AE6-D05FC8C28FC1}" | ||
| EndProject | ||
| Global | ||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| Debug|Any CPU = Debug|Any CPU | ||
| Release|Any CPU = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {41ECC571-F586-460A-9BED-23528C8210C4}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {D2348836-7129-4BE5-8AE6-D05FC8C28FC1}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(SolutionProperties) = preSolution | ||
| HideSolutionNode = FALSE | ||
| EndGlobalSection | ||
| GlobalSection(ExtensibilityGlobals) = postSolution | ||
| SolutionGuid = {8C917BC1-C0DE-4A46-BEE8-32FD66B447B1} | ||
| EndGlobalSection | ||
| EndGlobal |
4 changes: 2 additions & 2 deletions
4
...Analyzers.Test/AsAcceptOnlyInterfaceAnalyzerTests.ShouldPassIfGoodParameters.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions
42
Source/Moq.Analyzers.Test/AsAcceptOnlyInterfaceAnalyzerTests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
| public class AsAcceptOnlyInterfaceAnalyzerTests : DiagnosticVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldPassIfGoodParameters() | ||
| { | ||
| return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/AsAcceptOnlyInterface.cs"))); | ||
| } | ||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new AsShouldBeUsedOnlyForInterfaceAnalyzer(); | ||
| } | ||
| } | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
|
|
||
| public class AsAcceptOnlyInterfaceAnalyzerTests : DiagnosticVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldPassIfGoodParameters() | ||
| { | ||
| return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/AsAcceptOnlyInterface.cs"))); | ||
| } | ||
|
|
||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new AsShouldBeUsedOnlyForInterfaceAnalyzer(); | ||
| } | ||
| } | ||
| } |
42 changes: 21 additions & 21 deletions
42
Source/Moq.Analyzers.Test/CallbackSignatureShouldMatchMockedMethodAnalyzerTests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
| public class CallbackSignatureShouldMatchMockedMethodAnalyzerTests : DiagnosticVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldPassIfGoodParameters() | ||
| { | ||
| return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/CallbackSignatureShouldMatchMockedMethod.cs"))); | ||
| } | ||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new CallbackSignatureShouldMatchMockedMethodAnalyzer(); | ||
| } | ||
| } | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
|
|
||
| public class CallbackSignatureShouldMatchMockedMethodAnalyzerTests : DiagnosticVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldPassIfGoodParameters() | ||
| { | ||
| return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/CallbackSignatureShouldMatchMockedMethod.cs"))); | ||
| } | ||
|
|
||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new CallbackSignatureShouldMatchMockedMethodAnalyzer(); | ||
| } | ||
| } | ||
| } |
54 changes: 27 additions & 27 deletions
54
Source/Moq.Analyzers.Test/CallbackSignatureShouldMatchMockedMethodCodeFixTests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,28 @@ | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.CodeFixes; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
| public class CallbackSignatureShouldMatchMockedMethodCodeFixTests : CodeFixVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldSuggestQuickFixIfBadParameters() | ||
| { | ||
| return Verify(VerifyCSharpFix(File.ReadAllText("Data/CallbackSignatureShouldMatchMockedMethod.cs"))); | ||
| } | ||
| protected override CodeFixProvider GetCSharpCodeFixProvider() | ||
| { | ||
| return new CallbackSignatureShouldMatchMockedMethodCodeFix(); | ||
| } | ||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new CallbackSignatureShouldMatchMockedMethodAnalyzer(); | ||
| } | ||
| } | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.CodeFixes; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
|
|
||
| public class CallbackSignatureShouldMatchMockedMethodCodeFixTests : CodeFixVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldSuggestQuickFixIfBadParameters() | ||
| { | ||
| return Verify(VerifyCSharpFix(File.ReadAllText("Data/CallbackSignatureShouldMatchMockedMethod.cs"))); | ||
| } | ||
|
|
||
| protected override CodeFixProvider GetCSharpCodeFixProvider() | ||
| { | ||
| return new CallbackSignatureShouldMatchMockedMethodCodeFix(); | ||
| } | ||
|
|
||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new CallbackSignatureShouldMatchMockedMethodAnalyzer(); | ||
| } | ||
| } | ||
| } |
54 changes: 27 additions & 27 deletions
54
Source/Moq.Analyzers.Test/ConstructorArgumentsShouldMatchAnalyzerTests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,28 @@ | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
| public class ConstructorArgumentsShouldMatchAnalyzerTests : DiagnosticVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldFailIfClassParametersDoNotMatch() | ||
| { | ||
| return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/ConstructorArgumentsShouldMatch.cs"))); | ||
| } | ||
| // [Fact] | ||
| // public Task ShouldPassIfCustomMockClassIsUsed() | ||
| // { | ||
| // return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/MockInterfaceWithParametersCustomMockFile.cs"))); | ||
| // } | ||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new ConstructorArgumentsShouldMatchAnalyzer(); | ||
| } | ||
| } | ||
| namespace Moq.Analyzers.Test | ||
| { | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.CodeAnalysis.Diagnostics; | ||
| using TestHelper; | ||
| using Xunit; | ||
|
|
||
| public class ConstructorArgumentsShouldMatchAnalyzerTests : DiagnosticVerifier | ||
| { | ||
| [Fact] | ||
| public Task ShouldFailIfClassParametersDoNotMatch() | ||
| { | ||
| return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/ConstructorArgumentsShouldMatch.cs"))); | ||
| } | ||
|
|
||
| // [Fact] | ||
| // public Task ShouldPassIfCustomMockClassIsUsed() | ||
| // { | ||
| // return Verify(VerifyCSharpDiagnostic(File.ReadAllText("Data/MockInterfaceWithParametersCustomMockFile.cs"))); | ||
| // } | ||
|
|
||
| protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() | ||
| { | ||
| return new ConstructorArgumentsShouldMatchAnalyzer(); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This line is duplicated with 4