GitXplorerGitXplorer
a

CSharpSyntaxValidator

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
0cfc6d524a15a15ab2e9887e80b5e0d8c90ba566

Don't version control redistributables

aatifaziz committed 3 years ago
Unverified
88dde33f9db10f58dc2b1f43a66ec4a6f91ccb6f

Skip CI build on changes to ".gitignore"

aatifaziz committed 3 years ago
Unverified
e086c1a9044c5d6755131da7b98f34b241134729

Fix code indentation [ci skip]

aatifaziz committed 3 years ago
Unverified
c465c454b817ad62135441bd019a13ef5f976863

Deploy package on master branch during CI

aatifaziz committed 3 years ago
Unverified
6cfc54fef8936a95a520d0af395a20a53d4333ba

Update "Microsoft.CodeAnalysis.CSharp" to 3.11.0

aatifaziz committed 3 years ago
Verified
e8f138bc9b70accf4cee7bcf5f988aa0df500d94

Roll-forward SDK version to latest feature (#14)

aatifaziz committed 3 years ago

README

The README file for this repository.

C# Syntax Validator

CSharpSyntaxValidator is a .NET Core CLI tool that validates a C# source for syntax errors and sets its exit code to zero (0) if the C# source is valid and one (1) if invalid.

It is not a linter for C#.

Installation

You will need .NET Core SDK 2.2 or later installed.

Install CSharpSyntaxValidator as follows:

dotnet tool install --global CSharpSyntaxValidator

Usage

Simply invoke supplying C# source on standard input:

csval < Program.cs && echo OK

If the source is valid, the above will print OK on your terminal.

Alternatively, supply the file name directly:

csval Program.cs && echo OK

For more help on usage, run with the -h option:

csval -h

Building

The .NET Core SDK is the minimum requirement.

To build just the binaries on Windows, run:

.\build.cmd

On Linux or macOS, run instead:

./build.sh

To build the binaries and the NuGet package on Windows, run:

.\pack.cmd

On Linux or macOS, run instead:

./pack.sh