class RubyLsp::GlobalState
def detect_linters(dependencies, all_dependencies)
single linter. To have multiple linters running, the user must configure them manually
Try to detect if there are linters in the project's dependencies. For auto-detection, we always only consider a
def detect_linters(dependencies, all_dependencies) linters = [] if dependencies.any?(/^rubocop/) || (all_dependencies.include?("rubocop") && dot_rubocop_yml_present) linters << "rubocop_internal" end linters end