Skip to content
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

Normalize line endings #642

Merged
merged 5 commits into from
Feb 28, 2024
Merged

Conversation

bethmaloney
Copy link
Contributor

Normalise line endings and enable autocrlf. This should result in all files ending in CRLF in windows and LF in Linux (and Git). This will resolve the warnings in VS about inconsistent line endings.

I've opened this PR based on the conversation at #641. I'll keep both PRs open for now and when one approach is selected I'll close the other PR.

@bethmaloney bethmaloney changed the title Normalise line endings Normalize line endings Feb 26, 2024
@oskarb
Copy link
Member

oskarb commented Feb 26, 2024

For what it's worth, I support this change. As I mentioned in the other PR, my experience from multiple projects for many years is that this works well.

Additionally, this PR has been executed in a good way - by that I mean that it contains only the line ending changes (apart from the gitattributes file of course), meaning that it is easy to verify using diff that it doesn't try to sneak in any behaviour changes.

…into normalise-line-endings

# Conflicts:
#	src/FluentNHibernate.Testing/Cfg/ExceptionSerializationTests.cs
#	src/FluentNHibernate.Testing/ConventionsTests/AccessConventionTests.cs
#	src/FluentNHibernate.Testing/DomainModel/Mapping/MappingTester.cs
#	src/FluentNHibernate.Testing/FluentInterfaceTests/ClassMapFilterPartModelGenerationTests.cs
#	src/FluentNHibernate.Testing/FluentNHibernate.Testing.csproj
#	src/FluentNHibernate.Testing/Infrastructure/ContainerTester.cs
#	src/FluentNHibernate.Testing/PersistenceModelTests/SeparateSubclassVisitorFixture.cs
#	src/FluentNHibernate.Testing/Serialization/SerializationFixture.cs
#	src/FluentNHibernate.Testing/SpecificationExtensions.cs
#	src/FluentNHibernate.Testing/Testing/XmlWriterTestHelper.cs
#	src/FluentNHibernate.Testing/Xml/MappingXmlTestHelper.cs
@hazzik hazzik enabled auto-merge (squash) February 26, 2024 23:25
@hazzik
Copy link
Member

hazzik commented Feb 26, 2024

Thanks

@hazzik hazzik disabled auto-merge February 26, 2024 23:29
@hazzik hazzik enabled auto-merge (squash) February 26, 2024 23:38
@hazzik hazzik disabled auto-merge February 26, 2024 23:39
@hazzik
Copy link
Member

hazzik commented Feb 26, 2024

I think this would conflict with .editorconfig file:

[*]
end_of_line = crlf

@bethmaloney
Copy link
Contributor Author

@hazzik Thanks! I've removed that line from the editorconfig and also updated the contributing guidelines to remove references to disabling autocrlf

@hazzik hazzik merged commit 4cb0374 into nhibernate:main Feb 28, 2024
3 checks passed
@hazzik hazzik added this to the v3.3.1 milestone Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants