Sonar

It should be possible on a given project to deactivate sources import

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.5
  • Component/s: Source code viewer
  • Labels:
    None
  • Number of attachments :
    0

Description

Indeed, for security reasons source code should not always be visible by anybody inside a company.

User should be able to add the following properties "-Dskip_source=true" when lauching maven goal to deactivate source code import

Activity

Hide
Simon Brandhof added a comment - - edited

The property is

sonar.importSources=true | false
. Default value is true. It can be set at different levels :

  • global configuration (web GUI) for all projects
  • maven properties into settings.xml or pom.xml
  • system property when executing maven : mvn .... -Dsonar.importSources=false
Show
Simon Brandhof added a comment - - edited The property is
sonar.importSources=true | false
. Default value is true. It can be set at different levels :
  • global configuration (web GUI) for all projects
  • maven properties into settings.xml or pom.xml
  • system property when executing maven : mvn .... -Dsonar.importSources=false

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: