I accidently disabled an error checking measure. How do i turn it back on?


(Bob Mars) #1

Hello, on PHPStorm i accidently disabled a code checking measure of where it tells you that you do not need the variable and it can simply be done in one simple return. How do i reset the plugin back to default?

$results = do the db query
return $results;

to 

return do the db query

Thanks


(Duarte Meneses) #2

Hi,
If you are not connected to SonarQube, here is how you can customize SonarLint rules:

  • Open Settings
  • Go to ‘Other Settings’ -> ‘SonarLint General Settings’
  • Go to the “Rules” tab

You can find there a button to restore the default configuration.