Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
/vslintPublic archive

VSLint is a command line utility used for detecting inconsistencies in Visual Studio project files.

License

NotificationsYou must be signed in to change notification settings

steamcore/vslint

Repository files navigation

NuGetBuild

VSLint is a command line tool used for detecting issues inVisual Studio project files.

Features

VSLint scans for the following issues.

Classic project formatModern project format
Duplicate file referencesYesYes
Missing filesYesYes
Files on disk not included in projectYesNo

It will also try to locate .gitignore and .hgignore files and use themto try to avoid false positives.

Limitations

Due to the complexity VSLint will not parse conditional includes or targets files.

Complex .gitignore GLOBs may not be parsed properly, internally GLOBs are convertedto regular expressions with a pretty naive implementation that works in most cases.For example, negated patterns are not honored.

Command line usage

> vslint --helpvslint, a tool for detecting inconsistencies in Visual Studio project filesUsage: vslint [options..] path [path2 path3 ..]Options:-h, --help              Prints this help message-m, --machine-readable  Print results in an alternate machine readable format-v, --verbose           Lists scanned projects even if no issues are found-q, --quiet             Quiet unless issues are found> vslint -vProject .\vslint\vslint.fsproj  no issuesProject .\vslint.Tests\vslint.Tests.fsproj  no issuesFound 0 issues

Use as commit hook

VSLint can be used as a pre commit hook in either git or Mercurial to prevent commits witherrors in project files that may, for instance, arise in auto merges.

For use with git, add vslint.exe to your path and create a.git/hooks/pre-commit file with the following contents.

#!/bin/bashvslint

For use with Mercurial, add vslint.exe to your path and add the following to your.hg/hgrc file.

[hooks]precommit =precommit.vslint = vslint

Ignored files and folders

Even if you don't have a .gitignore or .hgignore some files and foldersare ignored by default.

Folders

  • .git
  • .hg
  • .svn
  • bin
  • obj
  • packages

Files

  • .gitignore
  • .hgignore
  • .sln
  • .csproj
  • .fsproj
  • .vbproj
  • .targets
  • .suo
  • .user
  • .orig

.vslintignore

If you have additional files that should be ignored you may add afile named .vslintignore with one regular expression per line.

Lines starting with # are comments, empty lines are ignored.

Sample

# Ignore powershell files\.ps(m|1)$# Ignore ReSharper files_ReSharper\.*/

About

VSLint is a command line utility used for detecting inconsistencies in Visual Studio project files.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp