Skip to content

Commit

Permalink
Remove vendor directory
Browse files Browse the repository at this point in the history
- Relocate errors to their own top-level directory
- This is legacy from when https://github.com/cloudfoundry-attic/errors
was a submodule of CC
- Vendor directory hides where error files live, especially since some
editors don't index it

Authored-by: Greg Cobb <[email protected]>
  • Loading branch information
Gerg committed Jul 1, 2020
1 parent db63d9b commit 7188da1
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ ratings:
- "**.sh"
exclude_paths:
- docs/v3/node_modules/
- vendor/
- errors/
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:
AllCops:
TargetRubyVersion: 2.5
Exclude:
- vendor/**/*
- errors/**/*
- lib/diego/bbs/models/**/*
- lib/logcache/v2/**/*

Expand Down
2 changes: 1 addition & 1 deletion .solargraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include:
- "**/*.rb"
exclude:
- test/**/*
- vendor/**/*
- errors/**/*
- ".bundle/**/*"
require: []
domains: []
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/cloud_controller/errors/details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.load_by_name(yaml_file_path)
module V2
class HardCodedDetails
def self.yaml_file_path
File.join(File.expand_path('../../../vendor/errors', __dir__), 'v2.yml')
File.join(File.expand_path('../../../errors', __dir__), 'v2.yml')
end

HARD_CODED_DETAILS = CloudController::Errors::DetailsLoader.load_by_name(yaml_file_path)
Expand Down
2 changes: 1 addition & 1 deletion lib/cloud_controller/errors/v3/details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Errors
module V3
class HardCodedDetails
def self.yaml_file_path
File.join(File.expand_path('../../../../vendor/errors', __dir__), 'v3.yml')
File.join(File.expand_path('../../../../errors', __dir__), 'v3.yml')
end

HARD_CODED_DETAILS = DetailsLoader.load_by_name(yaml_file_path)
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
require 'simplecov'
SimpleCov.start do
add_filter '/spec/'
add_filter '/vendor/'
add_filter '/errors/'
add_filter '/docs/'
end
end
Expand Down
3 changes: 0 additions & 3 deletions vendor/errors/README.md

This file was deleted.

0 comments on commit 7188da1

Please sign in to comment.