Skip to content

Allow ignoring specific files using a configuration property - #422

Open
lars-sh wants to merge 1 commit into
nextcloud:masterfrom
lars-sh:ignore-config
Open

Allow ignoring specific files using a configuration property#422
lars-sh wants to merge 1 commit into
nextcloud:masterfrom
lars-sh:ignore-config

Conversation

@lars-sh

@lars-sh lars-sh commented Feb 8, 2025

Copy link
Copy Markdown

Hi everyone,

this Pull Request does not follow any standards as I'm not involved in PHP or Nextcloud development usually.
Though, I was working on a quick-fix to implement some simple way to ignore false-positive findings and it might be interesting for others, too.

This might relate to #88 and #178.
Feel free to copy, rework or modify my changes.

The idea is to introduce a simple config.php property called antivirus_ignore that takes either an array of full file paths or a string that needs to be a valid regular expression which needs to match the file path using preg_match. If so, the file is ignored and no more warning is reported.

You can check this e.g. using occ files_antivirus:scan on the command line but it applies to the background scanner in the same way.

@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@st3iny
st3iny self-requested a review April 15, 2025 12:35
@lars-sh
lars-sh changed the base branch from master to stable6.2 March 15, 2026 12:48
@lars-sh
lars-sh changed the base branch from stable6.2 to stable6.3 June 27, 2026 19:05
@lars-sh
lars-sh changed the base branch from stable6.3 to master August 13, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants