History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-4421
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Keith Lea
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Code style inspections

Created: 12 Oct 05 00:43   Updated: 09 Nov 06 20:34
Component/s: Code Formatting and Code Style
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,512
Severity: Medium


 Description  « Hide
I'm very surprised I couldn't find a request for this in the tracker. I spend a lot of time manually formatting my code to make it look correct and easy to read. I don't want to run ctrl+alt+L formatter because it's not fine-grained enough and semantic enough to understand how I want my code formatted, so I do it manually.

I'd like inspections for when my code style prefs are violated. Some starters could be:

1. Line length
2. Wrapping

  • for example, I always want the throws list to start on a new line if it has to wrap
  • sometimes I extract a variable and things are over-wrapped because they were
    initially wrapped based on the long expression, which is now a short variable name
    3. Wrong indentation
  • for example which occurs when renaming a method and parameter list is wrapped
  • I wonder if this would catch bugs, too


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.