]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blobdiff - lib/pronto/eslint_npm.rb
update locally used ruby versiob, lint everything
[github/fretlink/pronto-hlint.git] / lib / pronto / eslint_npm.rb
index bb79091bb241eed32c4a77c52b239ae322f2842b..e861ffedb2459d09402b810dd5c22c1a0bfbe0f5 100644 (file)
@@ -1,15 +1,17 @@
+# frozen_string_literal: true
+
 require 'pronto'
 require 'shellwords'
 
 module Pronto
   class ESLintNpm < Runner
     CONFIG_FILE = '.pronto_eslint_npm.yml'.freeze
-    CONFIG_KEYS = %w(eslint_executable files_to_lint).freeze
+    CONFIG_KEYS = %w[eslint_executable files_to_lint].freeze
 
     attr_writer :eslint_executable
 
     def eslint_executable
-      @eslint_executable || 'eslint'.freeze
+      @eslint_executable || 'eslint'
     end
 
     def files_to_lint
@@ -61,7 +63,7 @@ module Pronto
     end
 
     def new_message(offence, line)
-      path = line.patch.delta.new_file[:path]
+      path  = line.patch.delta.new_file[:path]
       level = :warning
 
       Message.new(path, line, level, offence['message'], nil, self.class)