Skip to content

tsqllint/tsqllint-sample-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TSQLLint Sample Plugin

This repo contains a sample solution and project which builds a TSQLLint plugin.

Usage

Build the plugin and pu

dotnet build tsqllint-sample-plugin.sln --output /tmp/tsqllint-plugin

Add a plugin object to your tsqllint config, usually located at ~/.tsqllintrc

    "plugins": {
      "sample-plugin":"/tmp/tsqllint-plugin/tsqllint-sample-plugin.dll"
    }

Test the plugin

echo "   select 1;" > ~/Desktop/foo.sql && tsqllint ~/Desktop/foo.sql

You should see a message like the following

~/Desktop/foo.sql(1,-1): warning prefer-tabs : Should use spaces rather than tabs.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages