diff --git a/src/chrome/komodo/content/pref/pref-syntax-checking.js b/src/chrome/komodo/content/pref/pref-syntax-checking.js index 0a2365ca5c..916929718d 100644 --- a/src/chrome/komodo/content/pref/pref-syntax-checking.js +++ b/src/chrome/komodo/content/pref/pref-syntax-checking.js @@ -448,6 +448,23 @@ function javaScriptInfo(languageName) { }; } +languageInfo.Ruby = { + browseForRubocopBinary: () => { + let rubocop_binary = document.getElementById('rubocop_binary'); + let currentPath = rubocop_binary.value; + let path = ko.filepicker.browseForExeFile(null, currentPath || ""); + if (path) + rubocop_binary.value = path; + }, + browseForRubocopConfig: () => { + let rubocop_config = document.getElementById('rubocop_config'); + let currentPath = rubocop_config.value; + let path = ko.filepicker.browseForExeFile(null, currentPath || ""); + if (path) + rubocop_config.value = path; + } +}; + function typescript_setup() { if (!('TypeScript' in dialog)) { dialog.TypeScript = {}; diff --git a/src/chrome/komodo/content/pref/pref-syntax-checking.xul b/src/chrome/komodo/content/pref/pref-syntax-checking.xul index db636094c2..2ccb9b931f 100644 --- a/src/chrome/komodo/content/pref/pref-syntax-checking.xul +++ b/src/chrome/komodo/content/pref/pref-syntax-checking.xul @@ -609,6 +609,46 @@ + + + + &rubocopChecking.description; + + + + + + + &rubocopChecking.binary; + + +