Authors:
etienne
free software

SimpleIntentions

Products: IntelliJ IDEA

Vendor: Etienne Studer

Email:

Website: N/A

Description:

Adds some simple but convenient intentions and inspections for IntelliJ IDEA.

Intentions:

  • unwrap if-statements, synchronized-statements, try-statements, and (do-)while-statements
  • copy method Javadoc from overriden/implemented method
  • add missing method parameter Javadoc

Inspections:

  • detect log statements that are not surrounded by a log level check
  • detect fields and method parameters that don't match the naming preferences defined in the current code style settings
  • detect fields of configurable types that are erroneously declared as being static
  • detect class/method/field modifiers that don't match order suggested by JLS
  • detect redundant method/field modifiers
  • detect redundant field initialization

Downloads: 23898
Rating:
Participated in rating: 3
Version Since Build Until Build File/URL Size (Kb) Date Details
1.5.9. 55.5000. . Download 83.45 2007-02-10 21:53:33 details
1.5.4. 40.3000. 50.4999. Download 76.77 2006-06-13 09:06:57 details
1.5.0. 40.3000. . Download 73.11 2006-05-29 12:28:21 details
. .
30 updates are hidden show all updates

Recent change notes:

  • 1.5.9 - Made changes to plugin descriptor to allow for smooth upgrading of the plugin (due to IDEA bug)
  • 1.5.8 - Changed plugin descriptor regarding error submitter integration to remain IDEA downward compatible
  • 1.5.7 - Added support for IDEA's Logger in log level inspection, fixed reported NPE
  • 1.5.6 - Integrated PluginErrorReportSubmitter plugin
  • 1.5.5 - First version for IDEA 6.0.x
  • 1.5.4 - Added configuration option to naming inspection to ignore serialVersionUID fields
  • 1.5.3 - Fixed plugin packaging to include *.java.template files (before/after documentation)
  • 1.5.2 - Provide separate plugin for IDEA Demetra
  • 1.5.1 - Restrict plugin to IDEA 5.x
  • 1.5.0 - Added inspection to detect log statements not surrounded by log level check
  • 1.4.0 - Added intention to remove redundant modifiers
  • 1.3.4 - Enhanced intention 'add missing method parameter Javadoc' to support methods without Javadoc
  • 1.3.3 - Fixed jar file
  • 1.3.2 - Added intention to add missing method parameter Javadoc, grouped Javadoc intentions in 'Javadoc' category
  • 1.3.1 - i18n support
  • 1.3.0 - Added intention to copy Javadoc from overriden/implemented method
  • 1.2.9 - Only highlight affected variable identifier in variable naming inspection
  • 1.2.8 - Fixed quick fix of JLS modifier order inspection for interface constants (thanks to Bas Leijdekkers)
  • 1.2.7 - Added missing documentation for redundant field initialization inspection
  • 1.2.6 - Added inspection to check for redundant field initialization
  • 1.2.5 - Changed naming inspection for static final fields (must not contain lower-case characters )
  • 1.2.4 - Improved static final fields handling in naming inspection
  • 1.2.3 - Made naming inspection configurable for each variable kind, made component names consistent with JetBrains recommendations
  • 1.2.2 - Fixed assertion in naming inspection, changed naming inspection to category 'Naming conventions'
  • 1.2.1 - Updated description of variable naming inspection
  • 1.2.0 - Added inspection to check for fields and method parameters that do not match the current code style naming preferences (incl. quick fix)
  • 1.1.2 - Fixed jar file to include fix for NPE in JLS modifier order inspection
  • 1.1.1 - Fixed NPE in JLS modifier order inspection
  • 1.1.0 - Added inspection to check order of class, method, and field modifiers against JLS suggestions (incl. quick fix)
  • 1.0.4 - Added intentions to unwrap while and do-while statements
  • 1.0.3 - Fixed code layout issue (thanks to Bas Leijdekkers)
  • 1.0.2 - Initial version, intentions to unwrap if-then-else, try-catch-finally, and synchronized statements

Comments:

larsrc
2008-11-05 20:24:01
I was hoping for a full unroll of loops, though that would probably have been easier for for loops, something along the lines of:

for (int i = 0; i < 2; i++) {
result += array[i];
}

becomes

result += array[0]
result += array[1]

If I tried to do it myself, I'd probably end up attempting to do a full partial evaluation:) Would it be possible to get the source code so I could make an attempt at adding this?
.
Anonymous
Rated:
2007-10-24 11:43:43
Inspections seems to be ok, but i failed to find a way to use javadoc intentions from editor after installing this plugin.
.
Anonymous
2006-11-07 12:35:11
.
Anonymous
Rated:
2006-04-16 07:49:04
.
gphilipp
Rated:
2006-04-16 07:49:04
Can't code without it anymore !
.