Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New option 'only detected rules' #245

Merged

Conversation

salvorusso
Copy link
Contributor

Note: Replace PR #232 only with the requested feature

The main change is to allow users to include only the detected rules in the report, making the Known Security Rules section more compact and concise.

Key Changes:

New Option: We have introduced a new command-line option, --only-detected-rules, which, when used during report generation, will include only the rules that have been detected.

Benefits:

Enhanced Clarity: By including only the detected rules in the report, the Known Security Rules section will become significantly more concise. This simplifies the report and ensures that users can focus on the most critical information without unnecessary clutter.

Improved Readability: Users will appreciate the improved readability of the report, which will make it easier to identify and prioritize security issues.

How to Use:

To utilize this new feature, simply include the --only-detected-rules option when generating the report. For example:

# Generate report example
sonar-report \
  --sonarurl="https://sonarcloud.io" \
  --sonarcomponent="soprasteria_sonar-report" \
  --sonarorganization="sopra-steria" \
  --project="Sonar Report" \
  --application="sonar-report" \
  --release="1.0.0" \
  --branch="master" \
  --only-detected-rules \
  --output="samples/sonar-report_sonar-report.html"

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@thecampagnards thecampagnards merged commit 2b82d0e into soprasteria:master Jan 16, 2024
2 checks passed
@thecampagnards
Copy link
Member

Thx for the PR !

@salvorusso salvorusso deleted the feature/only-detected-rules branch January 16, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants