- Notifications
You must be signed in to change notification settings - Fork39
EditorConfig Core library and command line utility written in C# for .NET/Monohttp://editorconfig.org
License
editorconfig/editorconfig-core-net
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The EditorConfig .NET core provides the same functionality as theEditorConfig C Core andEditorConfig Python Core.
The library exists on nuget as:
nuget install editorconfig
The .NET core tool exists under:
dotnet tool install editorconfig-tool
Usage as a library:
varparser=newEditorConfigParser();varconfiguration=parser.Parse(fileName);foreach(varkvinconfiguration.Properties){Console.WriteLine("{0}={1}",kv.Key,kv.Value);}
Usage as a command line tool:
You can omitdotnet
if you install this as a global tool
> dotnet editorconfig Usage: editorconfig [OPTIONS] FILEPATH1 [FILEPATH2 FILEPATH3 ...] EditorConfig .NET Core Version 0.12 FILEPATH can be a hyphen (-) if you want path(s) to be read from stdin. Options: -h, --help output usage information -V, --version output the version number -f <path> Specify conf filename other than ".editorconfig" -b <version> Specify version (used by devs to test compatibility)
Example:
> dotnet editorconfig C:\Users\zoidberg\Documents\anatomy.mdcharset=utf-8insert_final_newline=trueend_of_line=lftab_width=8trim_trailing_whitespace=sometimes
Clone this repos and init the test submodule
git clone git@github.com:editorconfig/editorconfig-core-net.gitgit submodule initgit submodule update
building in visual studio should just work (tm)
Building on the command line (will run all the unit tests too)
build
Release builds can be made using
build release X.X.X
We have several NUnit tests that you can run from visual studio or the build scripts.
If you want to run the official editorconfig tests you'll need to installCMAKE and call
cmake .
in the root of this repository once.
After which you can simply call
ctest .
To run the official editorconfig tests located in/tests
right now we pass all but one related to utf-8 which failswhen run fromctest .
but when I run it directly from the commandline it succeeds.
About
EditorConfig Core library and command line utility written in C# for .NET/Monohttp://editorconfig.org
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.