Module: Libcodeowners

Extended by:
T::Helpers, T::Sig
Defined in:
lib/libcodeowners/team_finder.rb,
lib/libcodeowners.rb,
lib/libcodeowners/version.rb,
lib/libcodeowners/file_path_finder.rb,
lib/libcodeowners/file_path_team_cache.rb

Overview

typed: strict

Defined Under Namespace

Modules: FilePathFinder, FilePathTeamCache, TeamFinder

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.bust_cache!Object



50
51
52
# File 'lib/libcodeowners.rb', line 50

def bust_cache!
  FilePathTeamCache.bust_cache!
end

.first_owned_file_for_backtrace(backtrace, excluded_teams: []) ⇒ Object



45
46
47
# File 'lib/libcodeowners.rb', line 45

def first_owned_file_for_backtrace(backtrace, excluded_teams: [])
  TeamFinder.first_owned_file_for_backtrace(backtrace, excluded_teams: excluded_teams)
end

.for_backtrace(backtrace, excluded_teams: []) ⇒ Object



38
39
40
# File 'lib/libcodeowners.rb', line 38

def for_backtrace(backtrace, excluded_teams: [])
  TeamFinder.for_backtrace(backtrace, excluded_teams: excluded_teams)
end

.for_class(klass) ⇒ Object



26
27
28
# File 'lib/libcodeowners.rb', line 26

def for_class(klass)
  TeamFinder.for_class(klass)
end

.for_file(file_path) ⇒ Object



21
22
23
# File 'lib/libcodeowners.rb', line 21

def for_file(file_path)
  TeamFinder.for_file(file_path)
end

.for_package(package) ⇒ Object



31
32
33
# File 'lib/libcodeowners.rb', line 31

def for_package(package)
  TeamFinder.for_package(package)
end