no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:rubocop [2017/10/25 21:57] (current) – created mbidwell | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Static Code Analysis for your Ruby code ===== | ||
+ | From the GitHub for Rubocop: ([[https:// | ||
+ | |||
+ | ==== Setup Geany ==== | ||
+ | |||
+ | - Open a Ruby file in Geany or simply create a new file and set the filetype to Ruby. | ||
+ | - Open the //Set Build Commands// dialog in the Build menu. | ||
+ | - Setup the custom command | ||
+ | * Set a label, e.g. " | ||
+ | * Set the Command field to < | ||
+ | / | ||
+ | </ | ||
+ | - Paste the following text in the "Error regular expression" | ||
+ | ([^: | ||
+ | </ | ||
+ | |||
+ | ===== Usage in Geany ===== | ||
+ | |||
+ | After setting up and saving Geany' | ||
+ | |||
+ | All errors and warnings reported by the tools are sent to the Compiler tab in the messages windows at the bottom of the Geany window. | ||
+ | |||
+ | Ideally, you won't see much errors in your code :). Good luck. | ||
+ | |||
+ | {{tag> |