We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69903ea commit 386c0eeCopy full SHA for 386c0ee
.github/workflows/tsqllint.yml
.gitignore
@@ -1 +1,2 @@
1
-.markdownlint.json
+.markdownlint.json
2
+node_modules/*
appveyor/.tsqllintrc_110
@@ -0,0 +1,28 @@
+{
+ "rules": {
3
+ "concat-strings": "error",
4
+ "conditional-begin-end": "error",
5
+ "cross-database-transaction": "error",
6
+ "data-compression": "warn",
7
+ "data-type-length": "error",
8
+ "disallow-cursors": "off",
9
+ "full-text": "error",
10
+ "information-schema": "error",
11
+ "keyword-capitalization": "error",
12
+ "linked-server": "error",
13
+ "multi-table-alias": "error",
14
+ "non-sargable": "warn",
15
+ "object-property": "error",
16
+ "print-statement": "error",
17
+ "schema-qualify": "error",
18
+ "select-star": "error",
19
+ "semicolon-termination": "error",
20
+ "set-ansi": "error",
21
+ "set-nocount": "error",
22
+ "set-quoted-identifier": "error",
23
+ "set-transaction-isolation-level": "off",
24
+ "set-variable": "off",
25
+ "upper-lower": "error"
26
+ },
27
+ "compatability-level": 110
28
+}
appveyor/.tsqllintrc_120
+ "compatability-level": 120
appveyor/.tsqllintrc_130
+ "compatability-level": 130
appveyor/.tsqllintrc_140
+ "compatability-level": 140
appveyor/.tsqllintrc_150
+ "compatability-level": 150
appveyor/appveyor.yml
@@ -25,25 +25,31 @@ environment:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
MSSQL: SQL2019
DB_INSTANCE: (local)\SQL2019
+ LINT_CONFIG: appveyor\.tsqllintrc_150
29
30
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
31
MSSQL: SQL2017
32
DB_INSTANCE: (local)\SQL2017
33
+ LINT_CONFIG: appveyor\.tsqllintrc_140
34
35
36
MSSQL: SQL2016
37
DB_INSTANCE: (local)\SQL2016
38
+ LINT_CONFIG: appveyor\.tsqllintrc_130
39
40
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
41
MSSQL: SQL2014
42
DB_INSTANCE: (local)\SQL2014
43
+ LINT_CONFIG: appveyor\.tsqllintrc_120
44
45
46
MSSQL: SQL2012SP1
47
DB_INSTANCE: (local)\SQL2012SP1
48
+ LINT_CONFIG: appveyor/.tsqllintrc_110
49
50
install:
51
- ps: Install-Module SqlServer -Force -AllowClobber
52
+- npm install
53
54
- echo Starting SQL Server
55
- ps: >-
@@ -82,4 +88,7 @@ test_script:
82
88
83
89
ForEach ($filename in Get-Childitem -Path $env:TSQLTTESTPATH -Filter "*.sql") {
84
90
Invoke-SqlCmd –ServerInstance $env:DB_INSTANCE -Database $env:TARGET_DB -InputFile $filename.fullname -Username $env:MSSQL_LOGIN -Password $env:MSSQL_PASS -Verbose | Out-Null
85
- }
91
+ }
92
+
93
+- echo Running TSQLLint tests
94
+- npx tsqllint -c %LINT_CONFIG% *.sql
install_expsql.sql
-193 KB
0 commit comments