mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 12:54:24 +01:00
gem: add solargraph support
This commit is contained in:
parent
23dd4aa63f
commit
4cde78fe96
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*.lock
|
*.lock
|
||||||
pkg/*
|
pkg/*
|
||||||
|
.yardoc
|
||||||
|
16
.solargraph.yml
Normal file
16
.solargraph.yml
Normal 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
|
@ -7,3 +7,6 @@ rvm:
|
|||||||
- 2.5
|
- 2.5
|
||||||
- 2.4
|
- 2.4
|
||||||
- 2.3
|
- 2.3
|
||||||
|
|
||||||
|
script:
|
||||||
|
- bundle exec rake travis
|
||||||
|
12
Rakefile
12
Rakefile
@ -5,4 +5,16 @@ require 'bundler/audit/task'
|
|||||||
RSpec::Core::RakeTask.new(:spec)
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
Bundler::Audit::Task.new
|
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 :default => [:spec, 'bundle:audit']
|
||||||
|
|
||||||
|
task travis: [:default, :'solargraph:tc']
|
||||||
|
@ -30,4 +30,5 @@ Gem::Specification.new do |s|
|
|||||||
s.add_development_dependency 'bundler-audit'
|
s.add_development_dependency 'bundler-audit'
|
||||||
s.add_development_dependency 'better_errors'
|
s.add_development_dependency 'better_errors'
|
||||||
s.add_development_dependency 'binding_of_caller'
|
s.add_development_dependency 'binding_of_caller'
|
||||||
|
s.add_development_dependency 'solargraph'
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user