StyleCop for ReSharper

A ReSharper 4.1 plugin that allows Microsoft StyleCop to be run as you type, generating real-time syntax highlighting of violations
Download

StyleCop for ReSharper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Ms-PL
  • Publisher Name:
  • Howardvan Rooijen
  • Operating Systems:
  • Windows All
  • File Size:
  • 85 KB

StyleCop for ReSharper Tags


StyleCop for ReSharper Description

StyleCop for ReSharper was designed to be a ReSharper 4.1 plugin that allows Microsoft StyleCop to be run as you type, generating real-time syntax highlighting of violations. StyleCop for ReSharper also contains a collection of Quick-Fixes to help you easily fix StyleCop code styling violations. The Plugin is a custom hosting environment for StyleCop which is invoked by ReSharper's IDaemonStage, IDaemonStageProcess interfaces. The StyleCop engine can, at this time, only process files rather than file contents, this leads to a particular problem when trying to achieve realtime syntax highlighting - that is, unless you constantly save the file, the contents of the code file within the IDE will become out of sync with the version on the File System that the StyleCop engine will process. In the current version of the plugin, a shadow copy of the current source file is created in the current users temporary files area. This shadow copy is over-written with changes as they are made. The StyleCop engine analyses this shadow copy and any resulting violations are displayed in the IDE. The Plugin also implements a scavenging algorithm to clean up the shadow copies to ensure that no space is wasted. This version of the Plugin also tries to find and use the Settings.STYLECOP file of the project currently being analysed, this allows the plugin to display violations only of the rules you have enabled. This search algorithm is quite rudimentary and can easily be updated to be made a little more robust.


StyleCop for ReSharper Related Software