简体   繁体   中英

How to include a file in sonar lint for analysis if it was excluded?

I clicked on "exclude" within the sonarlint menuin eclise for a file. Now i can't figure out how to enable it?

the sonarlint analyze option is greyed out for the file now. I tried looking for excluded files at Preferences > SonarLink > File Exclusions, but the file wasn't in the list

在此处输入图片说明

How to remove the file from sonar lint exclusion?

Eclipse Version: Mars.2 Release (4.5.2)

SonarLint version: SonarLint for Eclipse 3.6.0.201806071228

Follow the below steps,

  1. Properties of the project folder where you bound the sonar lint.
  2. SonarLint on the left navigation of the properties for the project
  3. File exclusions (it shows the file you excluded)
  4. Select the file in the file exclusions section. just Remove

在此处输入图片说明

Again, the respective file is available for sonar lint analysis

If this view is empty for you, than check the project specific settings as described by the comment of pradipgarala.

Remark on where to find the excluded files in IntelliJ:

File > Settings > Other Settings > Sonar Project Settings > File Exclusions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM