Skip to content

Conversation

@MariusStorhaug
Copy link
Member

Description

This pull request includes a significant change to the Set-ScriptFileRequirement function, improving the process of adding comments to script lines for manual fixes.

Key changes include:

  • Improved processing of script lines by using the correct line index and adding verbose logging for better traceability.
  • Replaced the existing logic for removing line comments and trimming lines with a more concise and clear approach.
  • Enhanced the comment added to script lines to provide clearer instructions for adding required modules.

These changes aim to make the script more maintainable and user-friendly by providing better logging and clearer instructions.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug MariusStorhaug self-assigned this Feb 2, 2025
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner February 2, 2025 00:34
@MariusStorhaug MariusStorhaug merged commit ca65765 into main Feb 2, 2025
8 checks passed
@MariusStorhaug MariusStorhaug deleted the setScriptFileReqs branch February 2, 2025 00:43
@github-actions
Copy link

github-actions bot commented Feb 2, 2025

Module Utilities - v0.3.2 published to the PowerShell Gallery.

@github-actions
Copy link

github-actions bot commented Feb 2, 2025

GitHub release for Utilities v0.3.2 has been created.

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.

1 participant