Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 7188da1

Browse files
committed
Remove vendor directory
- 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 <gcobb@pivotal.io>
1 parent db63d9b commit 7188da1

10 files changed

Lines changed: 6 additions & 9 deletions

File tree

.codeclimate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ ratings:
4343
- "**.sh"
4444
exclude_paths:
4545
- docs/v3/node_modules/
46-
- vendor/
46+
- errors/

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require:
77
AllCops:
88
TargetRubyVersion: 2.5
99
Exclude:
10-
- vendor/**/*
10+
- errors/**/*
1111
- lib/diego/bbs/models/**/*
1212
- lib/logcache/v2/**/*
1313

.solargraph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include:
33
- "**/*.rb"
44
exclude:
55
- test/**/*
6-
- vendor/**/*
6+
- errors/**/*
77
- ".bundle/**/*"
88
require: []
99
domains: []
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/cloud_controller/errors/details.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def self.load_by_name(yaml_file_path)
2222
module V2
2323
class HardCodedDetails
2424
def self.yaml_file_path
25-
File.join(File.expand_path('../../../vendor/errors', __dir__), 'v2.yml')
25+
File.join(File.expand_path('../../../errors', __dir__), 'v2.yml')
2626
end
2727

2828
HARD_CODED_DETAILS = CloudController::Errors::DetailsLoader.load_by_name(yaml_file_path)

lib/cloud_controller/errors/v3/details.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Errors
55
module V3
66
class HardCodedDetails
77
def self.yaml_file_path
8-
File.join(File.expand_path('../../../../vendor/errors', __dir__), 'v3.yml')
8+
File.join(File.expand_path('../../../../errors', __dir__), 'v3.yml')
99
end
1010

1111
HARD_CODED_DETAILS = DetailsLoader.load_by_name(yaml_file_path)

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
require 'simplecov'
4949
SimpleCov.start do
5050
add_filter '/spec/'
51-
add_filter '/vendor/'
51+
add_filter '/errors/'
5252
add_filter '/docs/'
5353
end
5454
end

vendor/errors/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)