Commit cabc0b5 1 parent fa88415 commit cabc0b5 Copy full SHA for cabc0b5
File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,34 @@ namespace :steep do
64
64
$stdout. write ( '|' )
65
65
$stdout. write ( "\n " )
66
66
end
67
+
68
+ # append ignored files from Steepfile
69
+ steepfile_path = 'Steepfile'
70
+ ignored_files = [ ]
71
+
72
+ if File . exist? ( steepfile_path )
73
+ File . readlines ( steepfile_path ) . each do |line |
74
+ if line . strip . starts_with? ( 'ignore' )
75
+ ignored_files << line . strip . sub ( '/^ignore /' , '' )
76
+ end
77
+ end
78
+ end
79
+
80
+ ignored_files . each do |file |
81
+ $stdout. write ( '|' )
82
+ $stdout. write ( '|' )
83
+ $stdout. write ( file )
84
+ $stdout. write ( '|' )
85
+ $stdout. write ( 'ignored' )
86
+ $stdout. write ( '|' )
87
+ $stdout. write ( '|' )
88
+ $stdout. write ( '0' )
89
+ $stdout. write ( '|' )
90
+ $stdout. write ( '|' )
91
+ $stdout. write ( '0' )
92
+ $stdout. write ( '|' )
93
+ $stdout. write ( "\n " )
94
+ end
67
95
else
68
96
sh "steep stats --format=#{ format } "
69
97
end
You can’t perform that action at this time.
0 commit comments