bisq-network / bisq-network/style
Wrap code at 120 characters
- Dominant language
- No language data
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
It is conventional to wrap lines of (Java) code at 120 characters. This is IDEA's default wrap margin, and (most importantly) it is the number of characters that can be displayed in GitHub's web UI without requiring horizontal scrolling.
Keeping lines of code to 120 characters or less therefore improves readability and reviewability. More generally, though, it is a code smell for lines of code to longer than this. It usually indicates that there is too much going on in a single statement and that things need to be broken up. Refactor code as necessary to eliminate the need to exceed 120 chars, or at the very least add line breaks to the code that help the reader parse and understand it more efficiently.
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the Java codebase for lines longer than 120 characters and inspect the surrounding statements to determine whether they need refactoring or only line breaks. Done means the Java code consistently stays within the 120-character limit while remaining readable; no specific files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100