---
title: "Comment by Michael J. Ryan on \"The Case Against Character Count Line Limits\" | Hashnode"
description: "I'll give you one reason for line length limits... being able to intercept potentially dangerous/viral code injection. If you limit your line length to somethin"
url: "https://hashnode.com/posts/character-line-limits/67051e8919085e318c20a9fb/comment/67edab4517c721276f186e19"
---

[Discussion](https://hashnode.com/posts/character-line-limits/67051e8919085e318c20a9fb)

Comment [The Case Against Character Count Line Limits](https://hashnode.com/posts/character-line-limits/67051e8919085e318c20a9fb)

[Michael J. Ryan](https://hashnode.com/@tracker1)

[Apr 2, 2025](https://hashnode.com/posts/character-line-limits/67051e8919085e318c20a9fb/comment/67edab4517c721276f186e19)

I'll give you one reason for line length limits... being able to intercept potentially dangerous/viral code injection.

If you limit your line length to something most devs can view (120-150 chars), then the risk of someone injecting viral code into a project outside what is visible on a line is significantly reduced.

I'm not hard pressed on line lengths of 80 characters or so, I just feel that you should have a relatively reasonable limit so you can better detect the bad stuff.
