Permalink
Please sign in to comment.
Browse files
Improve and clean-up Scaladocs; resolves #184 (#193)
- update gitignore - add site build to TravisCI config - add scalastyle config - improve scala docs on every scala file - incorporate @greebie's work on scaladocs
- Loading branch information...
Showing
with
529 additions
and 150 deletions.
- +2 −0 .gitignore
- +1 −0 .travis.yml
- +190 −0 config/checkstyle/scalastyle_config.xml
- +24 −0 pom.xml
- +1 −1 src/main/scala/io/archivesunleashed/ArchiveRecord.scala
- +5 −0 src/main/scala/io/archivesunleashed/ArchiveRecordImpl.scala
- +17 −7 src/main/scala/io/archivesunleashed/app/ExtractEntities.scala
- +28 −10 src/main/scala/io/archivesunleashed/app/ExtractGraph.scala
- +10 −6 src/main/scala/io/archivesunleashed/app/ExtractPopularImages.scala
- +31 −14 src/main/scala/io/archivesunleashed/app/NERCombinedJson.scala
- +14 −9 src/main/scala/io/archivesunleashed/app/WriteGEXF.scala
- +12 −14 src/main/scala/io/archivesunleashed/app/WriteGraphML.scala
- +10 −3 src/main/scala/io/archivesunleashed/matchbox/ComputeImageSize.scala
- +6 −7 src/main/scala/io/archivesunleashed/matchbox/ComputeMD5.scala
- +7 −0 src/main/scala/io/archivesunleashed/matchbox/DetectLanguage.scala
- +7 −4 src/main/scala/io/archivesunleashed/matchbox/DetectMimeTypeTika.scala
- +1 −0 src/main/scala/io/archivesunleashed/matchbox/ExtractAtMentions.scala
- +14 −5 src/main/scala/io/archivesunleashed/matchbox/ExtractBoilerpipeText.scala
- +3 −8 src/main/scala/io/archivesunleashed/matchbox/ExtractDate.scala
- +7 −0 src/main/scala/io/archivesunleashed/matchbox/ExtractDomain.scala
- +5 −0 src/main/scala/io/archivesunleashed/matchbox/ExtractHashtags.scala
- +5 −8 src/main/scala/io/archivesunleashed/matchbox/ExtractImageLinks.scala
- +7 −10 src/main/scala/io/archivesunleashed/matchbox/ExtractLinks.scala
- +1 −1 src/main/scala/io/archivesunleashed/matchbox/ExtractTextFromPDFs.scala
- +5 −0 src/main/scala/io/archivesunleashed/matchbox/ExtractUrls.scala
- +16 −14 src/main/scala/io/archivesunleashed/matchbox/NER3Classifier.scala
- +7 −1 src/main/scala/io/archivesunleashed/matchbox/RemoveHTML.scala
- +7 −3 src/main/scala/io/archivesunleashed/matchbox/RemoveHttpHeader.scala
- +5 −12 src/main/scala/io/archivesunleashed/matchbox/TupleFormatter.scala
- +1 −3 src/main/scala/io/archivesunleashed/matchbox/package.scala
- +50 −5 src/main/scala/io/archivesunleashed/package.scala
- +16 −2 src/main/scala/io/archivesunleashed/util/JsonUtils.scala
- +14 −3 src/main/scala/io/archivesunleashed/util/TweetUtils.scala
@@ -0,0 +1,190 @@ | |||
<scalastyle commentFilter="enabled"> | |||
<name>Scalastyle standard configuration</name> | |||
<check class="org.scalastyle.file.FileTabChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.file.FileLengthChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maxFileLength"><![CDATA[800]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.file.HeaderMatchesChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="header"><![CDATA[/* | |||
* Archives Unleashed Toolkit (AUT): | |||
* An open-source platform for analyzing web archives. | |||
* | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | |||
* | |||
* http://www.apache.org/licenses/LICENSE-2.0 | |||
* | |||
* Unless required by applicable law or agreed to in writing, software | |||
* distributed under the License is distributed on an "AS IS" BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
*/ | |||
]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.SpacesAfterPlusChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.file.WhitespaceEndOfLineChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="ignoreWhitespaceLines"><![CDATA[false]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.SpacesBeforePlusChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.file.FileLineLengthChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maxLineLength"><![CDATA[160]]></parameter> | |||
<parameter name="tabSize"><![CDATA[4]]></parameter> | |||
<parameter name="ignoreImports"><![CDATA[false]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.ClassNamesChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[^[A-Z][A-Za-z]*$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.ObjectNamesChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[^[A-Z][A-Za-z]*$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.PackageObjectNamesChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[^[a-z][A-Za-z]*$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.EqualsHashCodeChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.IllegalImportsChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="illegalImports"><![CDATA[sun._,java.awt._]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.ParameterNumberChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maxParameters"><![CDATA[8]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.MagicNumberChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="ignore"><![CDATA[-1,0,1,2,3]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.NoWhitespaceBeforeLeftBracketChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.NoWhitespaceAfterLeftBracketChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.ReturnChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.NullChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.NoCloneChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.NoFinalizeChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.CovariantEqualsChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.StructuralTypeChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.file.RegexChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[println]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.NumberOfTypesChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maxTypes"><![CDATA[30]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.CyclomaticComplexityChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maximum"><![CDATA[10]]></parameter> | |||
<parameter name="countCases"><![CDATA[true]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.UppercaseLChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.SimplifyBooleanExpressionChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.IfBraceChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="singleLineAllowed"><![CDATA[true]]></parameter> | |||
<parameter name="doubleLineAllowed"><![CDATA[false]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.MethodLengthChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maxLength"><![CDATA[50]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.MethodNamesChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[^[a-z][A-Za-z0-9]*(_=)?$]]></parameter> | |||
<parameter name="ignoreRegex"><![CDATA[^$]]></parameter> | |||
<parameter name="ignoreOverride"><![CDATA[false]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.NumberOfMethodsInTypeChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="maxMethods"><![CDATA[30]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.PublicMethodsHaveTypeChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="ignoreOverride"><![CDATA[false]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.file.NewLineAtEofChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.file.NoNewLineAtEofChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.WhileChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.VarFieldChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.VarLocalChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.RedundantIfChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.TokenChecker" level="warning" enabled="false"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[println]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.DeprecatedJavaChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.OverrideJavaChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.EmptyClassChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.ClassTypeParameterChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[^[A-Z_]$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.UnderscoreImportChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.LowercasePatternMatchChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.EmptyInterpolatedStringChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.MultipleStringLiteralsChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="allowed"><![CDATA[2]]></parameter> | |||
<parameter name="ignoreRegex"><![CDATA[^""$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.ImportGroupingChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.NotImplementedErrorUsage" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.BlockImportChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.ProcedureDeclarationChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.ForBraceChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.ForLoopChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.SpaceAfterCommentStartChecker" level="warning" enabled="true"></check> | |||
<check class="org.scalastyle.scalariform.ScalaDocChecker" level="warning" enabled="false"> | |||
<parameters> | |||
<parameter name="ignoreRegex"><![CDATA[^$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.DisallowSpaceAfterTokenChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.DisallowSpaceBeforeTokenChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.EnsureSingleSpaceAfterTokenChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.EnsureSingleSpaceBeforeTokenChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.scalariform.NonASCIICharacterChecker" level="warning" enabled="false"></check> | |||
<check class="org.scalastyle.file.IndentationChecker" level="warning" enabled="false"> | |||
<parameters> | |||
<parameter name="tabSize"><![CDATA[2]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.FieldNamesChecker" level="warning" enabled="false"> | |||
<parameters> | |||
<parameter name="regex"><![CDATA[^[a-z][A-Za-z]*$]]></parameter> | |||
<parameter name="objectFieldRegex"><![CDATA[^[A-Z][A-Za-z]*$]]></parameter> | |||
</parameters> | |||
</check> | |||
<check class="org.scalastyle.scalariform.TodoCommentChecker" level="warning" enabled="true"> | |||
<parameters> | |||
<parameter name="words"><![CDATA[TODO|FIXME]]></parameter> | |||
</parameters> | |||
</check> | |||
</scalastyle> |
Oops, something went wrong.
0 comments on commit
47f7a97