mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
build(lint): remove unnecessary clint.py rules
Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py.
This commit is contained in:
@@ -45,7 +45,7 @@ typedef struct {
|
||||
# include "lua/executor.h.generated.h"
|
||||
#endif
|
||||
|
||||
EXTERN nlua_ref_state_t *nlua_global_refs INIT(= NULL);
|
||||
EXTERN bool nlua_disable_preload INIT(= false);
|
||||
EXTERN nlua_ref_state_t *nlua_global_refs INIT( = NULL);
|
||||
EXTERN bool nlua_disable_preload INIT( = false);
|
||||
|
||||
#endif // NVIM_LUA_EXECUTOR_H
|
||||
|
@@ -515,7 +515,7 @@ static int nlua_iconv(lua_State *lstate)
|
||||
const char *str = lua_tolstring(lstate, 1, &str_len);
|
||||
|
||||
char *from = enc_canonize(enc_skip((char *)lua_tolstring(lstate, 2, NULL)));
|
||||
char *to = enc_canonize(enc_skip((char *)lua_tolstring(lstate, 3, NULL)));
|
||||
char *to = enc_canonize(enc_skip((char *)lua_tolstring(lstate, 3, NULL)));
|
||||
|
||||
vimconv_T vimconv;
|
||||
vimconv.vc_type = CONV_NONE;
|
||||
|
@@ -361,7 +361,7 @@ static int parser_tostring(lua_State *L)
|
||||
static const char *input_cb(void *payload, uint32_t byte_index, TSPoint position,
|
||||
uint32_t *bytes_read)
|
||||
{
|
||||
buf_T *bp = payload;
|
||||
buf_T *bp = payload;
|
||||
#define BUFSIZE 256
|
||||
static char buf[BUFSIZE];
|
||||
|
||||
@@ -1585,7 +1585,7 @@ static void query_err_string(const char *src, int error_offset, TSQueryError err
|
||||
do {
|
||||
const char *src_tmp = src + line_start;
|
||||
end_str = strchr(src_tmp, '\n');
|
||||
int line_length = end_str != NULL ? (int)(end_str - src_tmp) : (int)strlen(src_tmp);
|
||||
int line_length = end_str != NULL ? (int)(end_str - src_tmp) : (int)strlen(src_tmp);
|
||||
int line_end = line_start + line_length;
|
||||
if (line_end > error_offset) {
|
||||
error_line = src_tmp;
|
||||
|
@@ -367,18 +367,18 @@ int nlua_xdl_diff(lua_State *lstate)
|
||||
cfg.hunk_func = call_on_hunk_cb;
|
||||
priv = (hunkpriv_t) {
|
||||
.lstate = lstate,
|
||||
.err = &err,
|
||||
.err = &err,
|
||||
};
|
||||
ecb.priv = &priv;
|
||||
break;
|
||||
case kNluaXdiffModeLocations:
|
||||
cfg.hunk_func = hunk_locations_cb;
|
||||
priv = (hunkpriv_t) {
|
||||
.lstate = lstate,
|
||||
.ma = &ma,
|
||||
.mb = &mb,
|
||||
.lstate = lstate,
|
||||
.ma = &ma,
|
||||
.mb = &mb,
|
||||
.linematch = linematch,
|
||||
.iwhite = (params.flags & XDF_IGNORE_WHITESPACE) > 0
|
||||
.iwhite = (params.flags & XDF_IGNORE_WHITESPACE) > 0
|
||||
};
|
||||
ecb.priv = &priv;
|
||||
lua_createtable(lstate, 0, 0);
|
||||
|
Reference in New Issue
Block a user