IntelliJ giving "Identifier Expected:" error in javadoc despite turning off inspections for that - intellij-idea

Intellij is giving me a bunch of squiggly red lines:
All of these lines are in javadoc, for situations like the following:
/**
* field representing column xyz from table some_table_name in the database
*
* #see some_table_name.
*/
private int xyz;
The squiggly line is on the character after ., as it's expecting this to be a path to a class instead of a misuse of the javadoc #see annotation. Moreover, when I click on the squiggly line and click the lightbulb to see quickfix options, it only offers to change the visibility of the variable (private/public/protected), which has nothing to do with the error.
I know that this isn't a real error because the application will still build and run without issue.
Now I'm not able to allowed to change this file, because it's nominally part of core business logic. Instead I would like to disable this kind of inspection so IntelliJ doesn't give me the squiggly red line for the rest of time. Exhaustive searching turning off the "Declaration has problems in Javadoc References" inspection, which I've done:
Apparently this change isn't working with whatever's doing the inspection, because I'm still getting the error. Why is it not working, or what else do I need to change to get IntelliJ to stop flagging this error? Alternatively, is there some way to turn off error-checking as a whole for just this file?
My version of IntelliJ is 2021.1.1 (Community Edition) Build #IC-211.7142.45

Related

TSLint - how to avoid that all my code underlined in red?

I loaded an angular project in ItelliJ and all the files have some code underlined in red.
The same red colour is on the scrollbar on the right.
It seems the code is full of errors, but they are just missing spaces or things like that; the project is correctly builded.
Even comments that don't have a space after the // get underlined in red.
The responsible is TSLint.
This distracts me; I would like to have underlined code only for "real" problems, and maybe yellow suggestion on the left (and not in scrollbar) for missing spaces in comments or import.
I found this (here https://github.com/Microsoft/vscode-tslint/issues/199)
tslint.alwaysShowRuleFailuresAsWarnings
but it's in visualStudio and I don't know where to add this option in intelliJ.
Do you know how to disable this red underlining?
Also another question, if I would disable TSLint, do I loose anything except formatting?
I like to have a well-formatted code, but from the IntelliJ environment I would like to have mostly the syntax errors rather than formatting, at least not in real time (maybe i can run to check the code formatting when I want, as I did until now).
Here the screenshot as requested by the first answer. The settings are ignored, maybe there is a problem in my computer... (TLSint is 5.0.0 by the way)
The editor highlights the errors according to the severity levels specified in the TSLint configuration files by default. You can either set warn as defaultSeverity ({"defaultSeverity": "warn"}) in your tslint.json or override it with a specific severity in IDE settings (Settings | Editor | Inspections | TypeScript | TSLint): uncheck Use rule severity from the configuration file to use the inspection severity for all linter rules:
if I would disable TSLint, do I loose anything except formatting
If you are mostly interested in syntax errors, you can safely disable TSLint

suppress an unused variable warning

How can I suppress the inspection in Kotlin for an unused variable
val xyz = abc
I get the squiggly line but ALT-ENTER is useless for this, I tried also to create in another method several variables unused and they also lack the ALT-ENTER ability to ignore the warning. Although I have definitely used ALT-ENTER for this in the past, although maybe it was only in java, can't remember.
So I must manually construct it by hand. I've been trying several variations but I can't get anything to work. Please tell me the correct //noinspection or #SupressWarnings to use, thanks
In IntelliJ IDEA, a right-side arrow on an ALT+ENTER context menu (like this: ) means that you can use your arrow keys to navigate further along the menu. In this case, it leads to your answer:
#Suppress("UNUSED_VARIABLE")
val unused = ""
If you do not get the initial context menu (Remove variable '...'), you may have disabled the "Unused assignment" inspection in your current project. You can fix this by going to Settings -> Editor -> Inspections.

Netbeans IDE 8.1 warning for Class Length

I'm using Netbeans IDE 8.1 version for MVC (Codeigniter). In Model i'm getting warning like Class Length is 251 Lines (200 allowed).
What is exact meaning of this warning and if not resolved, then what exactly will happen ?
First, this warning is nothing to do with CodeIgniter. NetBeans is simply giving you a friendly advisory warning that your PHP class is more than 200 lines long (251 lines in your case).
Nothing bad will happen if you get that message, but you may or may not appreciate it. Either way, it can be configured as follows:
The message can be suppressed entirely if it is considered unhelpful.
Alternatively, the message can be shown as an "Info", "Warning" or "Error" message. By default it is a warning message.
The number of lines allowed before the message is displayed can be adjusted up or down as desired. The default is 200 lines.
Configure the message as follows:
Tools menu -> Options -> click the Editor icon -> click the Hints tab.
Select PHP from the Language drop list.
Select the Too Many Lines node from the list of message categories, and expand it.
Simply uncheck Class Declaration if you don't want to see the message at all.
Otherwise, select the severity of the message from the Show As drop list, and adjust the default line threshold of 200 if appropriate.
Here's the configuration screen:
Finally, note that these configuration settings are global. I don't believe it is possible to customize the message individually for each PHP project.

PhpStorm does not highlight unimported classes

I'm using PhpStorm 2016.2 and recently I've noticed that it has stopped highlighting errors when a class is not imported from any namespace.
Let's say a namespaced class and inside I have a call like this:
$user = User::findOne(123);
In order for the above to work, I would need to do use common\models\User. But there is no error highlight and if I try to execute the code, it would of course fail. I'm confident that previously I got such errors highlighted. I'm not sure however when that happened - since update to 2016.2 or after doing something unintended.
You can follow the below steps to highlight the undefined/unimported class in phpstorm.
Go to preferences tab, choose inspections from Editor.
From the lists, choose php.
Under that, tick the Undefined class and click Apply and Ok.

Disable reporting erros for path checking in IntelliJ

IntelliJ show the squiggly red underline under require paths (node.js) that it can't find. In my case, I have a file that is copied to a particular place on installation. Their location in the source has nothing to do with their location in the installation. Its especially annoying because intelij shows that red underline for all folders in its file browser.
var x = require('./some/invalid/path')
I like that it has this check, but I want to disable it for this file since it doesn't make sense for that case. How can I do this, ideally in intelliJ 12?
That's how you suppress an inspection for a class, method or statement:
Place your cursor inside the warning statement, press Alt + Enter, choose the entry that describes your warning, and from the sub-menu select Suppress for class or statement.
You will find more info on the IDEA webhelp.
I found a dumb way to do it - make the require path an expression rather than a simple string literal like this:
var x = require('./some/invalid/path'+'')
I guess it confounds intellij enough that it just says "screw it its probably fine".