IntelliJ Checkstyle & Inspection Profiles
When developing within IntelliJ, there are several configurations that can help with code quality and consistency. Used in conjunction with the Checkstyle configuration provided by Mobile-Framework, IntelliJ can be an invaluable resource to save time and effort in resolving findings by relying on the built-in CodeStyle and Inspections. This is especially true if you use the Shift+Option+Command+L ability to reformat code, optimize imports and cleanup code. This command can be performed at the file level or even to an entire project at once to save tons of time.
Below are links to both a CodeStyle scheme and Inspections profile that can be imported into IntelliJ IDEA for usages in projects. These links are the most up-to-date versions of these files and can be found in the docs/appendices/ide directory in the mobile-framework repository.
CodeStyle
CodeStyle scheme import instructions can be found in the here.
| When importing the CodeStyle scheme, this will import at the IDE-level and apply to every project opened in IntelliJ IDEA once selected. |
Inspections
Inspections profile import instructions can be found here.
| When importing the Inspections profile, this will import at the IDE-level, but will not apply to every project in IntelliJ IDEA. Each project must select the Inspections profile. A bit annoying, but you only have to do it once. |
If the CodeStyle scheme or Inspections profile need to be updated, they will apply to all projects that currently use them. Therefore, if there are adjustments made to these configurations, they can be re-imported and will update for all projects automatically.