From 0ab4d181c9d2e1ad9e3d4028223f947599781351 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Fri, 30 Mar 2018 19:20:57 +0200 Subject: update locally used ruby versiob, lint everything --- lib/pronto/eslint_npm.rb | 8 +++++--- lib/pronto/eslint_npm/version.rb | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/pronto') diff --git a/lib/pronto/eslint_npm.rb b/lib/pronto/eslint_npm.rb index bb79091..e861ffe 100644 --- a/lib/pronto/eslint_npm.rb +++ b/lib/pronto/eslint_npm.rb @@ -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) diff --git a/lib/pronto/eslint_npm/version.rb b/lib/pronto/eslint_npm/version.rb index c22ce28..2d3f9d8 100644 --- a/lib/pronto/eslint_npm/version.rb +++ b/lib/pronto/eslint_npm/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Pronto module ESLintNpmVersion VERSION = '0.9.0'.freeze -- cgit v1.2.3