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

Implement skipcq for ignoring issues #135

Open
sanket-deepsource opened this issue Feb 25, 2025 · 0 comments
Open

Implement skipcq for ignoring issues #135

sanket-deepsource opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sanket-deepsource
Copy link
Contributor

We use the skipcq keyword to suppress a specific occurrence of an issue in the source code. We can implement the same for issues detected by Globstar.

Sample usage

<?php

function test_dangerous_eval() {
    $user_input = $_GET['input'];  // skipcq: php:dangerous_eval
    eval($user_input);

This will suppress the php:dangerous_eval checker from raising an issue on this line.

@sanket-deepsource sanket-deepsource added the enhancement New feature or request label Feb 25, 2025
@MashyBasker MashyBasker self-assigned this Mar 1, 2025
@sourya-deepsource sourya-deepsource added this to the v0.5.0 milestone Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants