1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-12-22 02:54:23 +01:00

gem: add solargraph support

This commit is contained in:
cn 2020-03-01 22:05:43 +01:00
parent 23dd4aa63f
commit 4cde78fe96
5 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.DS_Store
*.lock
pkg/*
.yardoc

16
.solargraph.yml Normal file
View File

@ -0,0 +1,16 @@
---
include:
- "**/*.rb"
- "bin/openvpn-status-web"
exclude:
- spec/**/*
- test/**/*
- vendor/**/*
- ".bundle/**/*"
require: []
domains: []
reporters:
- rubocop
- require_not_found
require_paths: []
max_files: 5000

View File

@ -7,3 +7,6 @@ rvm:
- 2.5
- 2.4
- 2.3
script:
- bundle exec rake travis

View File

@ -5,4 +5,16 @@ require 'bundler/audit/task'
RSpec::Core::RakeTask.new(:spec)
Bundler::Audit::Task.new
desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)'
task :'solargraph:init' do
sh 'solargraph download-core'
end
desc 'Run experimental solargraph type checker'
task :'solargraph:tc' do
sh 'solargraph typecheck'
end
task :default => [:spec, 'bundle:audit']
task travis: [:default, :'solargraph:tc']

View File

@ -30,4 +30,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'bundler-audit'
s.add_development_dependency 'better_errors'
s.add_development_dependency 'binding_of_caller'
s.add_development_dependency 'solargraph'
end