2
2
--- @field comment string | string[] | function if string , " %s" will be replaced with the rule id
3
3
--- @field location " prevLine" | " sameLine" | " encloseLine" " encloseLine" is a list with two strings , one to be inserted before and one after
4
4
--- @field docs string used for auto-generated docs
5
+ --- @field doesNotUseCodes ? boolean the linter does not use codes /rule-ids
5
6
6
7
--- INFO the key must be named *exactly* like diagnostic.source (case-sensitive!)
7
8
---- ----------------------------------------------------------------------------
@@ -77,12 +78,14 @@ M = {
77
78
comment = function (_ ) return vim .bo .commentstring :format (" editorconfig-checker-disable-line" ) end ,
78
79
location = " sameLine" ,
79
80
docs = " https://github.com/editorconfig-checker/editorconfig-checker#excluding-lines" ,
81
+ doesNotUseCodes = true ,
80
82
},
81
83
codespell = {
82
84
comment = function (_ ) return vim .bo .commentstring :format (" codespell-ignore" ) end ,
83
85
location = " sameLine" ,
84
86
-- HACK uses workaround via `codespell --ignore-regex`
85
87
docs = " https://github.com/codespell-project/codespell/issues/1212#issuecomment-1721152455" ,
88
+ doesNotUseCodes = true ,
86
89
},
87
90
[" clang-tidy" ] = {
88
91
comment = " // NOLINT(%s)" ,
@@ -106,6 +109,7 @@ M = {
106
109
comment = function (_ ) return vim .bo .commentstring :format (" spellwarn:disable-line" ) end ,
107
110
location = " sameLine" ,
108
111
docs = " https://github.com/ravibrock/spellwarn.nvim#usage" ,
112
+ doesNotUseCodes = true ,
109
113
},
110
114
}
111
115
0 commit comments