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

Automatically exclude common repository files from input files #721

Closed
BernieWhite opened this issue May 18, 2021 · 0 comments · Fixed by #772
Closed

Automatically exclude common repository files from input files #721

BernieWhite opened this issue May 18, 2021 · 0 comments · Fixed by #772
Labels
enhancement New feature or request feature: input Issues that affect input
Milestone

Comments

@BernieWhite
Copy link
Member

PSRule will automatically scan files in a repository using -Format File. This process will scan all files recursively in the path.

Within a repository there are commonly some files which are generally of little interest such as:

  • README.md
  • .gitignore
  • LICENSE
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • SECURITY.md
  • SUPPORT.md
  • Notices.txt
  • ThirdPartyNotices.txt
  • .vscode/settings.json
  • .vscode/tasks.json
  • .vscode/extensions.json
  • .github/PULL_REQUEST_TEMPLATE.md

The contents of these files are generally of little consequence and not of interest.

While these files can be excluded via the Input.PathIgnore option it would be easier if these could just be excluded as an option.

i.e. Input.IgnoreRepositoryCommon

@BernieWhite BernieWhite added the enhancement New feature or request label May 18, 2021
@BernieWhite BernieWhite added the feature: input Issues that affect input label Jul 29, 2021
@BernieWhite BernieWhite added this to the v1.7.0 milestone Aug 12, 2021
BernieWhite added a commit to BernieWhite/PSRule that referenced this issue Aug 17, 2021
@BernieWhite BernieWhite mentioned this issue Sep 5, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: input Issues that affect input
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant