How can I make omnisharp parser softer?

I followed this guide to configure my vim for C #. I work great, but I'm annoyed: the syntax checker is too harsh for me. In particular, he advises me to change this line:

var parser = new Parser(configuration, findReservations: true); 

with the message "Specification of the name of the redundant argument". Of course, I CAN do only what he says, but I like my redundant specification of the argument. The reader of my code may not remember that this is logical for another. So ... how can I say the syntax (or omnisharp) to relax from such a warning?

+6
source share
1 answer

Modify the config.json file in the /bin/Debug folder of the server. On my machine, the server is located in ~/.vim/bundle/Omnisharp/server/OmniSharp .

You will see that some examples are ignored in the default configuration file .

To ignore this problem, add this rule:

 "^Redundant argument name specification$" 

If this is the only rule besides the default rules, the IgnoredCodeIssues section of the config.js file will look like this:

 "IgnoredCodeIssues": [ "^Keyword 'private' is redundant. This is the default modifier.$", ".* should not separate words with an underscore.*", "^Redundant argument name specification$" ], 
+5
source

Source: https://habr.com/ru/post/978168/


All Articles