diff options
author | Ellen Spertus <ellen.spertus@gmail.com> | 2018-07-19 10:30:20 -0700 |
---|---|---|
committer | Ellen Spertus <ellen.spertus@gmail.com> | 2018-07-19 10:30:20 -0700 |
commit | e2d5b35a8cb5eefafc12abe0394ec5f60ab87d79 (patch) | |
tree | 161deebcbc2e1b31edbe4c9be23d415a192954f8 /scalding | |
parent | 17f29013f960fdaf0e9d01ac8f128b05f327c95b (diff) | |
download | sandcrawler-e2d5b35a8cb5eefafc12abe0394ec5f60ab87d79.tar.gz sandcrawler-e2d5b35a8cb5eefafc12abe0394ec5f60ab87d79.zip |
Added rule to warn about block imports. Removed block imports.
Diffstat (limited to 'scalding')
-rw-r--r-- | scalding/scalastyle-config.xml | 3 | ||||
-rw-r--r-- | scalding/src/main/scala/sandcrawler/HBaseCountJob.scala | 3 | ||||
-rw-r--r-- | scalding/src/main/scala/sandcrawler/HBaseRowCountJob.scala | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/scalding/scalastyle-config.xml b/scalding/scalastyle-config.xml index 1575217..e2f58a0 100644 --- a/scalding/scalastyle-config.xml +++ b/scalding/scalastyle-config.xml @@ -114,7 +114,8 @@ <check level="warning" class="org.scalastyle.scalariform.PublicMethodsHaveTypeChecker" enabled="true"></check> <check level="warning" class="org.scalastyle.file.NewLineAtEofChecker" enabled="true"></check> <check level="warning" class="org.scalastyle.file.NoNewLineAtEofChecker" enabled="false"></check> - <check class="org.scalastyle.scalariform.ImportOrderChecker" level="warning" enabled="true"> + <check class="org.scalastyle.scalariform.BlockImportChecker" level="warning" enabled="true"/> +<check class="org.scalastyle.scalariform.ImportOrderChecker" level="warning" enabled="true"> <parameters> <parameter name="groups">java,scala,others</parameter> <parameter name="group.java">javax?\..+</parameter> diff --git a/scalding/src/main/scala/sandcrawler/HBaseCountJob.scala b/scalding/src/main/scala/sandcrawler/HBaseCountJob.scala index e1f46ef..22e4e86 100644 --- a/scalding/src/main/scala/sandcrawler/HBaseCountJob.scala +++ b/scalding/src/main/scala/sandcrawler/HBaseCountJob.scala @@ -6,7 +6,8 @@ import com.twitter.scalding._ import java.util.Properties import parallelai.spyglass.base.JobBase import parallelai.spyglass.hbase.HBaseConstants.SourceMode -import parallelai.spyglass.hbase.{HBaseSource, HBasePipeConversions} +import parallelai.spyglass.hbase.HBasePipeConversions +import parallelai.spyglass.hbase.HBaseSource class HBaseCountJob(args: Args, colSpec: String) extends JobBase(args) with HBasePipeConversions { val output = args("output") diff --git a/scalding/src/main/scala/sandcrawler/HBaseRowCountJob.scala b/scalding/src/main/scala/sandcrawler/HBaseRowCountJob.scala index 41de719..6def218 100644 --- a/scalding/src/main/scala/sandcrawler/HBaseRowCountJob.scala +++ b/scalding/src/main/scala/sandcrawler/HBaseRowCountJob.scala @@ -6,7 +6,8 @@ import com.twitter.scalding._ import java.util.Properties import parallelai.spyglass.base.JobBase import parallelai.spyglass.hbase.HBaseConstants.SourceMode -import parallelai.spyglass.hbase.{HBaseSource, HBasePipeConversions} +import parallelai.spyglass.hbase.HBasePipeConversions +import parallelai.spyglass.hbase.HBaseSource class HBaseRowCountJob(args: Args) extends JobBase(args) with HBasePipeConversions { |