neovim 0.9.0.pre.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b1d22feedf4011597b4ef37233dbc13f1f874fa7bb03986d21a4e1cbe0d3f21
4
- data.tar.gz: 63f008322d89124368e2d3c556dd14e8734874d9ffd7c96ef77556efeda69b5b
3
+ metadata.gz: 6261883caf16dbd51bb9b1a869b61cf71597615e32c51af87727ea25b90f8fcd
4
+ data.tar.gz: 33053c2596c20db1e6314ff38c23f3ca091d994736c9852a45fc3237dcdcdba2
5
5
  SHA512:
6
- metadata.gz: 556a087351aee954365afc96f6f57bc4f47bab4dd0333db4d8a55025c578068275b91186d6509a7b160faa20a8863be72aaa09866dcc604490a1aaf92e26c6c5
7
- data.tar.gz: 23dbec9563bae88cdd3ed4315c1f1ff36cfdc2446b438c162da1633cd0e5e40b1f0f1f92d8a2d457c80b8b9e73ef6ad84bcb9d18870aab91a73a2bf053743dfd
6
+ metadata.gz: 8ab4995d175c7dd2821bf547b43c4b2128ee332c5110d59698e419352d325ec94ff761cda257d8bd4612f2f3c3c868c59fcaf947f923c0c1b98ae1d83c88991c
7
+ data.tar.gz: 996aef5dece8afdf5306a9b716545793dd16d469f869c0d17eb336fc58ce91bf9154e234f42e5e0aab5c2b56e9025a8a5e2c86edbd48e5a7cb459b790252769e
@@ -1,13 +1,16 @@
1
1
  name: Docs
2
2
  on:
3
3
  push:
4
- branches: [master]
4
+ branches: [main]
5
5
  schedule:
6
6
  - cron: '0 0 * * 0'
7
7
  jobs:
8
8
  docs:
9
9
  runs-on: ubuntu-latest
10
10
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
+ permissions:
12
+ contents: write
13
+ pull-requests: write
11
14
  steps:
12
15
  - uses: actions/checkout@v2
13
16
  with:
@@ -28,7 +31,7 @@ jobs:
28
31
  NVIM_EXECUTABLE: "_nvim/bin/nvim"
29
32
  run: bundle exec rake docs:generate
30
33
  - name: Open pull request
31
- uses: peter-evans/create-pull-request@v2
34
+ uses: peter-evans/create-pull-request@v3
32
35
  with:
33
36
  token: ${{ secrets.GITHUB_TOKEN }}
34
37
  commit-message: "[skip ci] Update generated docs"
@@ -1,9 +1,9 @@
1
1
  name: Tests
2
2
  on:
3
3
  push:
4
- branches: [master]
4
+ branches: [main]
5
5
  pull_request:
6
- branches: [master]
6
+ branches: [main]
7
7
  schedule:
8
8
  - cron: '0 0 * * 0'
9
9
  jobs:
@@ -12,7 +12,7 @@ jobs:
12
12
  fail-fast: false
13
13
  matrix:
14
14
  os: [ubuntu-latest, macos-latest]
15
- ruby: [2.5, 2.6, 2.7, head]
15
+ ruby: [2.5, 2.6, 2.7, 3.0, head]
16
16
  runs-on: ${{ matrix.os }}
17
17
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
18
18
  steps:
@@ -38,7 +38,7 @@ jobs:
38
38
  strategy:
39
39
  fail-fast: false
40
40
  matrix:
41
- ruby: [2.5, 2.6, 2.7] # msgpack not supported on windows on 2.8 yet
41
+ ruby: [2.5, 2.6, 2.7, 3.0]
42
42
  runs-on: windows-latest
43
43
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
44
44
  steps:
@@ -55,7 +55,9 @@ jobs:
55
55
  - name: Install Neovim
56
56
  uses: crazy-max/ghaction-chocolatey@v1
57
57
  with:
58
- args: install neovim --pre -fy --ignore-dependencies --ignore-checksums
58
+ # TODO: Install `--pre` once nightly release is fixed:
59
+ # https://github.com/neovim/neovim/issues/13312
60
+ args: install neovim -fy --ignore-dependencies --ignore-checksums
59
61
  - name: Run tests
60
62
  env:
61
63
  NVIM_EXECUTABLE: 'C:\tools\neovim\Neovim\bin\nvim'
data/README.md CHANGED
@@ -40,7 +40,7 @@ require "neovim"
40
40
  client = Neovim.attach_unix("/tmp/nvim.sock")
41
41
  ```
42
42
 
43
- Refer to the [`Neovim` docs](https://www.rubydoc.info/github/neovim/neovim-ruby/master/Neovim) for other ways to connect to `nvim`, and the [`Neovim::Client` docs](https://www.rubydoc.info/github/neovim/neovim-ruby/master/Neovim/Client) for a summary of the client interface.
43
+ Refer to the [`Neovim` docs](https://www.rubydoc.info/github/neovim/neovim-ruby/main/Neovim) for other ways to connect to `nvim`, and the [`Neovim::Client` docs](https://www.rubydoc.info/github/neovim/neovim-ruby/main/Neovim/Client) for a summary of the client interface.
44
44
 
45
45
  ### Plugins
46
46
 
@@ -72,7 +72,7 @@ end
72
72
 
73
73
  When you add or update a plugin, you will need to call `:UpdateRemotePlugins` to update the remote plugin manifest. See `:help remote-plugin-manifest` for more information.
74
74
 
75
- Refer to the [`Neovim::Plugin::DSL` docs](https://www.rubydoc.info/github/neovim/neovim-ruby/master/Neovim/Plugin/DSL) for a more complete overview of the `Neovim.plugin` DSL.
75
+ Refer to the [`Neovim::Plugin::DSL` docs](https://www.rubydoc.info/github/neovim/neovim-ruby/main/Neovim/Plugin/DSL) for a more complete overview of the `Neovim.plugin` DSL.
76
76
 
77
77
  ### Vim Plugin Support
78
78
 
@@ -85,7 +85,7 @@ The Neovim gem also acts as a compatibility layer for Ruby plugins written for `
85
85
  * CI: <https://github.com/neovim/neovim-ruby/actions>
86
86
  * Documentation:
87
87
  * Latest Gem: <https://rubydoc.info/gems/neovim>
88
- * Master: <https://rubydoc.info/github/neovim/neovim-ruby/master/frames>
88
+ * Main: <https://rubydoc.info/github/neovim/neovim-ruby/main/frames>
89
89
 
90
90
  ## Contributing
91
91
 
data/Rakefile CHANGED
@@ -1,24 +1,15 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
- require "rubocop/rake_task"
4
3
 
5
4
  Bundler.setup
6
5
 
7
- RuboCop::RakeTask.new(:linter)
8
-
9
6
  namespace :spec do
10
7
  desc "Run functional specs"
11
8
  RSpec::Core::RakeTask.new(:functional)
12
9
 
13
10
  desc "Run acceptance specs"
14
11
  task acceptance: "acceptance:deps" do
15
- run_script(
16
- "run_acceptance.rb",
17
- "--reporter", "dot",
18
- # TODO: remove once rubyeval is merged in nvim
19
- "--exclude", "rubyeval",
20
- "spec/acceptance"
21
- )
12
+ run_script("run_acceptance.rb", "--reporter", "dot", "spec/acceptance")
22
13
  end
23
14
 
24
15
  namespace :acceptance do
@@ -45,7 +36,7 @@ end
45
36
  desc "Run specs"
46
37
  task spec: [:"spec:functional", :"spec:acceptance"]
47
38
 
48
- task default: [:linter, :spec]
39
+ task default: :spec
49
40
 
50
41
  def run_script(relpath, *args)
51
42
  path = File.expand_path("script/#{relpath}", __dir__)
data/lib/neovim/buffer.rb CHANGED
@@ -4,7 +4,7 @@ require "neovim/line_range"
4
4
  module Neovim
5
5
  # Class representing an +nvim+ buffer.
6
6
  #
7
- # The methods documented here were generated using NVIM v0.4.4
7
+ # The methods documented here were generated using NVIM v0.5.0
8
8
  class Buffer < RemoteObject
9
9
  attr_reader :lines
10
10
 
@@ -164,6 +164,15 @@ module Neovim
164
164
  @param [Array<String>] replacement
165
165
  @return [void]
166
166
 
167
+ @method set_text(start_row, start_col, end_row, end_col, replacement)
168
+ See +:h nvim_buf_set_text()+
169
+ @param [Integer] start_row
170
+ @param [Integer] start_col
171
+ @param [Integer] end_row
172
+ @param [Integer] end_col
173
+ @param [Array<String>] replacement
174
+ @return [void]
175
+
167
176
  @method get_offset(index)
168
177
  See +:h nvim_buf_get_offset()+
169
178
  @param [Integer] index
@@ -224,10 +233,6 @@ module Neovim
224
233
  @param [Object] value
225
234
  @return [void]
226
235
 
227
- @method get_number
228
- See +:h nvim_buf_get_number()+
229
- @return [Integer]
230
-
231
236
  @method get_name
232
237
  See +:h nvim_buf_get_name()+
233
238
  @return [String]
@@ -250,6 +255,35 @@ module Neovim
250
255
  @param [String] name
251
256
  @return [Array<Integer>]
252
257
 
258
+ @method get_extmark_by_id(ns_id, id, opts)
259
+ See +:h nvim_buf_get_extmark_by_id()+
260
+ @param [Integer] ns_id
261
+ @param [Integer] id
262
+ @param [Hash] opts
263
+ @return [Array<Integer>]
264
+
265
+ @method get_extmarks(ns_id, start, end, opts)
266
+ See +:h nvim_buf_get_extmarks()+
267
+ @param [Integer] ns_id
268
+ @param [Object] start
269
+ @param [Object] end
270
+ @param [Hash] opts
271
+ @return [Array]
272
+
273
+ @method set_extmark(ns_id, line, col, opts)
274
+ See +:h nvim_buf_set_extmark()+
275
+ @param [Integer] ns_id
276
+ @param [Integer] line
277
+ @param [Integer] col
278
+ @param [Hash] opts
279
+ @return [Integer]
280
+
281
+ @method del_extmark(ns_id, id)
282
+ See +:h nvim_buf_del_extmark()+
283
+ @param [Integer] ns_id
284
+ @param [Integer] id
285
+ @return [Boolean]
286
+
253
287
  @method add_highlight(ns_id, hl_group, line, col_start, col_end)
254
288
  See +:h nvim_buf_add_highlight()+
255
289
  @param [Integer] ns_id
@@ -266,6 +300,23 @@ module Neovim
266
300
  @param [Integer] line_end
267
301
  @return [void]
268
302
 
303
+ @method set_virtual_text(src_id, line, chunks, opts)
304
+ See +:h nvim_buf_set_virtual_text()+
305
+ @param [Integer] src_id
306
+ @param [Integer] line
307
+ @param [Array] chunks
308
+ @param [Hash] opts
309
+ @return [Integer]
310
+
311
+ @method call(fun)
312
+ See +:h nvim_buf_call()+
313
+ @param [LuaRef] fun
314
+ @return [Object]
315
+
316
+ @method get_number
317
+ See +:h nvim_buf_get_number()+
318
+ @return [Integer]
319
+
269
320
  @method clear_highlight(ns_id, line_start, line_end)
270
321
  See +:h nvim_buf_clear_highlight()+
271
322
  @param [Integer] ns_id
@@ -273,14 +324,6 @@ module Neovim
273
324
  @param [Integer] line_end
274
325
  @return [void]
275
326
 
276
- @method set_virtual_text(ns_id, line, chunks, opts)
277
- See +:h nvim_buf_set_virtual_text()+
278
- @param [Integer] ns_id
279
- @param [Integer] line
280
- @param [Array] chunks
281
- @param [Hash] opts
282
- @return [Integer]
283
-
284
327
  =end
285
328
  end
286
329
  end
data/lib/neovim/client.rb CHANGED
@@ -9,7 +9,7 @@ module Neovim
9
9
  # +RemoteObject+ subclasses (i.e. +Buffer+, +Window+, or +Tabpage+),
10
10
  # which similarly have dynamically generated interfaces.
11
11
  #
12
- # The methods documented here were generated using NVIM v0.4.4
12
+ # The methods documented here were generated using NVIM v0.5.0
13
13
  #
14
14
  # @see Buffer
15
15
  # @see Window
@@ -117,6 +117,17 @@ module Neovim
117
117
 
118
118
  # The following methods are dynamically generated.
119
119
  =begin
120
+ @method command_output(command)
121
+ See +:h nvim_command_output()+
122
+ @param [String] command
123
+ @return [String]
124
+
125
+ @method execute_lua(code, args)
126
+ See +:h nvim_execute_lua()+
127
+ @param [String] code
128
+ @param [Array] args
129
+ @return [Object]
130
+
120
131
  @method ui_attach(width, height, options)
121
132
  See +:h nvim_ui_attach()+
122
133
  @param [Integer] width
@@ -152,6 +163,20 @@ module Neovim
152
163
  @param [Integer] height
153
164
  @return [void]
154
165
 
166
+ @method ui_pum_set_bounds(width, height, row, col)
167
+ See +:h nvim_ui_pum_set_bounds()+
168
+ @param [Float] width
169
+ @param [Float] height
170
+ @param [Float] row
171
+ @param [Float] col
172
+ @return [void]
173
+
174
+ @method exec(src, output)
175
+ See +:h nvim_exec()+
176
+ @param [String] src
177
+ @param [Boolean] output
178
+ @return [String]
179
+
155
180
  @method command(command)
156
181
  See +:h nvim_command()+
157
182
  @param [String] command
@@ -169,6 +194,18 @@ module Neovim
169
194
  @param [Boolean] rgb
170
195
  @return [Hash]
171
196
 
197
+ @method get_hl_id_by_name(name)
198
+ See +:h nvim_get_hl_id_by_name()+
199
+ @param [String] name
200
+ @return [Integer]
201
+
202
+ @method set_hl(ns_id, name, val)
203
+ See +:h nvim_set_hl()+
204
+ @param [Integer] ns_id
205
+ @param [String] name
206
+ @param [Hash] val
207
+ @return [void]
208
+
172
209
  @method feedkeys(keys, mode, escape_csi)
173
210
  See +:h nvim_feedkeys()+
174
211
  @param [String] keys
@@ -199,22 +236,24 @@ module Neovim
199
236
  @param [Boolean] special
200
237
  @return [String]
201
238
 
202
- @method command_output(command)
203
- See +:h nvim_command_output()+
204
- @param [String] command
205
- @return [String]
206
-
207
239
  @method eval(expr)
208
240
  See +:h nvim_eval()+
209
241
  @param [String] expr
210
242
  @return [Object]
211
243
 
212
- @method execute_lua(code, args)
213
- See +:h nvim_execute_lua()+
244
+ @method exec_lua(code, args)
245
+ See +:h nvim_exec_lua()+
214
246
  @param [String] code
215
247
  @param [Array] args
216
248
  @return [Object]
217
249
 
250
+ @method notify(msg, log_level, opts)
251
+ See +:h nvim_notify()+
252
+ @param [String] msg
253
+ @param [Integer] log_level
254
+ @param [Hash] opts
255
+ @return [Object]
256
+
218
257
  @method call_function(fn, args)
219
258
  See +:h nvim_call_function()+
220
259
  @param [String] fn
@@ -237,6 +276,12 @@ module Neovim
237
276
  See +:h nvim_list_runtime_paths()+
238
277
  @return [Array<String>]
239
278
 
279
+ @method get_runtime_file(name, all)
280
+ See +:h nvim_get_runtime_file()+
281
+ @param [String] name
282
+ @param [Boolean] all
283
+ @return [Array<String>]
284
+
240
285
  @method set_current_dir(dir)
241
286
  See +:h nvim_set_current_dir()+
242
287
  @param [String] dir
@@ -287,6 +332,22 @@ module Neovim
287
332
  @param [String] name
288
333
  @return [Object]
289
334
 
335
+ @method get_all_options_info
336
+ See +:h nvim_get_all_options_info()+
337
+ @return [Hash]
338
+
339
+ @method get_option_info(name)
340
+ See +:h nvim_get_option_info()+
341
+ @param [String] name
342
+ @return [Hash]
343
+
344
+ @method echo(chunks, history, opts)
345
+ See +:h nvim_echo()+
346
+ @param [Array] chunks
347
+ @param [Boolean] history
348
+ @param [Hash] opts
349
+ @return [void]
350
+
290
351
  @method out_write(str)
291
352
  See +:h nvim_out_write()+
292
353
  @param [String] str
@@ -334,6 +395,18 @@ module Neovim
334
395
  @param [Boolean] scratch
335
396
  @return [Buffer]
336
397
 
398
+ @method open_term(buffer, opts)
399
+ See +:h nvim_open_term()+
400
+ @param [Buffer] buffer
401
+ @param [Hash] opts
402
+ @return [Integer]
403
+
404
+ @method chan_send(chan, data)
405
+ See +:h nvim_chan_send()+
406
+ @param [Integer] chan
407
+ @param [String] data
408
+ @return [void]
409
+
337
410
  @method open_win(buffer, enter, config)
338
411
  See +:h nvim_open_win()+
339
412
  @param [Buffer] buffer
@@ -491,6 +564,12 @@ module Neovim
491
564
  @param [Hash] opts
492
565
  @return [void]
493
566
 
567
+ @method set_decoration_provider(ns_id, opts)
568
+ See +:h nvim_set_decoration_provider()+
569
+ @param [Integer] ns_id
570
+ @param [Hash] opts
571
+ @return [void]
572
+
494
573
  =end
495
574
  end
496
575
  end
@@ -3,7 +3,7 @@ require "neovim/remote_object"
3
3
  module Neovim
4
4
  # Class representing an +nvim+ tabpage.
5
5
  #
6
- # The methods documented here were generated using NVIM v0.4.4
6
+ # The methods documented here were generated using NVIM v0.5.0
7
7
  class Tabpage < RemoteObject
8
8
  # The following methods are dynamically generated.
9
9
  =begin
@@ -1,3 +1,3 @@
1
1
  module Neovim
2
- VERSION = Gem::Version.new("0.9.0.pre.1")
2
+ VERSION = Gem::Version.new("0.9.0")
3
3
  end
data/lib/neovim/window.rb CHANGED
@@ -3,7 +3,7 @@ require "neovim/remote_object"
3
3
  module Neovim
4
4
  # Class representing an +nvim+ window.
5
5
  #
6
- # The methods documented here were generated using NVIM v0.4.4
6
+ # The methods documented here were generated using NVIM v0.5.0
7
7
  class Window < RemoteObject
8
8
  # Get the buffer displayed in the window
9
9
  #
@@ -152,11 +152,20 @@ module Neovim
152
152
  See +:h nvim_win_get_config()+
153
153
  @return [Hash]
154
154
 
155
+ @method hide
156
+ See +:h nvim_win_hide()+
157
+ @return [void]
158
+
155
159
  @method close(force)
156
160
  See +:h nvim_win_close()+
157
161
  @param [Boolean] force
158
162
  @return [void]
159
163
 
164
+ @method call(fun)
165
+ See +:h nvim_win_call()+
166
+ @param [LuaRef] fun
167
+ @return [Object]
168
+
160
169
  =end
161
170
  end
162
171
  end
data/neovim.gemspec CHANGED
@@ -27,6 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "pry-byebug"
28
28
  spec.add_development_dependency "rake"
29
29
  spec.add_development_dependency "rspec", "~> 3.0"
30
- spec.add_development_dependency "rubocop", "0.56.0"
31
30
  spec.add_development_dependency "vim-flavor", "2.2.2"
32
31
  end
@@ -77,8 +77,8 @@ function! s:suite.supports_register() abort
77
77
  endfunction
78
78
 
79
79
  function! s:suite.supports_completion() abort
80
- RPluginCommandCompletion
81
- call s:expect(g:rplugin_command_completion).to_equal("buffer")
80
+ RPluginCommandCompletion foo
81
+ call s:expect(g:rplugin_command_completion).to_equal(["buffer", "foo"])
82
82
  endfunction
83
83
 
84
84
  function! s:suite.supports_eval() abort
@@ -43,10 +43,10 @@ Neovim.plugin do |plug|
43
43
  nvim.set_var("rplugin_command_register", reg)
44
44
  end
45
45
 
46
- plug.command(:RPluginCommandCompletion, complete: "buffer", sync: true) do |nvim|
46
+ plug.command(:RPluginCommandCompletion, complete: "buffer", nargs: 1, sync: true) do |nvim, arg|
47
47
  attrs = nvim.command_output("silent command RPluginCommandCompletion")
48
48
  compl = attrs.split($/).last.split[2]
49
- nvim.set_var("rplugin_command_completion", compl)
49
+ nvim.set_var("rplugin_command_completion", [compl, arg])
50
50
  end
51
51
 
52
52
  plug.command(:RPluginCommandEval, eval: "g:to_eval", sync: true) do |nvim, to_eval|
data/spec/helper.rb CHANGED
@@ -54,9 +54,13 @@ RSpec.configure do |config|
54
54
  config.before(:example, :nvim_version) do |spec|
55
55
  comparator = spec.metadata.fetch(:nvim_version)
56
56
  requirement = Gem::Requirement.create(comparator)
57
- nvim_version = Gem::Version.new(Support.nvim_version)
58
57
 
59
- if !requirement.satisfied_by?(nvim_version)
58
+ nvim_version = Support
59
+ .nvim_version
60
+ .split("+")
61
+ .first
62
+
63
+ if !requirement.satisfied_by?(Gem::Version.new(nvim_version))
60
64
  skip "Skipping on nvim #{nvim_version} (requires #{comparator})"
61
65
  end
62
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neovim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Genco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-18 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 0.56.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 0.56.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: vim-flavor
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -145,10 +131,8 @@ extensions: []
145
131
  extra_rdoc_files: []
146
132
  files:
147
133
  - ".github/workflows/docs.yml"
148
- - ".github/workflows/linter.yml"
149
134
  - ".github/workflows/tests.yml"
150
135
  - ".gitignore"
151
- - ".rubocop.yml"
152
136
  - CHANGELOG.md
153
137
  - CODE_OF_CONDUCT.md
154
138
  - Gemfile
@@ -255,11 +239,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
255
239
  version: 2.2.0
256
240
  required_rubygems_version: !ruby/object:Gem::Requirement
257
241
  requirements:
258
- - - ">"
242
+ - - ">="
259
243
  - !ruby/object:Gem::Version
260
- version: 1.3.1
244
+ version: '0'
261
245
  requirements: []
262
- rubygems_version: 3.0.1
246
+ rubygems_version: 3.2.2
263
247
  signing_key:
264
248
  specification_version: 4
265
249
  summary: A Ruby client for Neovim
@@ -1,32 +0,0 @@
1
- name: Linter
2
- on:
3
- push:
4
- branches: [master]
5
- pull_request:
6
- branches: [master]
7
- jobs:
8
- linter:
9
- runs-on: ubuntu-latest
10
- if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
- steps:
12
- - uses: actions/checkout@v2
13
- with:
14
- repository: neovim/neovim-ruby
15
- - uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: head
18
- - name: Cache checksum
19
- run: |
20
- openssl md5 Gemfile neovim.gemspec > /tmp/checksum.txt
21
- - uses: actions/cache@v1
22
- with:
23
- path: vendor/bundle
24
- key: ${{ runner.os }}-gems-${{ hashFiles('/tmp/checksum.txt') }}
25
- restore-keys: |
26
- ${{ runner.os }}-gems-
27
- - name: Bundle install
28
- run: |
29
- bundle config set path vendor/bundle
30
- bundle install --jobs 3 --retry 3
31
- - name: Run linter
32
- run: bundle exec rake linter
data/.rubocop.yml DELETED
@@ -1,149 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - _neovim/**/*
4
- - spec/acceptance/**/*
5
- - spec/workspace/**/*
6
- - vendor/**/*
7
- - script/**/*
8
- - bin/**/*
9
-
10
- Layout/EndOfLine:
11
- EnforcedStyle: lf
12
-
13
- Layout/MultilineMethodCallIndentation:
14
- EnforcedStyle: indented
15
-
16
- Layout/SpaceAroundEqualsInParameterDefault:
17
- EnforcedStyle: no_space
18
-
19
- Layout/SpaceInsideHashLiteralBraces:
20
- EnforcedStyle: no_space
21
-
22
- Lint/AmbiguousBlockAssociation:
23
- Exclude:
24
- - spec/**/*
25
-
26
- Lint/HandleExceptions:
27
- Exclude:
28
- - lib/neovim/ruby_provider.rb
29
- - lib/neovim/logging.rb
30
- - lib/neovim/connection.rb
31
- - lib/neovim/line_range.rb
32
- - spec/**/*
33
-
34
- Lint/RescueException:
35
- Exclude:
36
- - lib/neovim/host.rb
37
-
38
- Lint/UnderscorePrefixedVariableName:
39
- Exclude:
40
- - lib/neovim/ruby_provider.rb
41
-
42
- Lint/UselessAccessModifier:
43
- Exclude:
44
- - lib/neovim/buffer.rb
45
- - lib/neovim/client.rb
46
-
47
- Lint/Void:
48
- Exclude:
49
- - lib/neovim/window.rb
50
-
51
- Metrics/AbcSize:
52
- Max: 20
53
-
54
- Metrics/BlockLength:
55
- Exclude:
56
- - spec/**/*
57
-
58
- Metrics/ClassLength:
59
- Max: 500
60
-
61
- Metrics/LineLength:
62
- Max: 125
63
-
64
- Metrics/MethodLength:
65
- Max: 50
66
-
67
- Metrics/ModuleLength:
68
- Enabled: false
69
-
70
- Metrics/ParameterLists:
71
- Max: 6
72
-
73
- Naming/AccessorMethodName:
74
- Exclude:
75
- - lib/neovim/client.rb
76
-
77
- Naming/UncommunicativeMethodParamName:
78
- Enabled: false
79
-
80
- Security/Eval:
81
- Exclude:
82
- - lib/neovim/ruby_provider.rb
83
-
84
- Style/BlockComments:
85
- Exclude:
86
- - lib/neovim/buffer.rb
87
- - lib/neovim/client.rb
88
- - lib/neovim/tabpage.rb
89
- - lib/neovim/window.rb
90
-
91
- Style/ConditionalAssignment:
92
- EnforcedStyle: assign_inside_condition
93
- IncludeTernaryExpressions: false
94
-
95
- Style/Documentation:
96
- Exclude:
97
- - spec/**/*
98
- - lib/neovim/ruby_provider/object_ext.rb
99
-
100
- Style/DoubleNegation:
101
- Enabled: false
102
-
103
- Style/FormatStringToken:
104
- EnforcedStyle: unannotated
105
-
106
- Style/GlobalVars:
107
- Exclude:
108
- - lib/neovim/ruby_provider/vim.rb
109
- - spec/neovim/ruby_provider/vim_spec.rb
110
-
111
- Style/IfUnlessModifier:
112
- Enabled: false
113
-
114
- Style/MultilineTernaryOperator:
115
- Enabled: false
116
-
117
- Style/NegatedIf:
118
- EnforcedStyle: postfix
119
-
120
- Style/ParallelAssignment:
121
- Enabled: false
122
-
123
- Style/PerlBackrefs:
124
- Enabled: false
125
-
126
- Style/RescueStandardError:
127
- EnforcedStyle: implicit
128
-
129
- Style/Semicolon:
130
- Enabled: false
131
-
132
- Style/SpecialGlobalVars:
133
- EnforcedStyle: use_perl_names
134
-
135
- Style/StringLiterals:
136
- EnforcedStyle: double_quotes
137
-
138
- Style/StringLiteralsInInterpolation:
139
- EnforcedStyle: double_quotes
140
-
141
- Style/SymbolArray:
142
- EnforcedStyle: brackets
143
-
144
- Style/WordArray:
145
- EnforcedStyle: brackets
146
-
147
- Style/ZeroLengthPredicate:
148
- Exclude:
149
- - lib/neovim/ruby_provider.rb