Repository: buildr
Updated Branches:
  refs/heads/master 60669571c -> 0d1b3a4e8


Ensure the source paths are invoke'd before being passed to the lint tool


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/0d1b3a4e
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/0d1b3a4e
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/0d1b3a4e

Branch: refs/heads/master
Commit: 0d1b3a4e8f6478b621f7bb1bbf5b393d3efa8e68
Parents: 6066957
Author: Peter Donald <[email protected]>
Authored: Sun May 25 15:13:38 2014 +1000
Committer: Peter Donald <[email protected]>
Committed: Sun May 25 15:13:38 2014 +1000

----------------------------------------------------------------------
 addon/buildr/scss_lint.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/0d1b3a4e/addon/buildr/scss_lint.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/scss_lint.rb b/addon/buildr/scss_lint.rb
index bd79994..734a486 100644
--- a/addon/buildr/scss_lint.rb
+++ b/addon/buildr/scss_lint.rb
@@ -160,9 +160,13 @@ module Buildr
         if project.scss_lint.enabled?
           desc "Generate scss-lint xml report."
           project.task("scss_lint:xml") do
+            source_paths = project.scss_lint.source_paths.flatten.compact
+            source_paths.each do |path|
+              path.respond_to?(:invoke) ? path.invoke : 
project.file(path).invoke
+            end
             puts "ScssLint: Analyzing source code..."
             Buildr::ScssLint.scss_lint(project.scss_lint.xml_output_file,
-                                       
project.scss_lint.source_paths.flatten.compact,
+                                       source_paths,
                                        :formatter => project.scss_lint.format,
                                        :configuration_file => 
project.scss_lint.configuration_file,
                                        :file_excludes => 
project.scss_lint.file_excludes,

Reply via email to