Skip to content

Commit 7f21f72

Browse files
committed
Standardize coding patterns
1 parent 2e51fde commit 7f21f72

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/cc/engine/file_list_resolver.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ def expanded_list
1515

1616
private
1717

18+
attr_reader :builds_config, :include_paths
19+
1820
def absolute_include_paths
19-
@include_paths.map { |path| to_absolute_path(path) }.compact
21+
include_paths.map { |path| to_absolute_path(path) }.compact
2022
end
2123

2224
def to_absolute_path(path)
@@ -31,7 +33,7 @@ def find_target_files(path)
3133
end
3234

3335
def target_finder
34-
@target_finder ||= RuboCop::TargetFinder.new(@builds_config.rubocop_config_store)
36+
@_target_finder ||= RuboCop::TargetFinder.new(builds_config.rubocop_config_store)
3537
end
3638
end
3739
end

lib/cc/engine/standard.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ def run
3838
attr_reader :root, :engine_config, :io
3939

4040
def files_to_inspect
41-
@files_to_inspect ||= FileListResolver.new(
41+
@_files_to_inspect ||= FileListResolver.new(
4242
builds_config: builds_config,
4343
engine_config: engine_config,
4444
root: root
4545
).expanded_list
4646
end
4747

4848
def builds_config
49-
@builds_config ||= ::Standard::BuildsConfig.new.call([])
49+
@_builds_config ||= ::Standard::BuildsConfig.new.call([])
5050
end
5151
end
5252
end

0 commit comments

Comments
 (0)