Skip to content

defensive line length check in config validator#64

Open
jvoigtlaender wants to merge 1 commit into
masterfrom
defensive-linelength
Open

defensive line length check in config validator#64
jvoigtlaender wants to merge 1 commit into
masterfrom
defensive-linelength

Conversation

@jvoigtlaender

Copy link
Copy Markdown
Member

To be prepared for whitespace watermarking in the template and line-outcomments in the sample solution.

(to be prepared for whitespace watermarking in the template and line-outcomments in the sample solution)
Copilot AI review requested due to automatic review settings June 15, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens the configuration-time line-length validation for the template module and the (optional) sample solution to anticipate later transformations (e.g., whitespace watermarking and line-outcommenting) without exceeding the configured maxLineLength.

Changes:

  • Validate the template module using maxLineLength - 1 to reserve 1 character per line.
  • Validate the sample solution using maxLineLength - 3 to reserve 3 characters per line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Haskell/Template/Task.hs
Comment thread src/Haskell/Template/Task.hs
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