Page MenuHomePhabricator

D19717.diff
No OneTemporary

D19717.diff

This file is larger than 256 KB, so syntax highlighting was skipped.
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -97,9 +97,6 @@
'ArcanistBuildRef' => 'ref/ArcanistBuildRef.php',
'ArcanistBundle' => 'parser/ArcanistBundle.php',
'ArcanistBundleTestCase' => 'parser/__tests__/ArcanistBundleTestCase.php',
- 'ArcanistCSSLintLinter' => 'lint/linter/ArcanistCSSLintLinter.php',
- 'ArcanistCSSLintLinterTestCase' => 'lint/linter/__tests__/ArcanistCSSLintLinterTestCase.php',
- 'ArcanistCSharpLinter' => 'lint/linter/ArcanistCSharpLinter.php',
'ArcanistCallConduitWorkflow' => 'workflow/ArcanistCallConduitWorkflow.php',
'ArcanistCallParenthesesXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistCallParenthesesXHPASTLinterRule.php',
'ArcanistCallParenthesesXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistCallParenthesesXHPASTLinterRuleTestCase.php',
@@ -120,10 +117,6 @@
'ArcanistClassNameLiteralXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistClassNameLiteralXHPASTLinterRuleTestCase.php',
'ArcanistCloseRevisionWorkflow' => 'workflow/ArcanistCloseRevisionWorkflow.php',
'ArcanistCloseWorkflow' => 'workflow/ArcanistCloseWorkflow.php',
- 'ArcanistClosureLinter' => 'lint/linter/ArcanistClosureLinter.php',
- 'ArcanistClosureLinterTestCase' => 'lint/linter/__tests__/ArcanistClosureLinterTestCase.php',
- 'ArcanistCoffeeLintLinter' => 'lint/linter/ArcanistCoffeeLintLinter.php',
- 'ArcanistCoffeeLintLinterTestCase' => 'lint/linter/__tests__/ArcanistCoffeeLintLinterTestCase.php',
'ArcanistCommentRemover' => 'parser/ArcanistCommentRemover.php',
'ArcanistCommentRemoverTestCase' => 'parser/__tests__/ArcanistCommentRemoverTestCase.php',
'ArcanistCommentSpacingXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistCommentSpacingXHPASTLinterRule.php',
@@ -133,7 +126,6 @@
'ArcanistCommitUpstreamHardpointLoader' => 'loader/ArcanistCommitUpstreamHardpointLoader.php',
'ArcanistCommitWorkflow' => 'workflow/ArcanistCommitWorkflow.php',
'ArcanistCompilerLintRenderer' => 'lint/renderer/ArcanistCompilerLintRenderer.php',
- 'ArcanistComposerLinter' => 'lint/linter/ArcanistComposerLinter.php',
'ArcanistComprehensiveLintEngine' => 'lint/engine/ArcanistComprehensiveLintEngine.php',
'ArcanistConcatenationOperatorXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistConcatenationOperatorXHPASTLinterRule.php',
'ArcanistConcatenationOperatorXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistConcatenationOperatorXHPASTLinterRuleTestCase.php',
@@ -155,10 +147,6 @@
'ArcanistControlStatementSpacingXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistControlStatementSpacingXHPASTLinterRule.php',
'ArcanistControlStatementSpacingXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistControlStatementSpacingXHPASTLinterRuleTestCase.php',
'ArcanistCoverWorkflow' => 'workflow/ArcanistCoverWorkflow.php',
- 'ArcanistCppcheckLinter' => 'lint/linter/ArcanistCppcheckLinter.php',
- 'ArcanistCppcheckLinterTestCase' => 'lint/linter/__tests__/ArcanistCppcheckLinterTestCase.php',
- 'ArcanistCpplintLinter' => 'lint/linter/ArcanistCpplintLinter.php',
- 'ArcanistCpplintLinterTestCase' => 'lint/linter/__tests__/ArcanistCpplintLinterTestCase.php',
'ArcanistCurlyBraceArrayIndexXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistCurlyBraceArrayIndexXHPASTLinterRule.php',
'ArcanistCurlyBraceArrayIndexXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistCurlyBraceArrayIndexXHPASTLinterRuleTestCase.php',
'ArcanistDeclarationParenthesesXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistDeclarationParenthesesXHPASTLinterRule.php',
@@ -202,8 +190,6 @@
'ArcanistExitExpressionXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistExitExpressionXHPASTLinterRule.php',
'ArcanistExitExpressionXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistExitExpressionXHPASTLinterRuleTestCase.php',
'ArcanistExportWorkflow' => 'workflow/ArcanistExportWorkflow.php',
- 'ArcanistExternalLinter' => 'lint/linter/ArcanistExternalLinter.php',
- 'ArcanistExternalLinterTestCase' => 'lint/linter/__tests__/ArcanistExternalLinterTestCase.php',
'ArcanistExtractUseXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistExtractUseXHPASTLinterRule.php',
'ArcanistExtractUseXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistExtractUseXHPASTLinterRuleTestCase.php',
'ArcanistFeatureWorkflow' => 'workflow/ArcanistFeatureWorkflow.php',
@@ -214,13 +200,10 @@
'ArcanistFilenameLinterTestCase' => 'lint/linter/__tests__/ArcanistFilenameLinterTestCase.php',
'ArcanistFilesystemConfigurationSource' => 'config/source/ArcanistFilesystemConfigurationSource.php',
'ArcanistFlagWorkflow' => 'workflow/ArcanistFlagWorkflow.php',
- 'ArcanistFlake8Linter' => 'lint/linter/ArcanistFlake8Linter.php',
- 'ArcanistFlake8LinterTestCase' => 'lint/linter/__tests__/ArcanistFlake8LinterTestCase.php',
'ArcanistFormattedStringXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistFormattedStringXHPASTLinterRule.php',
'ArcanistFormattedStringXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistFormattedStringXHPASTLinterRuleTestCase.php',
'ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRule.php',
'ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRuleTestCase.php',
- 'ArcanistFutureLinter' => 'lint/linter/ArcanistFutureLinter.php',
'ArcanistGeneratedLinter' => 'lint/linter/ArcanistGeneratedLinter.php',
'ArcanistGeneratedLinterTestCase' => 'lint/linter/__tests__/ArcanistGeneratedLinterTestCase.php',
'ArcanistGetConfigWorkflow' => 'toolset/workflow/ArcanistGetConfigWorkflow.php',
@@ -233,12 +216,8 @@
'ArcanistGitWorkingCopy' => 'workingcopy/ArcanistGitWorkingCopy.php',
'ArcanistGlobalVariableXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistGlobalVariableXHPASTLinterRule.php',
'ArcanistGlobalVariableXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistGlobalVariableXHPASTLinterRuleTestCase.php',
- 'ArcanistGoLintLinter' => 'lint/linter/ArcanistGoLintLinter.php',
- 'ArcanistGoLintLinterTestCase' => 'lint/linter/__tests__/ArcanistGoLintLinterTestCase.php',
'ArcanistGoTestResultParser' => 'unit/parser/ArcanistGoTestResultParser.php',
'ArcanistGoTestResultParserTestCase' => 'unit/parser/__tests__/ArcanistGoTestResultParserTestCase.php',
- 'ArcanistHLintLinter' => 'lint/linter/ArcanistHLintLinter.php',
- 'ArcanistHLintLinterTestCase' => 'lint/linter/__tests__/ArcanistHLintLinterTestCase.php',
'ArcanistHardpointLoader' => 'loader/ArcanistHardpointLoader.php',
'ArcanistHelpWorkflow' => 'toolset/workflow/ArcanistHelpWorkflow.php',
'ArcanistHexadecimalNumericScalarCasingXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistHexadecimalNumericScalarCasingXHPASTLinterRule.php',
@@ -253,7 +232,7 @@
'ArcanistImplicitFallthroughXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistImplicitFallthroughXHPASTLinterRuleTestCase.php',
'ArcanistImplicitVisibilityXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistImplicitVisibilityXHPASTLinterRule.php',
'ArcanistImplicitVisibilityXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistImplicitVisibilityXHPASTLinterRuleTestCase.php',
- 'ArcanistInlineHTMLXHPASTLinterRule' => 'lint/linter/ArcanistInlineHTMLXHPASTLinterRule.php',
+ 'ArcanistInlineHTMLXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistInlineHTMLXHPASTLinterRule.php',
'ArcanistInlineHTMLXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistInlineHTMLXHPASTLinterRuleTestCase.php',
'ArcanistInnerFunctionXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistInnerFunctionXHPASTLinterRule.php',
'ArcanistInnerFunctionXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistInnerFunctionXHPASTLinterRuleTestCase.php',
@@ -272,16 +251,10 @@
'ArcanistInvalidOctalNumericScalarXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistInvalidOctalNumericScalarXHPASTLinterRuleTestCase.php',
'ArcanistIsAShouldBeInstanceOfXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistIsAShouldBeInstanceOfXHPASTLinterRule.php',
'ArcanistIsAShouldBeInstanceOfXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistIsAShouldBeInstanceOfXHPASTLinterRuleTestCase.php',
- 'ArcanistJSHintLinter' => 'lint/linter/ArcanistJSHintLinter.php',
- 'ArcanistJSHintLinterTestCase' => 'lint/linter/__tests__/ArcanistJSHintLinterTestCase.php',
- 'ArcanistJSONLintLinter' => 'lint/linter/ArcanistJSONLintLinter.php',
- 'ArcanistJSONLintLinterTestCase' => 'lint/linter/__tests__/ArcanistJSONLintLinterTestCase.php',
'ArcanistJSONLintRenderer' => 'lint/renderer/ArcanistJSONLintRenderer.php',
'ArcanistJSONLinter' => 'lint/linter/ArcanistJSONLinter.php',
'ArcanistJSONLinterTestCase' => 'lint/linter/__tests__/ArcanistJSONLinterTestCase.php',
'ArcanistJSONUnitSink' => 'unit/sink/ArcanistJSONUnitSink.php',
- 'ArcanistJscsLinter' => 'lint/linter/ArcanistJscsLinter.php',
- 'ArcanistJscsLinterTestCase' => 'lint/linter/__tests__/ArcanistJscsLinterTestCase.php',
'ArcanistKeywordCasingXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistKeywordCasingXHPASTLinterRule.php',
'ArcanistKeywordCasingXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistKeywordCasingXHPASTLinterRuleTestCase.php',
'ArcanistLambdaFuncFunctionXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistLambdaFuncFunctionXHPASTLinterRule.php',
@@ -290,8 +263,6 @@
'ArcanistLandWorkflow' => 'workflow/ArcanistLandWorkflow.php',
'ArcanistLanguageConstructParenthesesXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistLanguageConstructParenthesesXHPASTLinterRule.php',
'ArcanistLanguageConstructParenthesesXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistLanguageConstructParenthesesXHPASTLinterRuleTestCase.php',
- 'ArcanistLesscLinter' => 'lint/linter/ArcanistLesscLinter.php',
- 'ArcanistLesscLinterTestCase' => 'lint/linter/__tests__/ArcanistLesscLinterTestCase.php',
'ArcanistLiberateWorkflow' => 'workflow/ArcanistLiberateWorkflow.php',
'ArcanistLintEngine' => 'lint/engine/ArcanistLintEngine.php',
'ArcanistLintMessage' => 'lint/ArcanistLintMessage.php',
@@ -348,8 +319,6 @@
'ArcanistNoneLintRenderer' => 'lint/renderer/ArcanistNoneLintRenderer.php',
'ArcanistObjectOperatorSpacingXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistObjectOperatorSpacingXHPASTLinterRule.php',
'ArcanistObjectOperatorSpacingXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistObjectOperatorSpacingXHPASTLinterRuleTestCase.php',
- 'ArcanistPEP8Linter' => 'lint/linter/ArcanistPEP8Linter.php',
- 'ArcanistPEP8LinterTestCase' => 'lint/linter/__tests__/ArcanistPEP8LinterTestCase.php',
'ArcanistPHPCloseTagXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistPHPCloseTagXHPASTLinterRule.php',
'ArcanistPHPCloseTagXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistPHPCloseTagXHPASTLinterRuleTestCase.php',
'ArcanistPHPCompatibilityXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php',
@@ -371,10 +340,6 @@
'ArcanistPasteWorkflow' => 'workflow/ArcanistPasteWorkflow.php',
'ArcanistPatchWorkflow' => 'workflow/ArcanistPatchWorkflow.php',
'ArcanistPhageToolset' => 'toolset/ArcanistPhageToolset.php',
- 'ArcanistPhpLinter' => 'lint/linter/ArcanistPhpLinter.php',
- 'ArcanistPhpLinterTestCase' => 'lint/linter/__tests__/ArcanistPhpLinterTestCase.php',
- 'ArcanistPhpcsLinter' => 'lint/linter/ArcanistPhpcsLinter.php',
- 'ArcanistPhpcsLinterTestCase' => 'lint/linter/__tests__/ArcanistPhpcsLinterTestCase.php',
'ArcanistPhpunitTestResultParser' => 'unit/parser/ArcanistPhpunitTestResultParser.php',
'ArcanistPhrequentWorkflow' => 'workflow/ArcanistPhrequentWorkflow.php',
'ArcanistPhutilLibraryLinter' => 'lint/linter/ArcanistPhutilLibraryLinter.php',
@@ -389,12 +354,6 @@
'ArcanistPromptsWorkflow' => 'toolset/workflow/ArcanistPromptsWorkflow.php',
'ArcanistPublicPropertyXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistPublicPropertyXHPASTLinterRule.php',
'ArcanistPublicPropertyXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistPublicPropertyXHPASTLinterRuleTestCase.php',
- 'ArcanistPuppetLintLinter' => 'lint/linter/ArcanistPuppetLintLinter.php',
- 'ArcanistPuppetLintLinterTestCase' => 'lint/linter/__tests__/ArcanistPuppetLintLinterTestCase.php',
- 'ArcanistPyFlakesLinter' => 'lint/linter/ArcanistPyFlakesLinter.php',
- 'ArcanistPyFlakesLinterTestCase' => 'lint/linter/__tests__/ArcanistPyFlakesLinterTestCase.php',
- 'ArcanistPyLintLinter' => 'lint/linter/ArcanistPyLintLinter.php',
- 'ArcanistPyLintLinterTestCase' => 'lint/linter/__tests__/ArcanistPyLintLinterTestCase.php',
'ArcanistRaggedClassTreeEdgeXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistRaggedClassTreeEdgeXHPASTLinterRule.php',
'ArcanistRaggedClassTreeEdgeXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistRaggedClassTreeEdgeXHPASTLinterRuleTestCase.php',
'ArcanistRef' => 'ref/ArcanistRef.php',
@@ -412,13 +371,8 @@
'ArcanistRevertWorkflow' => 'workflow/ArcanistRevertWorkflow.php',
'ArcanistRevisionRef' => 'ref/ArcanistRevisionRef.php',
'ArcanistRevisionRefSource' => 'ref/ArcanistRevisionRefSource.php',
- 'ArcanistRuboCopLinter' => 'lint/linter/ArcanistRuboCopLinter.php',
- 'ArcanistRuboCopLinterTestCase' => 'lint/linter/__tests__/ArcanistRuboCopLinterTestCase.php',
- 'ArcanistRubyLinter' => 'lint/linter/ArcanistRubyLinter.php',
- 'ArcanistRubyLinterTestCase' => 'lint/linter/__tests__/ArcanistRubyLinterTestCase.php',
'ArcanistRuntimeConfigurationSource' => 'config/source/ArcanistRuntimeConfigurationSource.php',
'ArcanistScalarConfigOption' => 'config/option/ArcanistScalarConfigOption.php',
- 'ArcanistScriptAndRegexLinter' => 'lint/linter/ArcanistScriptAndRegexLinter.php',
'ArcanistSelfClassReferenceXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistSelfClassReferenceXHPASTLinterRule.php',
'ArcanistSelfClassReferenceXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistSelfClassReferenceXHPASTLinterRuleTestCase.php',
'ArcanistSelfMemberReferenceXHPASTLinterRule' => 'lint/linter/xhpast/rules/ArcanistSelfMemberReferenceXHPASTLinterRule.php',
@@ -516,8 +470,6 @@
'ArcanistXHPASTLinterRule' => 'lint/linter/xhpast/ArcanistXHPASTLinterRule.php',
'ArcanistXHPASTLinterRuleTestCase' => 'lint/linter/xhpast/rules/__tests__/ArcanistXHPASTLinterRuleTestCase.php',
'ArcanistXHPASTLinterTestCase' => 'lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php',
- 'ArcanistXMLLinter' => 'lint/linter/ArcanistXMLLinter.php',
- 'ArcanistXMLLinterTestCase' => 'lint/linter/__tests__/ArcanistXMLLinterTestCase.php',
'ArcanistXUnitTestResultParser' => 'unit/parser/ArcanistXUnitTestResultParser.php',
'BaseHTTPFuture' => 'future/http/BaseHTTPFuture.php',
'CaseInsensitiveArray' => 'utils/CaseInsensitiveArray.php',
@@ -1201,9 +1153,6 @@
'ArcanistBuildRef' => 'Phobject',
'ArcanistBundle' => 'Phobject',
'ArcanistBundleTestCase' => 'PhutilTestCase',
- 'ArcanistCSSLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistCSSLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistCSharpLinter' => 'ArcanistLinter',
'ArcanistCallConduitWorkflow' => 'ArcanistWorkflow',
'ArcanistCallParenthesesXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistCallParenthesesXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
@@ -1224,10 +1173,6 @@
'ArcanistClassNameLiteralXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistCloseRevisionWorkflow' => 'ArcanistWorkflow',
'ArcanistCloseWorkflow' => 'ArcanistWorkflow',
- 'ArcanistClosureLinter' => 'ArcanistExternalLinter',
- 'ArcanistClosureLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistCoffeeLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistCoffeeLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistCommentRemover' => 'Phobject',
'ArcanistCommentRemoverTestCase' => 'PhutilTestCase',
'ArcanistCommentSpacingXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
@@ -1237,7 +1182,6 @@
'ArcanistCommitUpstreamHardpointLoader' => 'ArcanistHardpointLoader',
'ArcanistCommitWorkflow' => 'ArcanistWorkflow',
'ArcanistCompilerLintRenderer' => 'ArcanistLintRenderer',
- 'ArcanistComposerLinter' => 'ArcanistLinter',
'ArcanistComprehensiveLintEngine' => 'ArcanistLintEngine',
'ArcanistConcatenationOperatorXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistConcatenationOperatorXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
@@ -1259,10 +1203,6 @@
'ArcanistControlStatementSpacingXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistControlStatementSpacingXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistCoverWorkflow' => 'ArcanistWorkflow',
- 'ArcanistCppcheckLinter' => 'ArcanistExternalLinter',
- 'ArcanistCppcheckLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistCpplintLinter' => 'ArcanistExternalLinter',
- 'ArcanistCpplintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistCurlyBraceArrayIndexXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistCurlyBraceArrayIndexXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistDeclarationParenthesesXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
@@ -1306,8 +1246,6 @@
'ArcanistExitExpressionXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistExitExpressionXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistExportWorkflow' => 'ArcanistWorkflow',
- 'ArcanistExternalLinter' => 'ArcanistFutureLinter',
- 'ArcanistExternalLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistExtractUseXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistExtractUseXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistFeatureWorkflow' => 'ArcanistWorkflow',
@@ -1318,13 +1256,10 @@
'ArcanistFilenameLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistFilesystemConfigurationSource' => 'ArcanistDictionaryConfigurationSource',
'ArcanistFlagWorkflow' => 'ArcanistWorkflow',
- 'ArcanistFlake8Linter' => 'ArcanistExternalLinter',
- 'ArcanistFlake8LinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistFormattedStringXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistFormattedStringXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
- 'ArcanistFutureLinter' => 'ArcanistLinter',
'ArcanistGeneratedLinter' => 'ArcanistLinter',
'ArcanistGeneratedLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistGetConfigWorkflow' => 'ArcanistWorkflow',
@@ -1337,12 +1272,8 @@
'ArcanistGitWorkingCopy' => 'ArcanistWorkingCopy',
'ArcanistGlobalVariableXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistGlobalVariableXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
- 'ArcanistGoLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistGoLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistGoTestResultParser' => 'ArcanistTestResultParser',
'ArcanistGoTestResultParserTestCase' => 'PhutilTestCase',
- 'ArcanistHLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistHLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistHardpointLoader' => 'Phobject',
'ArcanistHelpWorkflow' => 'ArcanistWorkflow',
'ArcanistHexadecimalNumericScalarCasingXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
@@ -1376,16 +1307,10 @@
'ArcanistInvalidOctalNumericScalarXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistIsAShouldBeInstanceOfXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistIsAShouldBeInstanceOfXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
- 'ArcanistJSHintLinter' => 'ArcanistExternalLinter',
- 'ArcanistJSHintLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistJSONLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistJSONLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistJSONLintRenderer' => 'ArcanistLintRenderer',
'ArcanistJSONLinter' => 'ArcanistLinter',
'ArcanistJSONLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistJSONUnitSink' => 'ArcanistUnitSink',
- 'ArcanistJscsLinter' => 'ArcanistExternalLinter',
- 'ArcanistJscsLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistKeywordCasingXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistKeywordCasingXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistLambdaFuncFunctionXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
@@ -1394,8 +1319,6 @@
'ArcanistLandWorkflow' => 'ArcanistWorkflow',
'ArcanistLanguageConstructParenthesesXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistLanguageConstructParenthesesXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
- 'ArcanistLesscLinter' => 'ArcanistExternalLinter',
- 'ArcanistLesscLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistLiberateWorkflow' => 'ArcanistWorkflow',
'ArcanistLintEngine' => 'Phobject',
'ArcanistLintMessage' => 'Phobject',
@@ -1452,8 +1375,6 @@
'ArcanistNoneLintRenderer' => 'ArcanistLintRenderer',
'ArcanistObjectOperatorSpacingXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistObjectOperatorSpacingXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
- 'ArcanistPEP8Linter' => 'ArcanistExternalLinter',
- 'ArcanistPEP8LinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistPHPCloseTagXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistPHPCloseTagXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistPHPCompatibilityXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
@@ -1475,10 +1396,6 @@
'ArcanistPasteWorkflow' => 'ArcanistWorkflow',
'ArcanistPatchWorkflow' => 'ArcanistWorkflow',
'ArcanistPhageToolset' => 'ArcanistToolset',
- 'ArcanistPhpLinter' => 'ArcanistExternalLinter',
- 'ArcanistPhpLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistPhpcsLinter' => 'ArcanistExternalLinter',
- 'ArcanistPhpcsLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistPhpunitTestResultParser' => 'ArcanistTestResultParser',
'ArcanistPhrequentWorkflow' => 'ArcanistWorkflow',
'ArcanistPhutilLibraryLinter' => 'ArcanistLinter',
@@ -1493,12 +1410,6 @@
'ArcanistPromptsWorkflow' => 'ArcanistWorkflow',
'ArcanistPublicPropertyXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistPublicPropertyXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
- 'ArcanistPuppetLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistPuppetLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistPyFlakesLinter' => 'ArcanistExternalLinter',
- 'ArcanistPyFlakesLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistPyLintLinter' => 'ArcanistExternalLinter',
- 'ArcanistPyLintLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistRaggedClassTreeEdgeXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistRaggedClassTreeEdgeXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistRef' => 'Phobject',
@@ -1516,13 +1427,8 @@
'ArcanistRevertWorkflow' => 'ArcanistWorkflow',
'ArcanistRevisionRef' => 'ArcanistRef',
'ArcanistRevisionRefSource' => 'Phobject',
- 'ArcanistRuboCopLinter' => 'ArcanistExternalLinter',
- 'ArcanistRuboCopLinterTestCase' => 'ArcanistExternalLinterTestCase',
- 'ArcanistRubyLinter' => 'ArcanistExternalLinter',
- 'ArcanistRubyLinterTestCase' => 'ArcanistExternalLinterTestCase',
'ArcanistRuntimeConfigurationSource' => 'ArcanistDictionaryConfigurationSource',
'ArcanistScalarConfigOption' => 'ArcanistConfigOption',
- 'ArcanistScriptAndRegexLinter' => 'ArcanistLinter',
'ArcanistSelfClassReferenceXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
'ArcanistSelfClassReferenceXHPASTLinterRuleTestCase' => 'ArcanistXHPASTLinterRuleTestCase',
'ArcanistSelfMemberReferenceXHPASTLinterRule' => 'ArcanistXHPASTLinterRule',
@@ -1620,8 +1526,6 @@
'ArcanistXHPASTLinterRule' => 'Phobject',
'ArcanistXHPASTLinterRuleTestCase' => 'ArcanistLinterTestCase',
'ArcanistXHPASTLinterTestCase' => 'ArcanistLinterTestCase',
- 'ArcanistXMLLinter' => 'ArcanistLinter',
- 'ArcanistXMLLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistXUnitTestResultParser' => 'Phobject',
'BaseHTTPFuture' => 'Future',
'CaseInsensitiveArray' => 'PhutilArray',
diff --git a/src/lint/linter/ArcanistCSSLintLinter.php b/src/lint/linter/ArcanistCSSLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistCSSLintLinter.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-/**
- * Uses "CSS Lint" to detect checkstyle errors in CSS code.
- */
-final class ArcanistCSSLintLinter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return 'CSSLint';
- }
-
- public function getInfoURI() {
- return 'http://csslint.net';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use `%s` to detect issues with CSS source files.',
- 'csslint');
- }
-
- public function getLinterName() {
- return 'CSSLint';
- }
-
- public function getLinterConfigurationName() {
- return 'csslint';
- }
-
- protected function getMandatoryFlags() {
- return array(
- '--format=lint-xml',
- );
- }
-
- public function getDefaultBinary() {
- return 'csslint';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^v(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install %s using `%s`.', 'CSSLint',
- 'npm install -g csslint');
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $report_dom = new DOMDocument();
- $ok = @$report_dom->loadXML($stdout);
-
- if (!$ok) {
- return false;
- }
-
- $files = $report_dom->getElementsByTagName('file');
- $messages = array();
-
- foreach ($files as $file) {
- foreach ($file->childNodes as $child) {
- $line = $child->getAttribute('line');
- $char = $child->getAttribute('char');
- $original_text = $child->getAttribute('evidence');
-
- if ($line === '') {
- $line = null;
- }
-
- if ($char === '') {
- $char = null;
- } else {
- $original_text = substr($original_text, $char - 1);
- }
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($line)
- ->setChar($char)
- ->setCode($this->getLinterName())
- ->setName($this->getLinterName())
- ->setDescription($child->getAttribute('reason'))
- ->setOriginalText($original_text);
-
- switch ($child->getAttribute('severity')) {
- case 'error':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
-
- case 'warning':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- break;
-
- default:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
- }
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- // NOTE: We can't figure out which rule generated each message, so we
- // can not customize severities. I opened a pull request to add this
- // ability; see:
- //
- // https://github.com/stubbornella/csslint/pull/409
- throw new Exception(
- pht(
- "%s does not currently support custom severity levels, because ".
- "rules can't be identified from messages in output.",
- 'CSSLint'));
- }
-
-}
diff --git a/src/lint/linter/ArcanistCSharpLinter.php b/src/lint/linter/ArcanistCSharpLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistCSharpLinter.php
+++ /dev/null
@@ -1,261 +0,0 @@
-<?php
-
-/**
- * C# linter for Arcanist.
- */
-final class ArcanistCSharpLinter extends ArcanistLinter {
-
- private $runtimeEngine;
- private $cslintEngine;
- private $cslintHintPath;
- private $loaded;
- private $discoveryMap;
- private $futures;
-
- const SUPPORTED_VERSION = 1;
-
- public function getLinterName() {
- return 'C#';
- }
-
- public function getLinterConfigurationName() {
- return 'csharp';
- }
-
- public function getLinterConfigurationOptions() {
- $options = parent::getLinterConfigurationOptions();
-
- $options['discovery'] = array(
- 'type' => 'map<string, list<string>>',
- 'help' => pht('Provide a discovery map.'),
- );
-
-
- // TODO: This should probably be replaced with "bin" when this moves
- // to extend ExternalLinter.
-
- $options['binary'] = array(
- 'type' => 'string',
- 'help' => pht('Override default binary.'),
- );
-
- return $options;
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'discovery':
- $this->discoveryMap = $value;
- return;
- case 'binary':
- $this->cslintHintPath = $value;
- return;
- }
- parent::setLinterConfigurationValue($key, $value);
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- return $code;
- }
-
- public function setCustomSeverityMap(array $map) {
- foreach ($map as $code => $severity) {
- if (substr($code, 0, 2) === 'SA' && $severity == 'disabled') {
- throw new Exception(
- pht(
- "In order to keep StyleCop integration with IDEs and other tools ".
- "consistent with Arcanist results, you aren't permitted to ".
- "disable StyleCop rules within '%s'. Instead configure the ".
- "severity using the StyleCop settings dialog (usually accessible ".
- "from within your IDE). StyleCop settings for your project will ".
- "be used when linting for Arcanist.",
- '.arclint'));
- }
- }
- return parent::setCustomSeverityMap($map);
- }
-
- /**
- * Determines what executables and lint paths to use. Between platforms
- * this also changes whether the lint engine is run under .NET or Mono. It
- * also ensures that all of the required binaries are available for the lint
- * to run successfully.
- *
- * @return void
- */
- private function loadEnvironment() {
- if ($this->loaded) {
- return;
- }
-
- // Determine runtime engine (.NET or Mono).
- if (phutil_is_windows()) {
- $this->runtimeEngine = '';
- } else if (Filesystem::binaryExists('mono')) {
- $this->runtimeEngine = 'mono ';
- } else {
- throw new Exception(
- pht('Unable to find Mono and you are not on Windows!'));
- }
-
- // Determine cslint path.
- $cslint = $this->cslintHintPath;
- if ($cslint !== null && file_exists($cslint)) {
- $this->cslintEngine = Filesystem::resolvePath($cslint);
- } else if (Filesystem::binaryExists('cslint.exe')) {
- $this->cslintEngine = 'cslint.exe';
- } else {
- throw new Exception(pht('Unable to locate %s.', 'cslint'));
- }
-
- // Determine cslint version.
- $ver_future = new ExecFuture(
- '%C -v',
- $this->runtimeEngine.$this->cslintEngine);
- list($err, $stdout, $stderr) = $ver_future->resolve();
- if ($err !== 0) {
- throw new Exception(
- pht(
- 'You are running an old version of %s. Please '.
- 'upgrade to version %s.',
- 'cslint',
- self::SUPPORTED_VERSION));
- }
- $ver = (int)$stdout;
- if ($ver < self::SUPPORTED_VERSION) {
- throw new Exception(
- pht(
- 'You are running an old version of %s. Please '.
- 'upgrade to version %s.',
- 'cslint',
- self::SUPPORTED_VERSION));
- } else if ($ver > self::SUPPORTED_VERSION) {
- throw new Exception(
- pht(
- 'Arcanist does not support this version of %s (it is newer). '.
- 'You can try upgrading Arcanist with `%s`.',
- 'cslint',
- 'arc upgrade'));
- }
-
- $this->loaded = true;
- }
-
- public function lintPath($path) {}
-
- public function willLintPaths(array $paths) {
- $this->loadEnvironment();
-
- $futures = array();
-
- // Bulk linting up into futures, where the number of files
- // is based on how long the command is.
- $current_paths = array();
- foreach ($paths as $path) {
- // If the current paths for the command, plus the next path
- // is greater than 6000 characters (less than the Windows
- // command line limit), then finalize this future and add it.
- $total = 0;
- foreach ($current_paths as $current_path) {
- $total += strlen($current_path) + 3; // Quotes and space.
- }
- if ($total + strlen($path) > 6000) {
- // %s won't pass through the JSON correctly
- // under Windows. This is probably because not only
- // does the JSON have quotation marks in the content,
- // but because there'll be a lot of escaping and
- // double escaping because the JSON also contains
- // regular expressions. cslint supports passing the
- // settings JSON through base64-encoded to mitigate
- // this issue.
- $futures[] = new ExecFuture(
- '%C --settings-base64=%s -r=. %Ls',
- $this->runtimeEngine.$this->cslintEngine,
- base64_encode(json_encode($this->discoveryMap)),
- $current_paths);
- $current_paths = array();
- }
-
- // Append the path to the current paths array.
- $current_paths[] = $this->getEngine()->getFilePathOnDisk($path);
- }
-
- // If we still have paths left in current paths, then we need to create
- // a future for those too.
- if (count($current_paths) > 0) {
- $futures[] = new ExecFuture(
- '%C --settings-base64=%s -r=. %Ls',
- $this->runtimeEngine.$this->cslintEngine,
- base64_encode(json_encode($this->discoveryMap)),
- $current_paths);
- $current_paths = array();
- }
-
- $this->futures = $futures;
- }
-
- public function didLintPaths(array $paths) {
- if ($this->futures) {
- $futures = id(new FutureIterator($this->futures))
- ->limit(8);
- foreach ($futures as $future) {
- $this->resolveFuture($future);
- }
- $this->futures = array();
- }
- }
-
- protected function resolveFuture(Future $future) {
- list($stdout) = $future->resolvex();
- $all_results = json_decode($stdout);
- foreach ($all_results as $results) {
- if ($results === null || $results->Issues === null) {
- return;
- }
- foreach ($results->Issues as $issue) {
- $message = new ArcanistLintMessage();
- $message->setPath($results->FileName);
- $message->setLine($issue->LineNumber);
- $message->setCode($issue->Index->Code);
- $message->setName($issue->Index->Name);
- $message->setChar($issue->Column);
- $message->setOriginalText($issue->OriginalText);
- $message->setReplacementText($issue->ReplacementText);
- $desc = @vsprintf($issue->Index->Message, $issue->Parameters);
- if ($desc === false) {
- $desc = $issue->Index->Message;
- }
- $message->setDescription($desc);
- $severity = ArcanistLintSeverity::SEVERITY_ADVICE;
- switch ($issue->Index->Severity) {
- case 0:
- $severity = ArcanistLintSeverity::SEVERITY_ADVICE;
- break;
- case 1:
- $severity = ArcanistLintSeverity::SEVERITY_AUTOFIX;
- break;
- case 2:
- $severity = ArcanistLintSeverity::SEVERITY_WARNING;
- break;
- case 3:
- $severity = ArcanistLintSeverity::SEVERITY_ERROR;
- break;
- case 4:
- $severity = ArcanistLintSeverity::SEVERITY_DISABLED;
- break;
- }
- $severity_override = $this->getLintMessageSeverity($issue->Index->Code);
- if ($severity_override !== null) {
- $severity = $severity_override;
- }
- $message->setSeverity($severity);
- $this->addLintMessage($message);
- }
- }
- }
-
- protected function getDefaultMessageSeverity($code) {
- return null;
- }
-
-}
diff --git a/src/lint/linter/ArcanistClosureLinter.php b/src/lint/linter/ArcanistClosureLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistClosureLinter.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/**
- * Uses `gjslint` to detect errors and potential problems in JavaScript code.
- */
-final class ArcanistClosureLinter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return pht('Closure Linter');
- }
-
- public function getInfoURI() {
- return 'https://developers.google.com/closure/utilities/';
- }
-
- public function getInfoDescription() {
- return pht("Uses Google's Closure Linter to check JavaScript code.");
- }
-
- public function getLinterName() {
- return 'GJSLINT';
- }
-
- public function getLinterConfigurationName() {
- return 'gjslint';
- }
-
- public function getDefaultBinary() {
- return 'gjslint';
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install %s using `%s`.',
- 'gjslint',
- 'pip install closure-linter');
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stdout, false);
- $messages = array();
-
- foreach ($lines as $line) {
- $matches = null;
- if (!preg_match('/^Line (\d+), E:(\d+): (.*)/', $line, $matches)) {
- continue;
- }
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($matches[1])
- ->setName('GJSLINT'.$matches[2])
- ->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR)
- ->setCode($this->getLinterName().$matches[2])
- ->setDescription($matches[3]);
- $messages[] = $message;
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistCoffeeLintLinter.php b/src/lint/linter/ArcanistCoffeeLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistCoffeeLintLinter.php
+++ /dev/null
@@ -1,135 +0,0 @@
-<?php
-
-final class ArcanistCoffeeLintLinter extends ArcanistExternalLinter {
-
- private $config;
-
- public function getInfoName() {
- return 'CoffeeLint';
- }
-
- public function getInfoURI() {
- return 'http://www.coffeelint.org';
- }
-
- public function getInfoDescription() {
- return pht(
- 'CoffeeLint is a style checker that helps keep CoffeeScript '.
- 'code clean and consistent.');
- }
-
- public function getLinterName() {
- return 'COFFEE';
- }
-
- public function getLinterConfigurationName() {
- return 'coffeelint';
- }
-
- public function getDefaultBinary() {
- return 'coffeelint';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install CoffeeLint using `%s`.',
- 'npm install -g coffeelint');
- }
-
- protected function getMandatoryFlags() {
- $options = array(
- '--reporter=raw',
- );
-
- if ($this->config) {
- $options[] = '--file='.$this->config;
- }
-
- return $options;
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'coffeelint.config' => array(
- 'type' => 'optional string',
- 'help' => pht('A custom configuration file.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'coffeelint.config':
- $this->config = $value;
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $messages = array();
- $output = phutil_json_decode($stdout);
-
- // We are only linting a single file.
- if (count($output) != 1) {
- return false;
- }
-
- foreach ($output as $reports) {
- foreach ($reports as $report) {
- // Column number is not provided in the output.
- // See https://github.com/clutchski/coffeelint/issues/87
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($report['lineNumber'])
- ->setCode($this->getLinterName())
- ->setName(ucwords(str_replace('_', ' ', $report['name'])))
- ->setDescription($report['message'])
- ->setOriginalText(idx($report, 'line'));
-
- switch ($report['level']) {
- case 'warn':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- break;
-
- case 'error':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
-
- default:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- break;
- }
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- // NOTE: We can't figure out which rule generated each message, so we
- // can not customize severities.
- throw new Exception(
- pht(
- "CoffeeLint does not currently support custom severity levels, ".
- "because rules can't be identified from messages in output."));
- }
-
-}
diff --git a/src/lint/linter/ArcanistComposerLinter.php b/src/lint/linter/ArcanistComposerLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistComposerLinter.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-final class ArcanistComposerLinter extends ArcanistLinter {
-
- const LINT_OUT_OF_DATE = 1;
-
- public function getInfoName() {
- return pht('Composer Dependency Manager');
- }
-
- public function getInfoDescription() {
- return pht('A linter for Composer related files.');
- }
-
- public function getLinterName() {
- return 'COMPOSER';
- }
-
- public function getLinterConfigurationName() {
- return 'composer';
- }
-
- public function getLintNameMap() {
- return array(
- self::LINT_OUT_OF_DATE => pht('Lock file out-of-date'),
- );
- }
-
- public function lintPath($path) {
- switch (basename($path)) {
- case 'composer.json':
- $this->lintComposerJson($path);
- break;
- case 'composer.lock':
- break;
- }
- }
-
- private function lintComposerJson($path) {
- $composer_hash = md5(Filesystem::readFile(dirname($path).'/composer.json'));
- $composer_lock = phutil_json_decode(
- Filesystem::readFile(dirname($path).'/composer.lock'));
-
- if ($composer_hash !== $composer_lock['hash']) {
- $this->raiseLintAtPath(
- self::LINT_OUT_OF_DATE,
- pht(
- "The '%s' file seems to be out-of-date. ".
- "You probably need to run `%s`.",
- 'composer.lock',
- 'composer update'));
- }
- }
-
-}
diff --git a/src/lint/linter/ArcanistCppcheckLinter.php b/src/lint/linter/ArcanistCppcheckLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistCppcheckLinter.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-
-/**
- * Uses Cppcheck to do basic checks in a C++ file.
- */
-final class ArcanistCppcheckLinter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return 'C++ linter';
- }
-
- public function getInfoURI() {
- return 'http://cppcheck.sourceforge.net';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use `%s` to perform static analysis on C/C++ code.',
- 'cppcheck');
- }
-
- public function getLinterName() {
- return 'cppcheck';
- }
-
- public function getLinterConfigurationName() {
- return 'cppcheck';
- }
-
- public function getDefaultBinary() {
- return 'cppcheck';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^Cppcheck (?P<version>\d+\.\d+)$/';
- if (preg_match($regex, $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install Cppcheck using `%s` or similar.',
- 'apt-get install cppcheck');
- }
-
- protected function getDefaultFlags() {
- return array(
- '-j2',
- '--enable=performance,style,portability,information',
- );
- }
-
- protected function getMandatoryFlags() {
- return array(
- '--quiet',
- '--inline-suppr',
- '--xml',
- '--xml-version=2',
- );
- }
-
- public function shouldExpectCommandErrors() {
- return false;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $dom = new DOMDocument();
- $ok = @$dom->loadXML($stderr);
-
- if (!$ok) {
- return false;
- }
-
- $errors = $dom->getElementsByTagName('error');
- $messages = array();
- foreach ($errors as $error) {
- foreach ($error->getElementsByTagName('location') as $location) {
- $message = new ArcanistLintMessage();
- $message->setPath($location->getAttribute('file'));
- $message->setLine($location->getAttribute('line'));
- $message->setCode('Cppcheck');
- $message->setName($error->getAttribute('id'));
- $message->setDescription($error->getAttribute('msg'));
-
- switch ($error->getAttribute('severity')) {
- case 'error':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
-
- default:
- if ($error->getAttribute('inconclusive')) {
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- } else {
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- }
- break;
- }
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistCpplintLinter.php b/src/lint/linter/ArcanistCpplintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistCpplintLinter.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/**
- * Uses Google's `cpplint.py` to check code.
- */
-final class ArcanistCpplintLinter extends ArcanistExternalLinter {
-
- public function getLinterName() {
- return 'C++ Google\'s Styleguide';
- }
-
- public function getLinterConfigurationName() {
- return 'cpplint';
- }
-
- public function getDefaultBinary() {
- return 'cpplint.py';
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install cpplint.py using `%s`, and place it in your path with the '.
- 'appropriate permissions set.',
- 'wget https://raw.github.com'.
- '/google/styleguide/gh-pages/cpplint/cpplint.py');
- }
-
- protected function getDefaultMessageSeverity($code) {
- return ArcanistLintSeverity::SEVERITY_WARNING;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = explode("\n", $stderr);
-
- $messages = array();
- foreach ($lines as $line) {
- $line = trim($line);
- $matches = null;
- $regex = '/(\d+):\s*(.*)\s*\[(.*)\] \[(\d+)\]$/';
- if (!preg_match($regex, $line, $matches)) {
- continue;
- }
- foreach ($matches as $key => $match) {
- $matches[$key] = trim($match);
- }
-
- $severity = $this->getLintMessageSeverity($matches[3]);
-
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches[1]);
- $message->setCode($matches[3]);
- $message->setName($matches[3]);
- $message->setDescription($matches[2]);
- $message->setSeverity($severity);
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('@^[a-z_]+/[a-z0-9_+]+$@', $code)) {
- throw new Exception(
- pht(
- 'Unrecognized lint message code "%s". Expected a valid cpplint '.
- 'lint code like "%s" or "%s".',
- $code,
- 'build/include_order',
- 'whitespace/braces'));
- }
-
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistExternalLinter.php b/src/lint/linter/ArcanistExternalLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistExternalLinter.php
+++ /dev/null
@@ -1,570 +0,0 @@
-<?php
-
-/**
- * Base class for linters which operate by invoking an external program and
- * parsing results.
- *
- * @task bin Interpreters, Binaries and Flags
- * @task parse Parsing Linter Output
- * @task exec Executing the Linter
- */
-abstract class ArcanistExternalLinter extends ArcanistFutureLinter {
-
- private $bin;
- private $interpreter;
- private $flags;
- private $versionRequirement;
-
-
-/* -( Interpreters, Binaries and Flags )----------------------------------- */
-
- /**
- * Return the default binary name or binary path where the external linter
- * lives. This can either be a binary name which is expected to be installed
- * in PATH (like "jshint"), or a relative path from the project root
- * (like "resources/support/bin/linter") or an absolute path.
- *
- * If the binary needs an interpreter (like "python" or "node"), you should
- * also override @{method:shouldUseInterpreter} and provide the interpreter
- * in @{method:getDefaultInterpreter}.
- *
- * @return string Default binary to execute.
- * @task bin
- */
- abstract public function getDefaultBinary();
-
- /**
- * Return a human-readable string describing how to install the linter. This
- * is normally something like "Install such-and-such by running `npm install
- * -g such-and-such`.", but will differ from linter to linter.
- *
- * @return string Human readable install instructions
- * @task bin
- */
- abstract public function getInstallInstructions();
-
- /**
- * Return a human-readable string describing how to upgrade the linter.
- *
- * @return string Human readable upgrade instructions
- * @task bin
- */
- public function getUpgradeInstructions() {
- return null;
- }
-
- /**
- * Return true to continue when the external linter exits with an error code.
- * By default, linters which exit with an error code are assumed to have
- * failed. However, some linters exit with a specific code to indicate that
- * lint messages were detected.
- *
- * If the linter sometimes raises errors during normal operation, override
- * this method and return true so execution continues when it exits with
- * a nonzero status.
- *
- * @param bool Return true to continue on nonzero error code.
- * @task bin
- */
- public function shouldExpectCommandErrors() {
- return true;
- }
-
- /**
- * Provide mandatory, non-overridable flags to the linter. Generally these
- * are format flags, like `--format=xml`, which must always be given for
- * the output to be usable.
- *
- * Flags which are not mandatory should be provided in
- * @{method:getDefaultFlags} instead.
- *
- * @return list<string> Mandatory flags, like `"--format=xml"`.
- * @task bin
- */
- protected function getMandatoryFlags() {
- return array();
- }
-
- /**
- * Provide default, overridable flags to the linter. Generally these are
- * configuration flags which affect behavior but aren't critical. Flags
- * which are required should be provided in @{method:getMandatoryFlags}
- * instead.
- *
- * Default flags can be overridden with @{method:setFlags}.
- *
- * @return list<string> Overridable default flags.
- * @task bin
- */
- protected function getDefaultFlags() {
- return array();
- }
-
- /**
- * Override default flags with custom flags. If not overridden, flags provided
- * by @{method:getDefaultFlags} are used.
- *
- * @param list<string> New flags.
- * @return this
- * @task bin
- */
- final public function setFlags(array $flags) {
- $this->flags = $flags;
- return $this;
- }
-
- /**
- * Set the binary's version requirement.
- *
- * @param string Version requirement.
- * @return this
- * @task bin
- */
- final public function setVersionRequirement($version) {
- $this->versionRequirement = trim($version);
- return $this;
- }
-
- /**
- * Return the binary or script to execute. This method synthesizes defaults
- * and configuration. You can override the binary with @{method:setBinary}.
- *
- * @return string Binary to execute.
- * @task bin
- */
- final public function getBinary() {
- return coalesce($this->bin, $this->getDefaultBinary());
- }
-
- /**
- * Override the default binary with a new one.
- *
- * @param string New binary.
- * @return this
- * @task bin
- */
- final public function setBinary($bin) {
- $this->bin = $bin;
- return $this;
- }
-
- /**
- * Return true if this linter should use an interpreter (like "python" or
- * "node") in addition to the script.
- *
- * After overriding this method to return `true`, override
- * @{method:getDefaultInterpreter} to set a default.
- *
- * @return bool True to use an interpreter.
- * @task bin
- */
- public function shouldUseInterpreter() {
- return false;
- }
-
- /**
- * Return the default interpreter, like "python" or "node". This method is
- * only invoked if @{method:shouldUseInterpreter} has been overridden to
- * return `true`.
- *
- * @return string Default interpreter.
- * @task bin
- */
- public function getDefaultInterpreter() {
- throw new PhutilMethodNotImplementedException();
- }
-
- /**
- * Get the effective interpreter. This method synthesizes configuration and
- * defaults.
- *
- * @return string Effective interpreter.
- * @task bin
- */
- final public function getInterpreter() {
- return coalesce($this->interpreter, $this->getDefaultInterpreter());
- }
-
- /**
- * Set the interpreter, overriding any default.
- *
- * @param string New interpreter.
- * @return this
- * @task bin
- */
- final public function setInterpreter($interpreter) {
- $this->interpreter = $interpreter;
- return $this;
- }
-
-
-/* -( Parsing Linter Output )---------------------------------------------- */
-
- /**
- * Parse the output of the external lint program into objects of class
- * @{class:ArcanistLintMessage} which `arc` can consume. Generally, this
- * means examining the output and converting each warning or error into a
- * message.
- *
- * If parsing fails, returning `false` will cause the caller to throw an
- * appropriate exception. (You can also throw a more specific exception if
- * you're able to detect a more specific condition.) Otherwise, return a list
- * of messages.
- *
- * @param string Path to the file being linted.
- * @param int Exit code of the linter.
- * @param string Stdout of the linter.
- * @param string Stderr of the linter.
- * @return list<ArcanistLintMessage>|false List of lint messages, or false
- * to indicate parser failure.
- * @task parse
- */
- abstract protected function parseLinterOutput($path, $err, $stdout, $stderr);
-
-
-/* -( Executing the Linter )----------------------------------------------- */
-
- /**
- * Check that the binary and interpreter (if applicable) exist, and throw
- * an exception with a message about how to install them if they do not.
- *
- * @return void
- */
- final public function checkBinaryConfiguration() {
- $interpreter = null;
- if ($this->shouldUseInterpreter()) {
- $interpreter = $this->getInterpreter();
- }
-
- $binary = $this->getBinary();
-
- // NOTE: If we have an interpreter, we don't require the script to be
- // executable (so we just check that the path exists). Otherwise, the
- // binary must be executable.
-
- if ($interpreter) {
- if (!Filesystem::binaryExists($interpreter)) {
- throw new ArcanistMissingLinterException(
- pht(
- 'Unable to locate interpreter "%s" to run linter %s. You may need '.
- 'to install the interpreter, or adjust your linter configuration.',
- $interpreter,
- get_class($this)));
- }
- if (!Filesystem::pathExists($binary)) {
- throw new ArcanistMissingLinterException(
- sprintf(
- "%s\n%s",
- pht(
- 'Unable to locate script "%s" to run linter %s. You may need '.
- 'to install the script, or adjust your linter configuration.',
- $binary,
- get_class($this)),
- pht(
- 'TO INSTALL: %s',
- $this->getInstallInstructions())));
- }
- } else {
- if (!Filesystem::binaryExists($binary)) {
- throw new ArcanistMissingLinterException(
- sprintf(
- "%s\n%s",
- pht(
- 'Unable to locate binary "%s" to run linter %s. You may need '.
- 'to install the binary, or adjust your linter configuration.',
- $binary,
- get_class($this)),
- pht(
- 'TO INSTALL: %s',
- $this->getInstallInstructions())));
- }
- }
- }
-
- /**
- * If a binary version requirement has been specified, compare the version
- * of the configured binary to the required version, and if the binary's
- * version is not supported, throw an exception.
- *
- * @param string Version string to check.
- * @return void
- */
- final protected function checkBinaryVersion($version) {
- if (!$this->versionRequirement) {
- return;
- }
-
- if (!$version) {
- $message = pht(
- 'Linter %s requires %s version %s. Unable to determine the version '.
- 'that you have installed.',
- get_class($this),
- $this->getBinary(),
- $this->versionRequirement);
-
- $instructions = $this->getUpgradeInstructions();
- if ($instructions) {
- $message .= "\n".pht('TO UPGRADE: %s', $instructions);
- }
-
- throw new ArcanistMissingLinterException($message);
- }
-
- $operator = '==';
- $compare_to = $this->versionRequirement;
-
- $matches = null;
- if (preg_match('/^([<>]=?|=)\s*(.*)$/', $compare_to, $matches)) {
- $operator = $matches[1];
- $compare_to = $matches[2];
- if ($operator === '=') {
- $operator = '==';
- }
- }
-
- if (!version_compare($version, $compare_to, $operator)) {
- $message = pht(
- 'Linter %s requires %s version %s. You have version %s.',
- get_class($this),
- $this->getBinary(),
- $this->versionRequirement,
- $version);
-
- $instructions = $this->getUpgradeInstructions();
- if ($instructions) {
- $message .= "\n".pht('TO UPGRADE: %s', $instructions);
- }
-
- throw new ArcanistMissingLinterException($message);
- }
- }
-
- /**
- * Get the composed executable command, including the interpreter and binary
- * but without flags or paths. This can be used to execute `--version`
- * commands.
- *
- * @return string Command to execute the raw linter.
- * @task exec
- */
- final protected function getExecutableCommand() {
- $this->checkBinaryConfiguration();
-
- $interpreter = null;
- if ($this->shouldUseInterpreter()) {
- $interpreter = $this->getInterpreter();
- }
-
- $binary = $this->getBinary();
-
- if ($interpreter) {
- $bin = csprintf('%s %s', $interpreter, $binary);
- } else {
- $bin = csprintf('%s', $binary);
- }
-
- return $bin;
- }
-
- /**
- * Get the composed flags for the executable, including both mandatory and
- * configured flags.
- *
- * @return list<string> Composed flags.
- * @task exec
- */
- final protected function getCommandFlags() {
- return array_merge(
- $this->getMandatoryFlags(),
- nonempty($this->flags, $this->getDefaultFlags()));
- }
-
- public function getCacheVersion() {
- try {
- $this->checkBinaryConfiguration();
- } catch (ArcanistMissingLinterException $e) {
- return null;
- }
-
- $version = $this->getVersion();
-
- if ($version) {
- $this->checkBinaryVersion($version);
- return $version.'-'.json_encode($this->getCommandFlags());
- } else {
- // Either we failed to parse the version number or the `getVersion`
- // function hasn't been implemented.
- return json_encode($this->getCommandFlags());
- }
- }
-
- /**
- * Prepare the path to be added to the command string.
- *
- * This method is expected to return an already escaped string.
- *
- * @param string Path to the file being linted
- * @return string The command-ready file argument
- */
- protected function getPathArgumentForLinterFuture($path) {
- return csprintf('%s', $path);
- }
-
- final protected function buildFutures(array $paths) {
- $executable = $this->getExecutableCommand();
-
- $bin = csprintf('%C %Ls', $executable, $this->getCommandFlags());
-
- $futures = array();
- foreach ($paths as $path) {
- $disk_path = $this->getEngine()->getFilePathOnDisk($path);
- $path_argument = $this->getPathArgumentForLinterFuture($disk_path);
- $future = new ExecFuture('%C %C', $bin, $path_argument);
-
- $future->setCWD($this->getProjectRoot());
- $futures[$path] = $future;
- }
-
- return $futures;
- }
-
- final protected function resolveFuture($path, Future $future) {
- list($err, $stdout, $stderr) = $future->resolve();
- if ($err && !$this->shouldExpectCommandErrors()) {
- $future->resolvex();
- }
-
- $messages = $this->parseLinterOutput($path, $err, $stdout, $stderr);
-
- if ($err && $this->shouldExpectCommandErrors() && !$messages) {
- // We assume that if the future exits with a non-zero status and we
- // failed to parse any linter messages, then something must've gone wrong
- // during parsing.
- $messages = false;
- }
-
- if ($messages === false) {
- if ($err) {
- $future->resolvex();
- } else {
- throw new Exception(
- sprintf(
- "%s\n\nSTDOUT\n%s\n\nSTDERR\n%s",
- pht('Linter failed to parse output!'),
- $stdout,
- $stderr));
- }
- }
-
- foreach ($messages as $message) {
- $this->addLintMessage($message);
- }
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'bin' => array(
- 'type' => 'optional string | list<string>',
- 'help' => pht(
- 'Specify a string (or list of strings) identifying the binary '.
- 'which should be invoked to execute this linter. This overrides '.
- 'the default binary. If you provide a list of possible binaries, '.
- 'the first one which exists will be used.'),
- ),
- 'flags' => array(
- 'type' => 'optional list<string>',
- 'help' => pht(
- 'Provide a list of additional flags to pass to the linter on the '.
- 'command line.'),
- ),
- 'version' => array(
- 'type' => 'optional string',
- 'help' => pht(
- 'Specify a version requirement for the binary. The version number '.
- 'may be prefixed with <, <=, >, >=, or = to specify the version '.
- 'comparison operator (default: =).'),
- ),
- );
-
- if ($this->shouldUseInterpreter()) {
- $options['interpreter'] = array(
- 'type' => 'optional string | list<string>',
- 'help' => pht(
- 'Specify a string (or list of strings) identifying the interpreter '.
- 'which should be used to invoke the linter binary. If you provide '.
- 'a list of possible interpreters, the first one that exists '.
- 'will be used.'),
- );
- }
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'interpreter':
- $root = $this->getProjectRoot();
-
- foreach ((array)$value as $path) {
- if (Filesystem::binaryExists($path)) {
- $this->setInterpreter($path);
- return;
- }
-
- $path = Filesystem::resolvePath($path, $root);
-
- if (Filesystem::binaryExists($path)) {
- $this->setInterpreter($path);
- return;
- }
- }
-
- throw new Exception(
- pht('None of the configured interpreters can be located.'));
- case 'bin':
- $is_script = $this->shouldUseInterpreter();
-
- $root = $this->getProjectRoot();
-
- foreach ((array)$value as $path) {
- if (!$is_script && Filesystem::binaryExists($path)) {
- $this->setBinary($path);
- return;
- }
-
- $path = Filesystem::resolvePath($path, $root);
- if ((!$is_script && Filesystem::binaryExists($path)) ||
- ($is_script && Filesystem::pathExists($path))) {
- $this->setBinary($path);
- return;
- }
- }
-
- throw new Exception(
- pht('None of the configured binaries can be located.'));
- case 'flags':
- $this->setFlags($value);
- return;
- case 'version':
- $this->setVersionRequirement($value);
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
- /**
- * Map a configuration lint code to an `arc` lint code. Primarily, this is
- * intended for validation, but can also be used to normalize case or
- * otherwise be more permissive in accepted inputs.
- *
- * If the code is not recognized, you should throw an exception.
- *
- * @param string Code specified in configuration.
- * @return string Normalized code to use in severity map.
- */
- protected function getLintCodeFromLinterConfigurationKey($code) {
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistFlake8Linter.php b/src/lint/linter/ArcanistFlake8Linter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistFlake8Linter.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-
-/**
- * Uses "flake8" to detect various errors in Python code.
- * Requires version 1.7.0 or newer of flake8.
- */
-final class ArcanistFlake8Linter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return 'Python Flake8 multi-linter';
- }
-
- public function getInfoURI() {
- return 'https://pypi.python.org/pypi/flake8';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Uses `%s` to run several linters (PyFlakes, pep8, and a McCabe '.
- 'complexity checker) on Python source files.',
- 'flake8');
- }
-
- public function getLinterName() {
- return 'flake8';
- }
-
- public function getLinterConfigurationName() {
- return 'flake8';
- }
-
- public function getDefaultBinary() {
- return 'flake8';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+(?:\.\d+)?)\b/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install flake8 using `%s`.', 'pip install flake8');
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stdout, false);
-
- // stdin:2: W802 undefined name 'foo' # pyflakes
- // stdin:3:1: E302 expected 2 blank lines, found 1 # pep8
- $regexp =
- '/^(?:.*?):(?P<line>\d+):(?:(?P<char>\d+):)? (?P<code>\S+) (?P<msg>.*)$/';
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = null;
- if (!preg_match($regexp, $line, $matches)) {
- continue;
- }
- foreach ($matches as $key => $match) {
- $matches[$key] = trim($match);
- }
-
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches['line']);
- if (!empty($matches['char'])) {
- $message->setChar($matches['char']);
- }
- $message->setCode($matches['code']);
- $message->setName($this->getLinterName().' '.$matches['code']);
- $message->setDescription($matches['msg']);
- $message->setSeverity($this->getLintMessageSeverity($matches['code']));
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
- protected function getDefaultMessageSeverity($code) {
- if (preg_match('/^C/', $code)) {
- // "C": Cyclomatic complexity
- return ArcanistLintSeverity::SEVERITY_ADVICE;
- } else if (preg_match('/^W/', $code)) {
- // "W": PEP8 Warning
- return ArcanistLintSeverity::SEVERITY_WARNING;
- } else {
- // "E": PEP8 Error
- // "F": PyFlakes Error
- // or: Flake8 Extension Message
- return ArcanistLintSeverity::SEVERITY_ERROR;
- }
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('/^[A-Z]\d+$/', $code)) {
- throw new Exception(
- pht(
- 'Unrecognized lint message code "%s". Expected a valid flake8 '.
- 'lint code like "%s", or "%s", or "%s", or "%s".',
- $code,
- 'E225',
- 'W291',
- 'F811',
- 'C901'));
- }
-
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistFutureLinter.php b/src/lint/linter/ArcanistFutureLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistFutureLinter.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-abstract class ArcanistFutureLinter extends ArcanistLinter {
-
- private $futures;
-
- abstract protected function buildFutures(array $paths);
- abstract protected function resolveFuture($path, Future $future);
-
- final protected function getFuturesLimit() {
- return 8;
- }
-
- final public function willLintPaths(array $paths) {
- $limit = $this->getFuturesLimit();
- $this->futures = id(new FutureIterator(array()))->limit($limit);
- foreach ($this->buildFutures($paths) as $path => $future) {
- $this->futures->addFuture($future, $path);
- }
- }
-
- final public function lintPath($path) {
- return;
- }
-
- final public function didLintPaths(array $paths) {
- if (!$this->futures) {
- return;
- }
-
- $map = array();
- foreach ($this->futures as $path => $future) {
- $this->setActivePath($path);
- $this->resolveFuture($path, $future);
- $map[$path] = $future;
- }
- $this->futures = array();
-
- $this->didResolveLinterFutures($map);
- }
-
-
- /**
- * Hook for cleaning up resources.
- *
- * This is invoked after a block of futures resolve, and allows linters to
- * discard or clean up any shared resources they no longer need.
- *
- * @param map<string, Future> Map of paths to resolved futures.
- * @return void
- */
- protected function didResolveLinterFutures(array $futures) {
- return;
- }
-
-}
diff --git a/src/lint/linter/ArcanistGoLintLinter.php b/src/lint/linter/ArcanistGoLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistGoLintLinter.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-final class ArcanistGoLintLinter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return 'Golint';
- }
-
- public function getInfoURI() {
- return 'https://github.com/golang/lint';
- }
-
- public function getInfoDescription() {
- return pht('Golint is a linter for Go source code.');
- }
-
- public function getLinterName() {
- return 'GOLINT';
- }
-
- public function getLinterConfigurationName() {
- return 'golint';
- }
-
- public function getDefaultBinary() {
- return 'golint';
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install Golint using `%s`.',
- 'go get github.com/golang/lint/golint');
- }
-
- public function shouldExpectCommandErrors() {
- return false;
- }
-
- protected function canCustomizeLintSeverities() {
- return true;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stdout, false);
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = explode(':', $line, 4);
-
- if (count($matches) === 4) {
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches[1]);
- $message->setChar($matches[2]);
- $message->setCode($this->getLinterName());
- $message->setName($this->getLinterName());
- $message->setDescription(ucfirst(trim($matches[3])));
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistHLintLinter.php b/src/lint/linter/ArcanistHLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistHLintLinter.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-
-/**
- * Calls `hlint` and parses its results.
- */
-final class ArcanistHLintLinter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return 'Haskell Linter';
- }
-
- public function getInfoURI() {
- return 'https://github.com/ndmitchell/hlint';
- }
-
- public function getInfoDescription() {
- return pht('HLint is a linter for Haskell code.');
- }
-
- public function getLinterName() {
- return 'HLINT';
- }
-
- public function getLinterConfigurationName() {
- return 'hlint';
- }
-
- public function getDefaultBinary() {
- return 'hlint';
- }
-
- public function getInstallInstructions() {
- return pht('Install hlint with `%s`.', 'cabal install hlint');
- }
-
- protected function getMandatoryFlags() {
- return array('--json');
- }
-
- public function getVersion() {
- list($stdout, $stderr) = execx(
- '%C --version', $this->getExecutableCommand());
-
- $matches = null;
- if (preg_match('@HLint v(.*),@', $stdout, $matches)) {
- return $matches[1];
- }
-
- return null;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $json = phutil_json_decode($stdout);
- $messages = array();
- foreach ($json as $fix) {
- if ($fix === null) {
- return;
- }
-
- $message = new ArcanistLintMessage();
- $message->setCode($this->getLinterName());
- $message->setPath($path);
- $message->setLine($fix['startLine']);
- $message->setChar($fix['startColumn']);
- $message->setName($fix['hint']);
- $message->setOriginalText($fix['from']);
- $message->setReplacementText($fix['to']);
-
- /* Some improvements may slightly change semantics, so attach
- all necessary notes too. */
- $notes = '';
- foreach ($fix['note'] as $note) {
- $notes .= phutil_console_format(
- ' **%s**: %s.',
- pht('NOTE'),
- trim($note, '"'));
- }
-
- $message->setDescription(
- pht(
- 'In module `%s`, declaration `%s`.',
- $fix['module'],
- $fix['decl']).$notes);
-
- switch ($fix['severity']) {
- case 'Error':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
- case 'Warning':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- break;
- default:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- break;
- }
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-}
diff --git a/src/lint/linter/ArcanistJSHintLinter.php b/src/lint/linter/ArcanistJSHintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistJSHintLinter.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-
-/**
- * Uses JSHint to detect errors and potential problems in JavaScript code.
- */
-final class ArcanistJSHintLinter extends ArcanistExternalLinter {
-
- private $jshintignore;
- private $jshintrc;
-
- public function getInfoName() {
- return 'JavaScript error checking';
- }
-
- public function getInfoURI() {
- return 'http://www.jshint.com';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use `%s` to detect issues with JavaScript source files.',
- 'jshint');
- }
-
- public function getLinterName() {
- return 'JSHint';
- }
-
- public function getLinterConfigurationName() {
- return 'jshint';
- }
-
- protected function getDefaultMessageSeverity($code) {
- if (preg_match('/^W/', $code)) {
- return ArcanistLintSeverity::SEVERITY_WARNING;
- } else if (preg_match('/^E043$/', $code)) {
- // TODO: If JSHint encounters a large number of errors, it will quit
- // prematurely and add an additional "Too Many Errors" error. Ideally, we
- // should be able to pass some sort of `--force` option to `jshint`.
- //
- // See https://github.com/jshint/jshint/issues/180
- return ArcanistLintSeverity::SEVERITY_DISABLED;
- } else {
- return ArcanistLintSeverity::SEVERITY_ERROR;
- }
- }
-
- public function getDefaultBinary() {
- return 'jshint';
- }
-
- public function getVersion() {
- // NOTE: `jshint --version` emits version information on stderr, not stdout.
- list($stdout, $stderr) = execx(
- '%C --version',
- $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^jshint v(?P<version>\d+\.\d+\.\d+)$/';
- if (preg_match($regex, $stderr, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install JSHint using `%s`.', 'npm install -g jshint');
- }
-
- protected function getMandatoryFlags() {
- $options = array();
-
- $options[] = '--reporter='.dirname(realpath(__FILE__)).'/reporter.js';
-
- if ($this->jshintrc) {
- $options[] = '--config='.$this->jshintrc;
- }
-
- if ($this->jshintignore) {
- $options[] = '--exclude-path='.$this->jshintignore;
- }
-
- return $options;
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'jshint.jshintignore' => array(
- 'type' => 'optional string',
- 'help' => pht('Pass in a custom jshintignore file path.'),
- ),
- 'jshint.jshintrc' => array(
- 'type' => 'optional string',
- 'help' => pht('Custom configuration file.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'jshint.jshintignore':
- $this->jshintignore = $value;
- return;
-
- case 'jshint.jshintrc':
- $this->jshintrc = $value;
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $errors = null;
- try {
- $errors = phutil_json_decode($stdout);
- } catch (PhutilJSONParserException $ex) {
- // Something went wrong and we can't decode the output. Exit abnormally.
- throw new PhutilProxyException(
- pht('JSHint returned unparseable output.'),
- $ex);
- }
-
- $messages = array();
- foreach ($errors as $err) {
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine(idx($err, 'line'));
- $message->setChar(idx($err, 'col'));
- $message->setCode(idx($err, 'code'));
- $message->setName('JSHint'.idx($err, 'code'));
- $message->setDescription(idx($err, 'reason'));
- $message->setSeverity($this->getLintMessageSeverity(idx($err, 'code')));
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('/^(E|W)\d+$/', $code)) {
- throw new Exception(
- pht(
- 'Unrecognized lint message code "%s". Expected a valid JSHint '.
- 'lint code like "%s" or "%s".',
- $code,
- 'E033',
- 'W093'));
- }
-
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistJSONLintLinter.php b/src/lint/linter/ArcanistJSONLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistJSONLintLinter.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-
-/**
- * A linter for JSON files.
- */
-final class ArcanistJSONLintLinter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return pht('JSON Lint');
- }
-
- public function getInfoURI() {
- return 'https://github.com/zaach/jsonlint';
- }
-
- public function getInfoDescription() {
- return pht('Use `%s` to detect syntax errors in JSON files.', 'jsonlint');
- }
-
- public function getLinterName() {
- return 'JSON';
- }
-
- public function getLinterConfigurationName() {
- return 'jsonlint';
- }
-
- public function getDefaultBinary() {
- return 'jsonlint';
- }
-
- public function getVersion() {
- // NOTE: `jsonlint --version` returns a non-zero exit status.
- list($err, $stdout) = exec_manual(
- '%C --version',
- $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install jsonlint using `%s`.', 'npm install -g jsonlint');
- }
-
- protected function getMandatoryFlags() {
- return array(
- '--compact',
- );
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stderr, false);
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = null;
- $match = preg_match(
- '/^(?:(?<path>.+): )?'.
- 'line (?<line>\d+), col (?<column>\d+), '.
- '(?<description>.*)$/',
- $line,
- $matches);
-
- if ($match) {
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches['line']);
- $message->setChar($matches['column']);
- $message->setCode($this->getLinterName());
- $message->setName($this->getLinterName());
- $message->setDescription(ucfirst($matches['description']));
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistJscsLinter.php b/src/lint/linter/ArcanistJscsLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistJscsLinter.php
+++ /dev/null
@@ -1,149 +0,0 @@
-<?php
-
-final class ArcanistJscsLinter extends ArcanistExternalLinter {
-
- private $config;
- private $preset;
-
- public function getInfoName() {
- return 'JavaScript Code Style';
- }
-
- public function getInfoURI() {
- return 'https://github.com/mdevils/node-jscs';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use `%s` to detect issues with Javascript source files.',
- 'jscs');
- }
-
- public function getLinterName() {
- return 'JSCS';
- }
-
- public function getLinterConfigurationName() {
- return 'jscs';
- }
-
- public function getDefaultBinary() {
- return 'jscs';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^(?P<version>\d+\.\d+\.\d+)$/';
- if (preg_match($regex, $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install JSCS using `%s`.', 'npm install -g jscs');
- }
-
- protected function getMandatoryFlags() {
- $options = array();
-
- $options[] = '--reporter=checkstyle';
- $options[] = '--no-colors';
-
- if ($this->config) {
- $options[] = '--config='.$this->config;
- }
-
- if ($this->preset) {
- $options[] = '--preset='.$this->preset;
- }
-
- return $options;
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'jscs.config' => array(
- 'type' => 'optional string',
- 'help' => pht('Pass in a custom %s file path.', 'jscsrc'),
- ),
- 'jscs.preset' => array(
- 'type' => 'optional string',
- 'help' => pht('Custom preset.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'jscs.config':
- $this->config = $value;
- return;
-
- case 'jscs.preset':
- $this->preset = $value;
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $report_dom = new DOMDocument();
- $ok = @$report_dom->loadXML($stdout);
-
- if (!$ok) {
- return false;
- }
-
- $messages = array();
- foreach ($report_dom->getElementsByTagName('file') as $file) {
- foreach ($file->getElementsByTagName('error') as $error) {
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($error->getAttribute('line'));
- $message->setChar($error->getAttribute('column'));
- $message->setCode('JSCS');
- $message->setName('JSCS');
- $message->setDescription($error->getAttribute('message'));
-
- switch ($error->getAttribute('severity')) {
- case 'error':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
-
- case 'warning':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- break;
-
- default:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- break;
- }
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
-
- // NOTE: We can't figure out which rule generated each message, so we
- // can not customize severities.
- //
- // See https://github.com/mdevils/node-jscs/issues/224
-
- throw new Exception(
- pht(
- "JSCS does not currently support custom severity levels, because ".
- "rules can't be identified from messages in output."));
- }
-
-}
diff --git a/src/lint/linter/ArcanistLesscLinter.php b/src/lint/linter/ArcanistLesscLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistLesscLinter.php
+++ /dev/null
@@ -1,183 +0,0 @@
-<?php
-
-/**
- * A linter for LESSCSS files.
- *
- * This linter uses [[https://github.com/less/less.js | lessc]] to detect
- * errors and potential problems in [[http://lesscss.org/ | LESS]] code.
- */
-final class ArcanistLesscLinter extends ArcanistExternalLinter {
-
- const LINT_RUNTIME_ERROR = 1;
- const LINT_ARGUMENT_ERROR = 2;
- const LINT_FILE_ERROR = 3;
- const LINT_NAME_ERROR = 4;
- const LINT_OPERATION_ERROR = 5;
- const LINT_PARSE_ERROR = 6;
- const LINT_SYNTAX_ERROR = 7;
-
- private $strictMath = false;
- private $strictUnits = false;
-
- public function getInfoName() {
- return 'CSS pre-processor';
- }
-
- public function getInfoURI() {
- return 'http://lesscss.org/';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use the `%s` mode provided by `%s` to detect errors in '.
- 'Less source files.',
- '--lint',
- 'lessc');
- }
-
- public function getLinterName() {
- return 'LESSC';
- }
-
- public function getLinterConfigurationName() {
- return 'lessc';
- }
-
- public function getLinterConfigurationOptions() {
- return parent::getLinterConfigurationOptions() + array(
- 'lessc.strict-math' => array(
- 'type' => 'optional bool',
- 'help' => pht(
- 'Enable strict math, which only processes mathematical expressions '.
- 'inside extraneous parentheses.'),
- ),
- 'lessc.strict-units' => array(
- 'type' => 'optional bool',
- 'help' => pht('Enable strict handling of units in expressions.'),
- ),
- );
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'lessc.strict-math':
- $this->strictMath = $value;
- return;
- case 'lessc.strict-units':
- $this->strictUnits = $value;
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
- public function getLintNameMap() {
- return array(
- self::LINT_RUNTIME_ERROR => pht('Runtime Error'),
- self::LINT_ARGUMENT_ERROR => pht('Argument Error'),
- self::LINT_FILE_ERROR => pht('File Error'),
- self::LINT_NAME_ERROR => pht('Name Error'),
- self::LINT_OPERATION_ERROR => pht('Operation Error'),
- self::LINT_PARSE_ERROR => pht('Parse Error'),
- self::LINT_SYNTAX_ERROR => pht('Syntax Error'),
- );
- }
-
- public function getDefaultBinary() {
- return 'lessc';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^lessc (?P<version>\d+\.\d+\.\d+)\b/';
- if (preg_match($regex, $stdout, $matches)) {
- $version = $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install lessc using `%s`.', 'npm install -g less');
- }
-
- protected function getMandatoryFlags() {
- return array(
- '--lint',
- '--no-color',
- '--strict-math='.($this->strictMath ? 'on' : 'off'),
- '--strict-units='.($this->strictUnits ? 'on' : 'off'),
- );
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stderr, false);
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = null;
- $match = preg_match(
- '/^(?P<name>\w+): (?P<description>.+) '.
- 'in (?P<path>.+|-) '.
- 'on line (?P<line>\d+), column (?P<column>\d+):$/',
- $line,
- $matches);
-
- if ($match) {
- switch ($matches['name']) {
- case 'RuntimeError':
- $code = self::LINT_RUNTIME_ERROR;
- break;
-
- case 'ArgumentError':
- $code = self::LINT_ARGUMENT_ERROR;
- break;
-
- case 'FileError':
- $code = self::LINT_FILE_ERROR;
- break;
-
- case 'NameError':
- $code = self::LINT_NAME_ERROR;
- break;
-
- case 'OperationError':
- $code = self::LINT_OPERATION_ERROR;
- break;
-
- case 'ParseError':
- $code = self::LINT_PARSE_ERROR;
- break;
-
- case 'SyntaxError':
- $code = self::LINT_SYNTAX_ERROR;
- break;
-
- default:
- throw new RuntimeException(
- pht(
- 'Unrecognized lint message code "%s".',
- $code));
- }
-
- $code = $this->getLintCodeFromLinterConfigurationKey($matches['name']);
-
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches['line']);
- $message->setChar($matches['column']);
- $message->setCode($this->getLintMessageFullCode($code));
- $message->setSeverity($this->getLintMessageSeverity($code));
- $message->setName($this->getLintMessageName($code));
- $message->setDescription(ucfirst($matches['description']));
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistPEP8Linter.php b/src/lint/linter/ArcanistPEP8Linter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistPEP8Linter.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-
-/**
- * Uses "pep8.py" to enforce PEP8 rules for Python.
- */
-final class ArcanistPEP8Linter extends ArcanistExternalLinter {
-
- public function getInfoName() {
- return 'Python PEP 8';
- }
-
- public function getInfoURI() {
- return 'https://pypi.python.org/pypi/pep8';
- }
-
- public function getInfoDescription() {
- return pht(
- 'pep8 is a tool to check your Python code against some of the '.
- 'style conventions in PEP 8.');
- }
-
- public function getLinterName() {
- return 'PEP8';
- }
-
- public function getLinterConfigurationName() {
- return 'pep8';
- }
-
- public function getDefaultBinary() {
- return 'pep8';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+(?:\.\d+)?)\b/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install PEP8 using `%s`.', 'pip install pep8');
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stdout, false);
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = null;
- if (!preg_match('/^(.*?):(\d+):(\d+): (\S+) (.*)$/', $line, $matches)) {
- continue;
- }
- foreach ($matches as $key => $match) {
- $matches[$key] = trim($match);
- }
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches[2]);
- $message->setChar($matches[3]);
- $message->setCode($matches[4]);
- $message->setName('PEP8 '.$matches[4]);
- $message->setDescription($matches[5]);
- $message->setSeverity($this->getLintMessageSeverity($matches[4]));
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
- protected function getDefaultMessageSeverity($code) {
- if (preg_match('/^W/', $code)) {
- return ArcanistLintSeverity::SEVERITY_WARNING;
- } else {
- return ArcanistLintSeverity::SEVERITY_ERROR;
- }
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('/^(E|W)\d+$/', $code)) {
- throw new Exception(
- pht(
- 'Unrecognized lint message code "%s". Expected a valid PEP8 '.
- 'lint code like "%s" or "%s".',
- $code,
- 'E101',
- 'W291'));
- }
-
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistPhpLinter.php b/src/lint/linter/ArcanistPhpLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistPhpLinter.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-
-/**
- * Uses "php -l" to detect syntax errors in PHP code.
- */
-final class ArcanistPhpLinter extends ArcanistExternalLinter {
-
- const LINT_PARSE_ERROR = 1;
- const LINT_FATAL_ERROR = 2;
-
- public function getInfoName() {
- return 'php -l';
- }
-
- public function getInfoURI() {
- return 'http://php.net/';
- }
-
- public function getInfoDescription() {
- return pht('Checks for syntax errors in PHP files.');
- }
-
- public function getLinterName() {
- return 'PHP';
- }
-
- public function getLinterConfigurationName() {
- return 'php';
- }
-
- public function getLintNameMap() {
- return array(
- self::LINT_PARSE_ERROR => pht('Parse Error'),
- self::LINT_FATAL_ERROR => pht('Fatal Error'),
- );
- }
-
- protected function getMandatoryFlags() {
- return array('-l');
- }
-
- public function getInstallInstructions() {
- return pht('Install PHP.');
- }
-
- public function getDefaultBinary() {
- return 'php';
- }
-
- public function getVersion() {
- list($stdout) = execx(
- '%C --run %s',
- $this->getExecutableCommand(),
- 'echo phpversion();');
- return $stdout;
- }
-
- protected function canCustomizeLintSeverities() {
- return false;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- // Older versions of PHP had both on stdout, newer ones split it.
- // Combine stdout and stderr for consistency.
- $stdout = $stderr."\n".$stdout;
- $matches = array();
-
- $regex = '/^(PHP )?(?<type>.+) error: +(?<error>.+) in (?<file>.+) '.
- 'on line (?<line>\d+)$/m';
- if (preg_match($regex, $stdout, $matches)) {
- $code = $this->getLintCodeFromLinterConfigurationKey($matches['type']);
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($matches['line'])
- ->setCode($this->getLinterName().$code)
- ->setName($this->getLintMessageName($code))
- ->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR)
- ->setDescription($matches['error']);
-
- // `php -l` only returns the first error.
- return array($message);
- }
-
- return array();
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- switch (phutil_utf8_strtolower($code)) {
- case 'parse':
- return self::LINT_PARSE_ERROR;
-
- case 'fatal':
- return self::LINT_FATAL_ERROR;
-
- default:
- throw new Exception(pht('Unrecognized lint message code: "%s"', $code));
- }
- }
-
-}
diff --git a/src/lint/linter/ArcanistPhpcsLinter.php b/src/lint/linter/ArcanistPhpcsLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistPhpcsLinter.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-/**
- * Uses "PHP_CodeSniffer" to detect checkstyle errors in PHP code.
- */
-final class ArcanistPhpcsLinter extends ArcanistExternalLinter {
-
- private $standard;
-
- public function getInfoName() {
- return 'PHP_CodeSniffer';
- }
-
- public function getInfoURI() {
- return 'http://pear.php.net/package/PHP_CodeSniffer/';
- }
-
- public function getInfoDescription() {
- return pht(
- 'PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and '.
- 'detects violations of a defined set of coding standards.');
- }
-
- public function getLinterName() {
- return 'PHPCS';
- }
-
- public function getLinterConfigurationName() {
- return 'phpcs';
- }
-
- public function getInstallInstructions() {
- return pht('Install PHPCS with `%s`.', 'pear install PHP_CodeSniffer');
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'phpcs.standard' => array(
- 'type' => 'optional string',
- 'help' => pht('The name or path of the coding standard to use.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'phpcs.standard':
- $this->standard = $value;
- return;
-
- default:
- return parent::setLinterConfigurationValue($key, $value);
- }
- }
-
- protected function getMandatoryFlags() {
- $options = array('--report=xml');
-
- if ($this->standard) {
- $options[] = '--standard='.$this->standard;
- }
-
- return $options;
- }
-
- public function getDefaultBinary() {
- return 'phpcs';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^PHP_CodeSniffer version (?P<version>\d+\.\d+\.\d+)\b/';
- if (preg_match($regex, $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- // NOTE: Some version of PHPCS after 1.4.6 stopped printing a valid, empty
- // XML document to stdout in the case of no errors. If PHPCS exits with
- // error 0, just ignore output.
- if (!$err) {
- return array();
- }
-
- $report_dom = new DOMDocument();
- $ok = @$report_dom->loadXML($stdout);
- if (!$ok) {
- return false;
- }
-
- $files = $report_dom->getElementsByTagName('file');
- $messages = array();
- foreach ($files as $file) {
- foreach ($file->childNodes as $child) {
- if (!($child instanceof DOMElement)) {
- continue;
- }
-
- if ($child->tagName == 'error') {
- $prefix = 'E';
- } else {
- $prefix = 'W';
- }
-
- $source = $child->getAttribute('source');
- $code = 'PHPCS.'.$prefix.'.'.$source;
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setName($source)
- ->setLine($child->getAttribute('line'))
- ->setChar($child->getAttribute('column'))
- ->setCode($code)
- ->setDescription($child->nodeValue)
- ->setSeverity($this->getLintMessageSeverity($code));
-
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
- protected function getDefaultMessageSeverity($code) {
- if (preg_match('/^PHPCS\\.W\\./', $code)) {
- return ArcanistLintSeverity::SEVERITY_WARNING;
- } else {
- return ArcanistLintSeverity::SEVERITY_ERROR;
- }
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('/^PHPCS\\.(E|W)\\./', $code)) {
- throw new Exception(
- pht(
- "Invalid severity code '%s', should begin with '%s.'.",
- $code,
- 'PHPCS'));
- }
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistPuppetLintLinter.php b/src/lint/linter/ArcanistPuppetLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistPuppetLintLinter.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-
-/**
- * A linter for Puppet files.
- */
-final class ArcanistPuppetLintLinter extends ArcanistExternalLinter {
-
- private $config;
-
- public function getInfoName() {
- return 'puppet-lint';
- }
-
- public function getInfoURI() {
- return 'http://puppet-lint.com/';
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use `%s` to check that your Puppet manifests '.
- 'conform to the style guide.',
- 'puppet-lint');
- }
-
- public function getLinterName() {
- return 'PUPPETLINT';
- }
-
- public function getLinterConfigurationName() {
- return 'puppet-lint';
- }
-
- public function getDefaultBinary() {
- return 'puppet-lint';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^puppet-lint (?P<version>\d+\.\d+\.\d+)$/';
- if (preg_match($regex, $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install puppet-lint using `%s`.',
- 'gem install puppet-lint');
- }
-
- protected function getMandatoryFlags() {
- return array(
- '--error-level=all',
- sprintf('--log-format=%s', implode('|', array(
- '%{linenumber}',
- '%{column}',
- '%{kind}',
- '%{check}',
- '%{message}',
- ))),
- );
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'puppet-lint.config' => array(
- 'type' => 'optional string',
- 'help' => pht('Pass in a custom configuration file path.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'puppet-lint.config':
- $this->config = $value;
- return;
-
- default:
- return parent::setLinterConfigurationValue($key, $value);
- }
- }
-
- protected function getDefaultFlags() {
- $options = array();
-
- if ($this->config) {
- $options[] = '--config='.$this->config;
- }
-
- return $options;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stdout, false);
- $messages = array();
-
- foreach ($lines as $line) {
- $matches = explode('|', $line, 5);
-
- if (count($matches) < 5) {
- continue;
- }
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($matches[0])
- ->setChar($matches[1])
- ->setCode($this->getLinterName())
- ->setName(ucwords(str_replace('_', ' ', $matches[3])))
- ->setDescription(ucfirst($matches[4]));
-
- switch ($matches[2]) {
- case 'warning':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- break;
-
- case 'error':
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
-
- default:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- break;
- }
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistPyFlakesLinter.php b/src/lint/linter/ArcanistPyFlakesLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistPyFlakesLinter.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-
-/**
- * Uses "PyFlakes" to detect various errors in Python code.
- */
-final class ArcanistPyFlakesLinter extends ArcanistExternalLinter {
-
- public function getInfoURI() {
- return 'https://pypi.python.org/pypi/pyflakes';
- }
-
- public function getInfoName() {
- return pht('Python PyFlakes');
- }
-
- public function getInfoDescription() {
- return pht(
- 'PyFlakes is a simple program which checks Python source files for '.
- 'errors.');
- }
-
- public function getLinterName() {
- return 'PYFLAKES';
- }
-
- public function getLinterConfigurationName() {
- return 'pyflakes';
- }
-
- public function getDefaultBinary() {
- return 'pyflakes';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install pyflakes with `%s`.', 'pip install pyflakes');
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stdout, false);
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = null;
- if (!preg_match('/^(.*?):(\d+): (.*)$/', $line, $matches)) {
- continue;
- }
- foreach ($matches as $key => $match) {
- $matches[$key] = trim($match);
- }
-
- $severity = ArcanistLintSeverity::SEVERITY_WARNING;
- $description = $matches[3];
-
- $error_regexp = '/(^undefined|^duplicate|before assignment$)/';
- if (preg_match($error_regexp, $description)) {
- $severity = ArcanistLintSeverity::SEVERITY_ERROR;
- }
-
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches[2]);
- $message->setCode($this->getLinterName());
- $message->setName($this->getLinterName());
- $message->setDescription($description);
- $message->setSeverity($severity);
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
- protected function canCustomizeLintSeverities() {
- return false;
- }
-
-}
diff --git a/src/lint/linter/ArcanistPyLintLinter.php b/src/lint/linter/ArcanistPyLintLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistPyLintLinter.php
+++ /dev/null
@@ -1,183 +0,0 @@
-<?php
-
-/**
- * Uses "PyLint" to detect various errors in Python code.
- */
-final class ArcanistPyLintLinter extends ArcanistExternalLinter {
-
- private $config;
-
- public function getInfoName() {
- return 'PyLint';
- }
-
- public function getInfoURI() {
- return 'http://www.pylint.org/';
- }
-
- public function getInfoDescription() {
- return pht(
- 'PyLint is a Python source code analyzer which looks for '.
- 'programming errors, helps enforcing a coding standard and '.
- 'sniffs for some code smells.');
- }
-
- public function getLinterName() {
- return 'PyLint';
- }
-
- public function getLinterConfigurationName() {
- return 'pylint';
- }
-
- public function getDefaultBinary() {
- return 'pylint';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^pylint (?P<version>\d+\.\d+\.\d+),/';
- if (preg_match($regex, $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht(
- 'Install PyLint using `%s`.',
- 'pip install pylint');
- }
-
- public function shouldExpectCommandErrors() {
- return true;
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'pylint.config' => array(
- 'type' => 'optional string',
- 'help' => pht('Pass in a custom configuration file path.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'pylint.config':
- $this->config = $value;
- return;
-
- default:
- return parent::setLinterConfigurationValue($key, $value);
- }
- }
-
- protected function getMandatoryFlags() {
- $options = array();
-
- $options[] = '--reports=no';
- $options[] = '--msg-template={line}|{column}|{msg_id}|{symbol}|{msg}';
-
- // Specify an `--rcfile`, either absolute or relative to the project root.
- // Stupidly, the command line args above are overridden by rcfile, so be
- // careful.
- $config = $this->config;
- if ($config !== null) {
- $options[] = '--rcfile='.$config;
- }
-
- return $options;
- }
-
- protected function getDefaultFlags() {
- $options = array();
-
- $installed_version = $this->getVersion();
- $minimum_version = '1.0.0';
- if (version_compare($installed_version, $minimum_version, '<')) {
- throw new ArcanistMissingLinterException(
- pht(
- '%s is not compatible with the installed version of pylint. '.
- 'Minimum version: %s; installed version: %s.',
- __CLASS__,
- $minimum_version,
- $installed_version));
- }
-
- return $options;
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- if ($err === 32) {
- // According to `man pylint` the exit status of 32 means there was a
- // usage error. That's bad, so actually exit abnormally.
- return false;
- }
-
- $lines = phutil_split_lines($stdout, false);
- $messages = array();
-
- foreach ($lines as $line) {
- $matches = explode('|', $line, 5);
-
- if (count($matches) < 5) {
- continue;
- }
-
- // NOTE: PyLint sometimes returns -1 as the character offset for a
- // message. If it does, treat it as 0. See T9257.
- $char = (int)$matches[1];
- $char = max(0, $char);
-
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($matches[0])
- ->setChar($char)
- ->setCode($matches[2])
- ->setSeverity($this->getLintMessageSeverity($matches[2]))
- ->setName(ucwords(str_replace('-', ' ', $matches[3])))
- ->setDescription($matches[4]);
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
- protected function getDefaultMessageSeverity($code) {
- switch (substr($code, 0, 1)) {
- case 'R':
- case 'C':
- return ArcanistLintSeverity::SEVERITY_ADVICE;
- case 'W':
- return ArcanistLintSeverity::SEVERITY_WARNING;
- case 'E':
- case 'F':
- return ArcanistLintSeverity::SEVERITY_ERROR;
- default:
- return ArcanistLintSeverity::SEVERITY_DISABLED;
- }
- }
-
- protected function getLintCodeFromLinterConfigurationKey($code) {
- if (!preg_match('/^(R|C|W|E|F)\d{4}$/', $code)) {
- throw new Exception(
- pht(
- 'Unrecognized lint message code "%s". Expected a valid Pylint '.
- 'lint code like "%s", or "%s", or "%s".',
- $code,
- 'C0111',
- 'E0602',
- 'W0611'));
- }
-
- return $code;
- }
-
-}
diff --git a/src/lint/linter/ArcanistRuboCopLinter.php b/src/lint/linter/ArcanistRuboCopLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistRuboCopLinter.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-
-final class ArcanistRuboCopLinter extends ArcanistExternalLinter {
-
- private $config;
-
- public function getInfoName() {
- return 'Ruby static code analyzer';
- }
-
- public function getInfoURI() {
- return 'http://batsov.com/rubocop';
- }
-
- public function getInfoDescription() {
- return pht(
- 'RuboCop is a Ruby static code analyzer, based on the community Ruby '.
- 'style guide.');
- }
-
- public function getLinterName() {
- return 'RuboCop';
- }
-
- public function getLinterConfigurationName() {
- return 'rubocop';
- }
-
- public function getDefaultBinary() {
- return 'rubocop';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install RuboCop using `%s`.', 'gem install rubocop');
- }
-
- protected function getMandatoryFlags() {
- $options = array(
- '--format=json',
- );
-
- if ($this->config) {
- $options[] = '--config='.$this->config;
- }
-
- return $options;
- }
-
- public function getLinterConfigurationOptions() {
- $options = array(
- 'rubocop.config' => array(
- 'type' => 'optional string',
- 'help' => pht('A custom configuration file.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'rubocop.config':
- $this->config = $value;
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $results = phutil_json_decode($stdout);
- $messages = array();
-
- foreach ($results['files'] as $file) {
- foreach ($file['offenses'] as $offense) {
- $message = id(new ArcanistLintMessage())
- ->setPath($file['path'])
- ->setDescription($offense['message'])
- ->setLine($offense['location']['line'])
- ->setChar($offense['location']['column'])
- ->setSeverity($this->getLintMessageSeverity($offense['severity']))
- ->setName($this->getLinterName())
- ->setCode($offense['cop_name']);
- $messages[] = $message;
- }
- }
-
- return $messages;
- }
-
- /**
- * Take the string from RuboCop's severity terminology and return an
- * @{class:ArcanistLintSeverity}.
- */
- protected function getDefaultMessageSeverity($code) {
- switch ($code) {
- case 'convention':
- case 'refactor':
- case 'warning':
- return ArcanistLintSeverity::SEVERITY_WARNING;
- case 'error':
- case 'fatal':
- return ArcanistLintSeverity::SEVERITY_ERROR;
- default:
- return ArcanistLintSeverity::SEVERITY_ADVICE;
- }
- }
-
-}
diff --git a/src/lint/linter/ArcanistRubyLinter.php b/src/lint/linter/ArcanistRubyLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistRubyLinter.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/**
- * Uses `ruby` to detect various errors in Ruby code.
- */
-final class ArcanistRubyLinter extends ArcanistExternalLinter {
-
- public function getInfoURI() {
- return 'https://www.ruby-lang.org/';
- }
-
- public function getInfoName() {
- return pht('Ruby');
- }
-
- public function getInfoDescription() {
- return pht(
- 'Use `%s` to check for syntax errors in Ruby source files.',
- 'ruby');
- }
-
- public function getLinterName() {
- return 'RUBY';
- }
-
- public function getLinterConfigurationName() {
- return 'ruby';
- }
-
- public function getDefaultBinary() {
- return 'ruby';
- }
-
- public function getVersion() {
- list($stdout) = execx('%C --version', $this->getExecutableCommand());
-
- $matches = array();
- $regex = '/^ruby (?P<version>\d+\.\d+\.\d+)+/';
- if (preg_match($regex, $stdout, $matches)) {
- return $matches['version'];
- } else {
- return false;
- }
- }
-
- public function getInstallInstructions() {
- return pht('Install `%s` from <%s>.', 'ruby', 'http://www.ruby-lang.org/');
- }
-
- protected function getMandatoryFlags() {
- // -w: turn on warnings
- // -c: check syntax
- return array('-w', '-c');
- }
-
- protected function parseLinterOutput($path, $err, $stdout, $stderr) {
- $lines = phutil_split_lines($stderr, false);
-
- $messages = array();
- foreach ($lines as $line) {
- $matches = null;
-
- if (!preg_match('/(.*?):(\d+): (.*?)$/', $line, $matches)) {
- continue;
- }
-
- foreach ($matches as $key => $match) {
- $matches[$key] = trim($match);
- }
-
- $code = head(explode(',', $matches[3]));
-
- $message = new ArcanistLintMessage();
- $message->setPath($path);
- $message->setLine($matches[2]);
- $message->setCode($this->getLinterName());
- $message->setName(pht('Syntax Error'));
- $message->setDescription($matches[3]);
- $message->setSeverity($this->getLintMessageSeverity($code));
-
- $messages[] = $message;
- }
-
- return $messages;
- }
-
-}
diff --git a/src/lint/linter/ArcanistScriptAndRegexLinter.php b/src/lint/linter/ArcanistScriptAndRegexLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistScriptAndRegexLinter.php
+++ /dev/null
@@ -1,392 +0,0 @@
-<?php
-
-/**
- * Simple glue linter which runs some script on each path, and then uses a
- * regex to parse lint messages from the script's output. (This linter uses a
- * script and a regex to interpret the results of some real linter, it does
- * not itself lint both scripts and regexes).
- *
- * Configure this linter by setting these keys in your .arclint section:
- *
- * - `script-and-regex.script` Script command to run. This can be
- * the path to a linter script, but may also include flags or use shell
- * features (see below for examples).
- * - `script-and-regex.regex` The regex to process output with. This
- * regex uses named capturing groups (detailed below) to interpret output.
- *
- * The script will be invoked from the project root, so you can specify a
- * relative path like `scripts/lint.sh` or an absolute path like
- * `/opt/lint/lint.sh`.
- *
- * This linter is necessarily more limited in its capabilities than a normal
- * linter which can perform custom processing, but may be somewhat simpler to
- * configure.
- *
- * == Script... ==
- *
- * The script will be invoked once for each file that is to be linted, with
- * the file passed as the first argument. The file may begin with a "-"; ensure
- * your script will not interpret such files as flags (perhaps by ending your
- * script configuration with "--", if its argument parser supports that).
- *
- * Note that when run via `arc diff`, the list of files to be linted includes
- * deleted files and files that were moved away by the change. The linter should
- * not assume the path it is given exists, and it is not an error for the
- * linter to be invoked with paths which are no longer there. (Every affected
- * path is subject to lint because some linters may raise errors in other files
- * when a file is removed, or raise an error about its removal.)
- *
- * The script should emit lint messages to stdout, which will be parsed with
- * the provided regex.
- *
- * For example, you might use a configuration like this:
- *
- * /opt/lint/lint.sh --flag value --other-flag --
- *
- * stderr is ignored. If you have a script which writes messages to stderr,
- * you can redirect stderr to stdout by using a configuration like this:
- *
- * sh -c '/opt/lint/lint.sh "$0" 2>&1'
- *
- * The return code of the script must be 0, or an exception will be raised
- * reporting that the linter failed. If you have a script which exits nonzero
- * under normal circumstances, you can force it to always exit 0 by using a
- * configuration like this:
- *
- * sh -c '/opt/lint/lint.sh "$0" || true'
- *
- * Multiple instances of the script will be run in parallel if there are
- * multiple files to be linted, so they should not use any unique resources.
- * For instance, this configuration would not work properly, because several
- * processes may attempt to write to the file at the same time:
- *
- * COUNTEREXAMPLE
- * sh -c '/opt/lint/lint.sh --output /tmp/lint.out "$0" && cat /tmp/lint.out'
- *
- * There are necessary limits to how gracefully this linter can deal with
- * edge cases, because it is just a script and a regex. If you need to do
- * things that this linter can't handle, you can write a phutil linter and move
- * the logic to handle those cases into PHP. PHP is a better general-purpose
- * programming language than regular expressions are, if only by a small margin.
- *
- * == ...and Regex ==
- *
- * The regex must be a valid PHP PCRE regex, including delimiters and flags.
- *
- * The regex will be matched against the entire output of the script, so it
- * should generally be in this form if messages are one-per-line:
- *
- * /^...$/m
- *
- * The regex should capture these named patterns with `(?P<name>...)`:
- *
- * - `message` (required) Text describing the lint message. For example,
- * "This is a syntax error.".
- * - `name` (optional) Text summarizing the lint message. For example,
- * "Syntax Error".
- * - `severity` (optional) The word "error", "warning", "autofix", "advice",
- * or "disabled", in any combination of upper and lower case. Instead, you
- * may match groups called `error`, `warning`, `advice`, `autofix`, or
- * `disabled`. These allow you to match output formats like "E123" and
- * "W123" to indicate errors and warnings, even though the word "error" is
- * not present in the output. If no severity capturing group is present,
- * messages are raised with "error" severity. If multiple severity capturing
- * groups are present, messages are raised with the highest captured
- * severity. Capturing groups like `error` supersede the `severity`
- * capturing group.
- * - `error` (optional) Match some nonempty substring to indicate that this
- * message has "error" severity.
- * - `warning` (optional) Match some nonempty substring to indicate that this
- * message has "warning" severity.
- * - `advice` (optional) Match some nonempty substring to indicate that this
- * message has "advice" severity.
- * - `autofix` (optional) Match some nonempty substring to indicate that this
- * message has "autofix" severity.
- * - `disabled` (optional) Match some nonempty substring to indicate that this
- * message has "disabled" severity.
- * - `file` (optional) The name of the file to raise the lint message in. If
- * not specified, defaults to the linted file. It is generally not necessary
- * to capture this unless the linter can raise messages in files other than
- * the one it is linting.
- * - `line` (optional) The line number of the message. If no text is
- * captured, the message is assumed to affect the entire file.
- * - `char` (optional) The character offset of the message.
- * - `offset` (optional) The byte offset of the message. If captured, this
- * supersedes `line` and `char`.
- * - `original` (optional) The text the message affects.
- * - `replacement` (optional) The text that the range captured by `original`
- * should be automatically replaced by to resolve the message.
- * - `code` (optional) A short error type identifier which can be used
- * elsewhere to configure handling of specific types of messages. For
- * example, "EXAMPLE1", "EXAMPLE2", etc., where each code identifies a
- * class of message like "syntax error", "missing whitespace", etc. This
- * allows configuration to later change the severity of all whitespace
- * messages, for example.
- * - `ignore` (optional) Match some nonempty substring to ignore the match.
- * You can use this if your linter sometimes emits text like "No lint
- * errors".
- * - `stop` (optional) Match some nonempty substring to stop processing input.
- * Remaining matches for this file will be discarded, but linting will
- * continue with other linters and other files.
- * - `halt` (optional) Match some nonempty substring to halt all linting of
- * this file by any linter. Linting will continue with other files.
- * - `throw` (optional) Match some nonempty substring to throw an error, which
- * will stop `arc` completely. You can use this to fail abruptly if you
- * encounter unexpected output. All processing will abort.
- *
- * Numbered capturing groups are ignored.
- *
- * For example, if your lint script's output looks like this:
- *
- * error:13 Too many goats!
- * warning:22 Not enough boats.
- *
- * ...you could use this regex to parse it:
- *
- * /^(?P<severity>warning|error):(?P<line>\d+) (?P<message>.*)$/m
- *
- * The simplest valid regex for line-oriented output is something like this:
- *
- * /^(?P<message>.*)$/m
- *
- * @task lint Linting
- * @task linterinfo Linter Information
- * @task parse Parsing Output
- * @task config Validating Configuration
- */
-final class ArcanistScriptAndRegexLinter extends ArcanistLinter {
-
- private $script = null;
- private $regex = null;
- private $output = array();
-
- public function getInfoName() {
- return pht('Script and Regex');
- }
-
- public function getInfoDescription() {
- return pht(
- 'Run an external script, then parse its output with a regular '.
- 'expression. This is a generic binding that can be used to '.
- 'run custom lint scripts.');
- }
-
-/* -( Linting )------------------------------------------------------------ */
-
-
- /**
- * Run the script on each file to be linted.
- *
- * @task lint
- */
- public function willLintPaths(array $paths) {
- $root = $this->getProjectRoot();
-
- $futures = array();
- foreach ($paths as $path) {
- $future = new ExecFuture('%C %s', $this->script, $path);
- $future->setCWD($root);
- $futures[$path] = $future;
- }
-
- $futures = id(new FutureIterator($futures))
- ->limit(4);
- foreach ($futures as $path => $future) {
- list($stdout) = $future->resolvex();
- $this->output[$path] = $stdout;
- }
- }
-
- /**
- * Run the regex on the output of the script.
- *
- * @task lint
- */
- public function lintPath($path) {
- $output = idx($this->output, $path);
- if (!strlen($output)) {
- // No output, but it exited 0, so just move on.
- return;
- }
-
- $matches = null;
- if (!preg_match_all($this->regex, $output, $matches, PREG_SET_ORDER)) {
- // Output with no matches. This might be a configuration error, but more
- // likely it's something like "No lint errors." and the user just hasn't
- // written a sufficiently powerful/ridiculous regexp to capture it into an
- // 'ignore' group. Don't make them figure this out; advanced users can
- // capture 'throw' to handle this case.
- return;
- }
-
- foreach ($matches as $match) {
- if (!empty($match['throw'])) {
- $throw = $match['throw'];
- throw new ArcanistUsageException(
- pht(
- "%s: configuration captured a '%s' named capturing group, ".
- "'%s'. Script output:\n%s",
- __CLASS__,
- 'throw',
- $throw,
- $output));
- }
-
- if (!empty($match['halt'])) {
- $this->stopAllLinters();
- break;
- }
-
- if (!empty($match['stop'])) {
- break;
- }
-
- if (!empty($match['ignore'])) {
- continue;
- }
-
- list($line, $char) = $this->getMatchLineAndChar($match, $path);
-
- $dict = array(
- 'path' => idx($match, 'file', $path),
- 'line' => $line,
- 'char' => $char,
- 'code' => idx($match, 'code', $this->getLinterName()),
- 'severity' => $this->getMatchSeverity($match),
- 'name' => idx($match, 'name', 'Lint'),
- 'description' => idx($match, 'message', pht('Undefined Lint Message')),
- );
-
- $original = idx($match, 'original');
- if ($original !== null) {
- $dict['original'] = $original;
- }
-
- $replacement = idx($match, 'replacement');
- if ($replacement !== null) {
- $dict['replacement'] = $replacement;
- }
-
- $lint = ArcanistLintMessage::newFromDictionary($dict);
- $this->addLintMessage($lint);
- }
- }
-
-
-/* -( Linter Information )------------------------------------------------- */
-
- /**
- * Return the short name of the linter.
- *
- * @return string Short linter identifier.
- *
- * @task linterinfo
- */
- public function getLinterName() {
- return 'S&RX';
- }
-
- public function getLinterConfigurationName() {
- return 'script-and-regex';
- }
-
- public function getLinterConfigurationOptions() {
- // These fields are optional only to avoid breaking things.
- $options = array(
- 'script-and-regex.script' => array(
- 'type' => 'string',
- 'help' => pht('Script to execute.'),
- ),
- 'script-and-regex.regex' => array(
- 'type' => 'regex',
- 'help' => pht('The regex to process output with.'),
- ),
- );
-
- return $options + parent::getLinterConfigurationOptions();
- }
-
- public function setLinterConfigurationValue($key, $value) {
- switch ($key) {
- case 'script-and-regex.script':
- $this->script = $value;
- return;
- case 'script-and-regex.regex':
- $this->regex = $value;
- return;
- }
-
- return parent::setLinterConfigurationValue($key, $value);
- }
-
-/* -( Parsing Output )----------------------------------------------------- */
-
- /**
- * Get the line and character of the message from the regex match.
- *
- * @param dict Captured groups from regex.
- * @return pair<int|null,int|null> Line and character of the message.
- *
- * @task parse
- */
- private function getMatchLineAndChar(array $match, $path) {
- if (!empty($match['offset'])) {
- list($line, $char) = $this->getEngine()->getLineAndCharFromOffset(
- idx($match, 'file', $path),
- $match['offset']);
- return array($line + 1, $char + 1);
- }
-
- $line = idx($match, 'line');
- if (strlen($line)) {
- $line = (int)$line;
- if (!$line) {
- $line = 1;
- }
- } else {
- $line = null;
- }
-
- $char = idx($match, 'char');
- if ($char) {
- $char = (int)$char;
- } else {
- $char = null;
- }
-
- return array($line, $char);
- }
-
- /**
- * Map the regex matching groups to a message severity. We look for either
- * a nonempty severity name group like 'error', or a group called 'severity'
- * with a valid name.
- *
- * @param dict Captured groups from regex.
- * @return const @{class:ArcanistLintSeverity} constant.
- *
- * @task parse
- */
- private function getMatchSeverity(array $match) {
- $map = array(
- 'error' => ArcanistLintSeverity::SEVERITY_ERROR,
- 'warning' => ArcanistLintSeverity::SEVERITY_WARNING,
- 'autofix' => ArcanistLintSeverity::SEVERITY_AUTOFIX,
- 'advice' => ArcanistLintSeverity::SEVERITY_ADVICE,
- 'disabled' => ArcanistLintSeverity::SEVERITY_DISABLED,
- );
-
- $severity_name = strtolower(idx($match, 'severity'));
-
- foreach ($map as $name => $severity) {
- if (!empty($match[$name])) {
- return $severity;
- } else if ($severity_name == $name) {
- return $severity;
- }
- }
-
- return ArcanistLintSeverity::SEVERITY_ERROR;
- }
-
-}
diff --git a/src/lint/linter/ArcanistXMLLinter.php b/src/lint/linter/ArcanistXMLLinter.php
deleted file mode 100644
--- a/src/lint/linter/ArcanistXMLLinter.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-/**
- * A linter which uses [[http://php.net/simplexml | SimpleXML]] to detect
- * errors and potential problems in XML files.
- */
-final class ArcanistXMLLinter extends ArcanistLinter {
-
- public function getInfoName() {
- return pht('SimpleXML Linter');
- }
-
- public function getInfoDescription() {
- return pht('Uses SimpleXML to detect formatting errors in XML files.');
- }
-
- public function getLinterName() {
- return 'XML';
- }
-
- public function getLinterConfigurationName() {
- return 'xml';
- }
-
- public function canRun() {
- return extension_loaded('libxml') && extension_loaded('simplexml');
- }
-
- public function getCacheVersion() {
- return LIBXML_VERSION;
- }
-
- public function lintPath($path) {
- libxml_use_internal_errors(true);
- libxml_clear_errors();
-
- if (simplexml_load_string($this->getData($path))) {
- // XML appears to be valid.
- return;
- }
-
- foreach (libxml_get_errors() as $error) {
- $message = id(new ArcanistLintMessage())
- ->setPath($path)
- ->setLine($error->line)
- ->setChar($error->column ? $error->column : null)
- ->setCode($this->getLintMessageFullCode($error->code))
- ->setName(pht('LibXML Error'))
- ->setDescription(trim($error->message));
-
- switch ($error->level) {
- case LIBXML_ERR_NONE:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_DISABLED);
- break;
-
- case LIBXML_ERR_WARNING:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_WARNING);
- break;
-
- case LIBXML_ERR_ERROR:
- case LIBXML_ERR_FATAL:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR);
- break;
-
- default:
- $message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- break;
- }
-
- $this->addLintMessage($message);
- }
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistCSSLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistCSSLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistCSSLintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistCSSLintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/csslint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistClosureLinterTestCase.php b/src/lint/linter/__tests__/ArcanistClosureLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistClosureLinterTestCase.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-final class ArcanistClosureLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- protected function getLinter() {
- $linter = new ArcanistClosureLinter();
- $linter->setFlags(array('--additional_extensions=lint-test'));
- return $linter;
- }
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/gjslint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistCoffeeLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistCoffeeLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistCoffeeLintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistCoffeeLintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/coffeelint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistCppcheckLinterTestCase.php b/src/lint/linter/__tests__/ArcanistCppcheckLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistCppcheckLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistCppcheckLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/cppcheck/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistCpplintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistCpplintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistCpplintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistCpplintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/cpplint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistExternalLinterTestCase.php b/src/lint/linter/__tests__/ArcanistExternalLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistExternalLinterTestCase.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-abstract class ArcanistExternalLinterTestCase extends ArcanistLinterTestCase {
-
- final public function testVersion() {
- try {
- $version = $this->getLinter()->getVersion();
- $this->assertTrue(
- $version !== false,
- pht('Failed to parse version from command.'));
- } catch (ArcanistMissingLinterException $ex) {
- $this->assertSkipped($ex->getMessage());
- }
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistFlake8LinterTestCase.php b/src/lint/linter/__tests__/ArcanistFlake8LinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistFlake8LinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistFlake8LinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/flake8/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistGoLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistGoLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistGoLintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistGoLintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/golint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistHLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistHLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistHLintLinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistHLintLinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/hlint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistJSHintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistJSHintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistJSHintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistJSHintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/jshint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistJSONLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistJSONLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistJSONLintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistJSONLintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/jsonlint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php b/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php
--- a/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php
+++ b/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php
@@ -3,7 +3,7 @@
final class ArcanistJSONLinterTestCase extends ArcanistLinterTestCase {
public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/jsonlint/');
+ $this->executeTestsInDirectory(dirname(__FILE__).'/json/');
}
}
diff --git a/src/lint/linter/__tests__/ArcanistJscsLinterTestCase.php b/src/lint/linter/__tests__/ArcanistJscsLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistJscsLinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistJscsLinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/jscs/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistLesscLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLesscLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistLesscLinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistLesscLinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/lessc/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistPEP8LinterTestCase.php b/src/lint/linter/__tests__/ArcanistPEP8LinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistPEP8LinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistPEP8LinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/pep8/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistPhpLinterTestCase.php b/src/lint/linter/__tests__/ArcanistPhpLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistPhpLinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistPhpLinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/php/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistPhpcsLinterTestCase.php b/src/lint/linter/__tests__/ArcanistPhpcsLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistPhpcsLinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistPhpcsLinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/phpcs/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistPuppetLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistPuppetLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistPuppetLintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistPuppetLintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/puppet-lint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistPyFlakesLinterTestCase.php b/src/lint/linter/__tests__/ArcanistPyFlakesLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistPyFlakesLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistPyFlakesLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/pyflakes/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistPyLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistPyLintLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistPyLintLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistPyLintLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/pylint/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistRuboCopLinterTestCase.php b/src/lint/linter/__tests__/ArcanistRuboCopLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistRuboCopLinterTestCase.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-final class ArcanistRuboCopLinterTestCase
- extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/rubocop/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistRubyLinterTestCase.php b/src/lint/linter/__tests__/ArcanistRubyLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistRubyLinterTestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-final class ArcanistRubyLinterTestCase extends ArcanistExternalLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/ruby/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php b/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php
deleted file mode 100644
--- a/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-/**
- * Test cases were mostly taken from
- * https://git.gnome.org/browse/libxml2/tree/test.
- */
-final class ArcanistXMLLinterTestCase extends ArcanistLinterTestCase {
-
- public function testLinter() {
- $this->executeTestsInDirectory(dirname(__FILE__).'/xml/');
- }
-
-}
diff --git a/src/lint/linter/__tests__/coffeelint/camel_case_classes.lint-test b/src/lint/linter/__tests__/coffeelint/camel_case_classes.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/camel_case_classes.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-class boaConstrictor
-~~~~~~~~~~
-error:1:
diff --git a/src/lint/linter/__tests__/coffeelint/duplicate_key.lint-test b/src/lint/linter/__tests__/coffeelint/duplicate_key.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/duplicate_key.lint-test
+++ /dev/null
@@ -1,18 +0,0 @@
-class SomeThing
- getConfig: ->
- one = 1
- one = 5
- @config =
- keyA: one
- keyB: one
- keyA: 2
- getConfig: ->
- @config =
- foo: 1
-
- @getConfig: ->
- config =
- foo: 1
-~~~~~~~~~~
-error:8:
-error:9:
diff --git a/src/lint/linter/__tests__/coffeelint/indentation.lint-test b/src/lint/linter/__tests__/coffeelint/indentation.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/indentation.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-twoSpaces = () ->
- fourSpaces = () ->
- eightSpaces = () ->
- 'this is valid CoffeeScript'
-~~~~~~~~~~
-error:3:
-error:4:
diff --git a/src/lint/linter/__tests__/coffeelint/max_line_length.lint-test b/src/lint/linter/__tests__/coffeelint/max_line_length.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/max_line_length.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-#--------------------------------------------------------------------------------
-~~~~~~~~~~
-error:1:
diff --git a/src/lint/linter/__tests__/coffeelint/no_backticks.lint-test b/src/lint/linter/__tests__/coffeelint/no_backticks.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/no_backticks.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-`with(document) alert(height);`
-~~~~~~~~~~
-error:1:
diff --git a/src/lint/linter/__tests__/coffeelint/no_debugger.lint-test b/src/lint/linter/__tests__/coffeelint/no_debugger.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/no_debugger.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-debugger
-~~~~~~~~~~
-warning:1:
diff --git a/src/lint/linter/__tests__/coffeelint/no_tabs.lint-test b/src/lint/linter/__tests__/coffeelint/no_tabs.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/no_tabs.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-x = () ->
- y = () ->
- return 1234
-~~~~~~~~~~
-error:2:
-error:3:
diff --git a/src/lint/linter/__tests__/coffeelint/no_throwing_strings.lint-test b/src/lint/linter/__tests__/coffeelint/no_throwing_strings.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/no_throwing_strings.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-throw "i made a boo boo"
-~~~~~~~~~~
-error:1:
diff --git a/src/lint/linter/__tests__/coffeelint/no_trailing_semicolons.lint-test b/src/lint/linter/__tests__/coffeelint/no_trailing_semicolons.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/no_trailing_semicolons.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-alert('end of line');
-~~~~~~~~~~
-error:1:
diff --git a/src/lint/linter/__tests__/coffeelint/no_trailing_whitespace.lint-test b/src/lint/linter/__tests__/coffeelint/no_trailing_whitespace.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/coffeelint/no_trailing_whitespace.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-x = 1234
-y = 1
-~~~~~~~~~~
-error:1:
diff --git a/src/lint/linter/__tests__/cppcheck/file1.lint-test b/src/lint/linter/__tests__/cppcheck/file1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/cppcheck/file1.lint-test
+++ /dev/null
@@ -1,9 +0,0 @@
-int main()
-{
- char a[10];
- a[10] = 0;
- return 0;
-}
-~~~~~~~~~~
-error:4:
-warning:4:
diff --git a/src/lint/linter/__tests__/cppcheck/inline-suppr.lint-test b/src/lint/linter/__tests__/cppcheck/inline-suppr.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/cppcheck/inline-suppr.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-void f() {
- char arr[5];
- // cppcheck-suppress arrayIndexOutOfBounds
- // cppcheck-suppress unreadVariable
- arr[10] = 0;
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/cppcheck/ok.lint-test b/src/lint/linter/__tests__/cppcheck/ok.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/cppcheck/ok.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-int main()
-{
- return 0;
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/cppcheck/zblair.lint-test b/src/lint/linter/__tests__/cppcheck/zblair.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/cppcheck/zblair.lint-test
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Taken from http://www.slideshare.net/zblair/cppcheck-10316379
- */
-void foo(char* str) {
- char* buf = new char[8];
- strcpy(buf, str);
-
- FILE* file = fopen("out.txt", "w");
- if (!file)
- return;
-
- for (char* c = buf; *c; ++c)
- fputc((int)*c, file);
-
- delete buf;
-}
-~~~~~~~~~~
-error:10:
-error:16:
diff --git a/src/lint/linter/__tests__/cpplint/googlestyle.lint-test b/src/lint/linter/__tests__/cpplint/googlestyle.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/cpplint/googlestyle.lint-test
+++ /dev/null
@@ -1,10 +0,0 @@
-#include "library.cpp"
-#include <stdio>
-
-void main()
-{
-}
-~~~~~~~~~~
-warning:0:
-warning:2:
-warning:5:
diff --git a/src/lint/linter/__tests__/csslint/duplicate-properties.lint-test b/src/lint/linter/__tests__/csslint/duplicate-properties.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/csslint/duplicate-properties.lint-test
+++ /dev/null
@@ -1,10 +0,0 @@
-.rule {
- font-weight: bold;
- font-weight: bold;
- font-weight: bold;
- font-weight: bold;
-}
-~~~~~~~~~~
-warning:3:3
-warning:4:3
-warning:5:3
diff --git a/src/lint/linter/__tests__/csslint/empty-rule.lint-test b/src/lint/linter/__tests__/csslint/empty-rule.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/csslint/empty-rule.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-.rule { }
-~~~~~~~~~~
-warning:1:1
diff --git a/src/lint/linter/__tests__/csslint/no-line-related-issue.lint-test b/src/lint/linter/__tests__/csslint/no-line-related-issue.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/csslint/no-line-related-issue.lint-test
+++ /dev/null
@@ -1,9 +0,0 @@
-h1 {
- font-weight: bold;
-}
-h1 {
- font-weight: bold;
-}
-~~~~~~~~~~
-warning::
-warning:4:1
diff --git a/src/lint/linter/__tests__/csslint/parse-error.lint-test b/src/lint/linter/__tests__/csslint/parse-error.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/csslint/parse-error.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-li {
- float: left;
- float left;
-}
-~~~~~~~~~~
-error:3:9
diff --git a/src/lint/linter/__tests__/flake8/undefined.lint-test b/src/lint/linter/__tests__/flake8/undefined.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/flake8/undefined.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-x = 'y'
-
-def hello():
- return foo
-~~~~~~~~~~
-error:3:1
-error:4:12
diff --git a/src/lint/linter/__tests__/gjslint/gjslint.lint-test b/src/lint/linter/__tests__/gjslint/gjslint.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/gjslint/gjslint.lint-test
+++ /dev/null
@@ -1,20 +0,0 @@
-var x = 'some really really really really really really really long string';
-var y = 'some really really really really really really really really really long string',
- z = 14;
-var obj = {name : 'vm'};
-var x
-var result = true
- || false;
-/**
- * @param x
- * @return {string}
- */
-function foo(x) {
- return 'bar';
-}
-~~~~~~~~~~
-error:2:
-error:4:
-error:5:
-error:7:
-error:9:
diff --git a/src/lint/linter/__tests__/golint/1.lint-test b/src/lint/linter/__tests__/golint/1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/golint/1.lint-test
+++ /dev/null
@@ -1,18 +0,0 @@
-package main
-
-import (
- "rand"
-)
-
-type Exported string
-
-func main() {
- if rand.Intn(10) > 5 {
- return true
- } else {
- return false
- }
-}
-~~~~~~~~~~
-advice:7:6
-advice:12:12
diff --git a/src/lint/linter/__tests__/hlint/01_warn_null.lint-test b/src/lint/linter/__tests__/hlint/01_warn_null.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/hlint/01_warn_null.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-f xs = length xs == 0
-~~~~~~~~~~
-warning:1:8
diff --git a/src/lint/linter/__tests__/hlint/02_err_eta.lint-test b/src/lint/linter/__tests__/hlint/02_err_eta.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/hlint/02_err_eta.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-f x = x
-
-test x = f x
-~~~~~~~~~~
-error:3:1
diff --git a/src/lint/linter/__tests__/hlint/03_no_err.lint-test b/src/lint/linter/__tests__/hlint/03_no_err.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/hlint/03_no_err.lint-test
+++ /dev/null
@@ -1,2 +0,0 @@
-main = map (f . g) xs
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/jscs/curly-brace.lint-test b/src/lint/linter/__tests__/jscs/curly-brace.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jscs/curly-brace.lint-test
+++ /dev/null
@@ -1,13 +0,0 @@
-function foo() {
- if (true) return "foo"; else return "bar";
-}
-~~~~~~~~~~
-error:2:3
-error:2:27
-~~~~~~~~~~
-~~~~~~~~~~
-{
- "config": {
- "jscs.preset": "jquery"
- }
-}
diff --git a/src/lint/linter/__tests__/jshint/dot-notation.lint-test b/src/lint/linter/__tests__/jshint/dot-notation.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jshint/dot-notation.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-var args = {};
-args['foo'] = 'bar';
-args['bar'] = 'baz';
-~~~~~~~~~~
-warning:2:5
-warning:3:5
diff --git a/src/lint/linter/__tests__/jshint/expected-conditional.lint-test b/src/lint/linter/__tests__/jshint/expected-conditional.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jshint/expected-conditional.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-var foo;
-if (foo = 'bar') {
- return true;
-}
-~~~~~~~~~~
-warning:2:16
diff --git a/src/lint/linter/__tests__/jshint/jshint.lint-test b/src/lint/linter/__tests__/jshint/jshint.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jshint/jshint.lint-test
+++ /dev/null
@@ -1,12 +0,0 @@
-function f() {
- for (ii = 0; ii < 3; ii++) {
- g()
- }
-}
-
-{
-
-~~~~~~~~~~
-warning:3:8
-error:7:1
-error:9:
diff --git a/src/lint/linter/__tests__/jshint/missing-semicolon.lint-test b/src/lint/linter/__tests__/jshint/missing-semicolon.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jshint/missing-semicolon.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-console.log('foobar')
-~~~~~~~~~~
-warning:1:22
diff --git a/src/lint/linter/__tests__/jshint/too-many-errors.lint-test b/src/lint/linter/__tests__/jshint/too-many-errors.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jshint/too-many-errors.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-/* jshint maxerr: 1 */
-console.log('foobar')
-~~~~~~~~~~
-disabled:2:22
-warning:2:22
diff --git a/src/lint/linter/__tests__/jshint/unnecessary-semicolon.lint-test b/src/lint/linter/__tests__/jshint/unnecessary-semicolon.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/jshint/unnecessary-semicolon.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-function main() {
- return 'Hello, World!';
-};
-~~~~~~~~~~
-warning:3:2
diff --git a/src/lint/linter/__tests__/jsonlint/1.lint-test b/src/lint/linter/__tests__/json/1.lint-test
rename from src/lint/linter/__tests__/jsonlint/1.lint-test
rename to src/lint/linter/__tests__/json/1.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/10.lint-test b/src/lint/linter/__tests__/json/10.lint-test
rename from src/lint/linter/__tests__/jsonlint/10.lint-test
rename to src/lint/linter/__tests__/json/10.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/11.lint-test b/src/lint/linter/__tests__/json/11.lint-test
rename from src/lint/linter/__tests__/jsonlint/11.lint-test
rename to src/lint/linter/__tests__/json/11.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/12.lint-test b/src/lint/linter/__tests__/json/12.lint-test
rename from src/lint/linter/__tests__/jsonlint/12.lint-test
rename to src/lint/linter/__tests__/json/12.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/13.lint-test b/src/lint/linter/__tests__/json/13.lint-test
rename from src/lint/linter/__tests__/jsonlint/13.lint-test
rename to src/lint/linter/__tests__/json/13.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/14.lint-test b/src/lint/linter/__tests__/json/14.lint-test
rename from src/lint/linter/__tests__/jsonlint/14.lint-test
rename to src/lint/linter/__tests__/json/14.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/15.lint-test b/src/lint/linter/__tests__/json/15.lint-test
rename from src/lint/linter/__tests__/jsonlint/15.lint-test
rename to src/lint/linter/__tests__/json/15.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/16.lint-test b/src/lint/linter/__tests__/json/16.lint-test
rename from src/lint/linter/__tests__/jsonlint/16.lint-test
rename to src/lint/linter/__tests__/json/16.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/17.lint-test b/src/lint/linter/__tests__/json/17.lint-test
rename from src/lint/linter/__tests__/jsonlint/17.lint-test
rename to src/lint/linter/__tests__/json/17.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/19.lint-test b/src/lint/linter/__tests__/json/19.lint-test
rename from src/lint/linter/__tests__/jsonlint/19.lint-test
rename to src/lint/linter/__tests__/json/19.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/2.lint-test b/src/lint/linter/__tests__/json/2.lint-test
rename from src/lint/linter/__tests__/jsonlint/2.lint-test
rename to src/lint/linter/__tests__/json/2.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/20.lint-test b/src/lint/linter/__tests__/json/20.lint-test
rename from src/lint/linter/__tests__/jsonlint/20.lint-test
rename to src/lint/linter/__tests__/json/20.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/21.lint-test b/src/lint/linter/__tests__/json/21.lint-test
rename from src/lint/linter/__tests__/jsonlint/21.lint-test
rename to src/lint/linter/__tests__/json/21.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/22.lint-test b/src/lint/linter/__tests__/json/22.lint-test
rename from src/lint/linter/__tests__/jsonlint/22.lint-test
rename to src/lint/linter/__tests__/json/22.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/23.lint-test b/src/lint/linter/__tests__/json/23.lint-test
rename from src/lint/linter/__tests__/jsonlint/23.lint-test
rename to src/lint/linter/__tests__/json/23.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/24.lint-test b/src/lint/linter/__tests__/json/24.lint-test
rename from src/lint/linter/__tests__/jsonlint/24.lint-test
rename to src/lint/linter/__tests__/json/24.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/25.lint-test b/src/lint/linter/__tests__/json/25.lint-test
rename from src/lint/linter/__tests__/jsonlint/25.lint-test
rename to src/lint/linter/__tests__/json/25.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/26.lint-test b/src/lint/linter/__tests__/json/26.lint-test
rename from src/lint/linter/__tests__/jsonlint/26.lint-test
rename to src/lint/linter/__tests__/json/26.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/27.lint-test b/src/lint/linter/__tests__/json/27.lint-test
rename from src/lint/linter/__tests__/jsonlint/27.lint-test
rename to src/lint/linter/__tests__/json/27.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/28.lint-test b/src/lint/linter/__tests__/json/28.lint-test
rename from src/lint/linter/__tests__/jsonlint/28.lint-test
rename to src/lint/linter/__tests__/json/28.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/29.lint-test b/src/lint/linter/__tests__/json/29.lint-test
rename from src/lint/linter/__tests__/jsonlint/29.lint-test
rename to src/lint/linter/__tests__/json/29.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/3.lint-test b/src/lint/linter/__tests__/json/3.lint-test
rename from src/lint/linter/__tests__/jsonlint/3.lint-test
rename to src/lint/linter/__tests__/json/3.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/30.lint-test b/src/lint/linter/__tests__/json/30.lint-test
rename from src/lint/linter/__tests__/jsonlint/30.lint-test
rename to src/lint/linter/__tests__/json/30.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/31.lint-test b/src/lint/linter/__tests__/json/31.lint-test
rename from src/lint/linter/__tests__/jsonlint/31.lint-test
rename to src/lint/linter/__tests__/json/31.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/32.lint-test b/src/lint/linter/__tests__/json/32.lint-test
rename from src/lint/linter/__tests__/jsonlint/32.lint-test
rename to src/lint/linter/__tests__/json/32.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/33.lint-test b/src/lint/linter/__tests__/json/33.lint-test
rename from src/lint/linter/__tests__/jsonlint/33.lint-test
rename to src/lint/linter/__tests__/json/33.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/34.lint-test b/src/lint/linter/__tests__/json/34.lint-test
rename from src/lint/linter/__tests__/jsonlint/34.lint-test
rename to src/lint/linter/__tests__/json/34.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/4.lint-test b/src/lint/linter/__tests__/json/4.lint-test
rename from src/lint/linter/__tests__/jsonlint/4.lint-test
rename to src/lint/linter/__tests__/json/4.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/5.lint-test b/src/lint/linter/__tests__/json/5.lint-test
rename from src/lint/linter/__tests__/jsonlint/5.lint-test
rename to src/lint/linter/__tests__/json/5.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/6.lint-test b/src/lint/linter/__tests__/json/6.lint-test
rename from src/lint/linter/__tests__/jsonlint/6.lint-test
rename to src/lint/linter/__tests__/json/6.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/7.lint-test b/src/lint/linter/__tests__/json/7.lint-test
rename from src/lint/linter/__tests__/jsonlint/7.lint-test
rename to src/lint/linter/__tests__/json/7.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/8.lint-test b/src/lint/linter/__tests__/json/8.lint-test
rename from src/lint/linter/__tests__/jsonlint/8.lint-test
rename to src/lint/linter/__tests__/json/8.lint-test
diff --git a/src/lint/linter/__tests__/jsonlint/9.lint-test b/src/lint/linter/__tests__/json/9.lint-test
rename from src/lint/linter/__tests__/jsonlint/9.lint-test
rename to src/lint/linter/__tests__/json/9.lint-test
diff --git a/src/lint/linter/__tests__/lessc/css.lint-test b/src/lint/linter/__tests__/lessc/css.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/css.lint-test
+++ /dev/null
@@ -1,109 +0,0 @@
-@charset "utf-8";
-div { color: black; }
-div { width: 99%; }
-
-* {
- min-width: 45em;
-}
-
-h1, h2 > a > p, h3 {
- color: none;
-}
-
-div.class {
- color: blue;
-}
-
-div#id {
- color: green;
-}
-
-.class#id {
- color: purple;
-}
-
-.one.two.three {
- color: grey;
-}
-
-@media print {
- * {
- font-size: 3em;
- }
-}
-
-@media screen {
- * {
- font-size: 10px;
- }
-}
-
-@font-face {
- font-family: 'Garamond Pro';
-}
-
-a:hover, a:link {
- color: #999;
-}
-
-p, p:first-child {
- text-transform: none;
-}
-
-q:lang(no) {
- quotes: none;
-}
-
-p + h1 {
- font-size: +2.2em;
-}
-
-#shorthands {
- border: 1px solid #000;
- font: 12px/16px Arial;
- font: 100%/16px Arial;
- margin: 1px 0;
- padding: 0 auto;
-}
-
-#more-shorthands {
- margin: 0;
- padding: 1px 0 2px 0;
- font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
- font: 0/0 a;
- border-radius: 5px / 10px;
-}
-
-.misc {
- -moz-border-radius: 2px;
- display: -moz-inline-stack;
- width: .1em;
- background-color: #009998;
- background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
- margin: ;
- .nested-multiple {
- multiple-semi-colons: yes;;;;;;
- };
- filter: alpha(opacity=100);
- width: auto\9;
-}
-
-#important {
- color: red !important;
- width: 100%!important;
- height: 20px ! important;
-}
-
-.def-font(@name) {
- @font-face {
- font-family: @name
- }
-}
-
-.def-font(font-a);
-.def-font(font-b);
-
-.æøå {
- margin: 0;
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/empty.lint-test b/src/lint/linter/__tests__/lessc/empty.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/empty.lint-test
+++ /dev/null
@@ -1 +0,0 @@
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/errors/add-mixed-units.lint-test b/src/lint/linter/__tests__/lessc/errors/add-mixed-units.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/add-mixed-units.lint-test
+++ /dev/null
@@ -1,8 +0,0 @@
-.a {
- error: (1px + 3em);
-}
-~~~~~~~~~~
-error:2:3
-~~~~~~~~~~
-~~~~~~~~~~
-{"config":{"lessc.strict-units":true}}
diff --git a/src/lint/linter/__tests__/lessc/errors/color-func-invalid-color.lint-test b/src/lint/linter/__tests__/lessc/errors/color-func-invalid-color.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/color-func-invalid-color.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-.test {
- color: color("NOT A COLOR");
-}
-~~~~~~~~~~
-error:2:10
diff --git a/src/lint/linter/__tests__/lessc/errors/divide-mixed-units.lint-test b/src/lint/linter/__tests__/lessc/errors/divide-mixed-units.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/divide-mixed-units.lint-test
+++ /dev/null
@@ -1,8 +0,0 @@
-.a {
- error: (1px / 3em);
-}
-~~~~~~~~~~
-error:2:3
-~~~~~~~~~~
-~~~~~~~~~~
-{"config":{"lessc.strict-units":true}}
diff --git a/src/lint/linter/__tests__/lessc/errors/import-missing.lint-test b/src/lint/linter/__tests__/lessc/errors/import-missing.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/import-missing.lint-test
+++ /dev/null
@@ -1,8 +0,0 @@
-.a {
- color: green;
- // tests line number for import reference is correct
-}
-
-@import "file-does-not-exist.less";
-~~~~~~~~~~
-error:6:1
diff --git a/src/lint/linter/__tests__/lessc/errors/javascript-error.lint-test b/src/lint/linter/__tests__/lessc/errors/javascript-error.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/javascript-error.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-.scope {
- var: `this.foo.toJS()`;
-}
-~~~~~~~~~~
-error:2:10
diff --git a/src/lint/linter/__tests__/lessc/errors/javascript-undefined-var.lint-test b/src/lint/linter/__tests__/lessc/errors/javascript-undefined-var.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/javascript-undefined-var.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-.scope {
- @a: `@{b}`;
-}
-~~~~~~~~~~
-error:2:9
diff --git a/src/lint/linter/__tests__/lessc/errors/mixin-not-visible-in-scope-1.lint-test b/src/lint/linter/__tests__/lessc/errors/mixin-not-visible-in-scope-1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/mixin-not-visible-in-scope-1.lint-test
+++ /dev/null
@@ -1,11 +0,0 @@
-.something {
- & {
- .a {value: a}
- }
-
- & {
- .b {.a} // was Err. before 1.6.2
- }
-}
-~~~~~~~~~~
-error:7:13
diff --git a/src/lint/linter/__tests__/lessc/errors/multiply-mixed-units.lint-test b/src/lint/linter/__tests__/lessc/errors/multiply-mixed-units.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/multiply-mixed-units.lint-test
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Test */
-#blah {
- // blah
-}
-.a {
- error: (1px * 1em);
-}
-~~~~~~~~~~
-error:6:3
-~~~~~~~~~~
-~~~~~~~~~~
-{"config":{"lessc.strict-units":true}}
diff --git a/src/lint/linter/__tests__/lessc/errors/parens-error-1.lint-test b/src/lint/linter/__tests__/lessc/errors/parens-error-1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/parens-error-1.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-.a {
- something: (12 (13 + 5 -23) + 5);
-}
-~~~~~~~~~~
-error:2:18
diff --git a/src/lint/linter/__tests__/lessc/errors/parse-error-curly-bracket.lint-test b/src/lint/linter/__tests__/lessc/errors/parse-error-curly-bracket.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/parse-error-curly-bracket.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-body {
- background-color: #fff;
- }
-}
-~~~~~~~~~~
-error:4:1
diff --git a/src/lint/linter/__tests__/lessc/errors/parse-error-missing-bracket.lint-test b/src/lint/linter/__tests__/lessc/errors/parse-error-missing-bracket.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/parse-error-missing-bracket.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-body {
- background-color: #fff;
-~~~~~~~~~~
-error:3:1
diff --git a/src/lint/linter/__tests__/lessc/errors/recursive-variable.lint-test b/src/lint/linter/__tests__/lessc/errors/recursive-variable.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/recursive-variable.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-@bodyColor: darken(@bodyColor, 30%);
-~~~~~~~~~~
-error:1:20
diff --git a/src/lint/linter/__tests__/lessc/errors/unit-function.lint-test b/src/lint/linter/__tests__/lessc/errors/unit-function.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/errors/unit-function.lint-test
+++ /dev/null
@@ -1,8 +0,0 @@
-.a {
- font-size: unit(80/16,rem);
-}
-~~~~~~~~~~
-error:2:14
-~~~~~~~~~~
-~~~~~~~~~~
-{"config":{"lessc.strict-math":true}}
diff --git a/src/lint/linter/__tests__/lessc/extract-and-length.lint-test b/src/lint/linter/__tests__/lessc/extract-and-length.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/extract-and-length.lint-test
+++ /dev/null
@@ -1,133 +0,0 @@
-// simple array/list:
-
-.multiunit {
- @v: abc "abc" 1 1px 1% #123;
- length: length(@v);
- extract: extract(@v, 1) extract(@v, 2) extract(@v, 3) extract(@v, 4) extract(@v, 5) extract(@v, 6);
-}
-
-.incorrect-index {
- @v1: a b c;
- @v2: a, b, c;
- v1: extract(@v1, 5);
- v2: extract(@v2, -2);
-}
-
-.scalar {
- @var: variable;
- var-value: extract(@var, 1);
- var-length: length(@var);
- ill-index: extract(@var, 2);
-
- name-value: extract(name, 1);
- string-value: extract("string", 1);
- number-value: extract(12345678, 1);
- color-value: extract(blue, 1);
- rgba-value: extract(rgba(80, 160, 240, 0.67), 1);
- empty-value: extract(~'', 1);
-
- name-length: length(name);
- string-length: length("string");
- number-length: length(12345678);
- color-length: length(blue);
- rgba-length: length(rgba(80, 160, 240, 0.67));
- empty-length: length(~'');
-}
-
-.mixin-arguments {
- .mixin-args(a b c d);
- .mixin-args(a, b, c, d);
- .mixin-args(1; 2; 3; 4);
-}
-
-.mixin-args(@value) {
- &-1 {
- length: length(@value);
- extract: extract(@value, 3) ~"|" extract(@value, 2) ~"|" extract(@value, 1);
- }
-}
-
-.mixin-args(...) {
- &-2 {
- length: length(@arguments);
- extract: extract(@arguments, 3) ~"|" extract(@arguments, 2) ~"|" extract(@arguments, 1);
- }
-}
-
-.mixin-args(@values...) {
- &-3 {
- length: length(@values);
- extract: extract(@values, 3) ~"|" extract(@values, 2) ~"|" extract(@values, 1);
- }
-}
-
-.mixin-args(@head, @tail...) {
- &-4 {
- length: length(@tail);
- extract: extract(@tail, 2) ~"|" extract(@tail, 1);
- }
-}
-
-// "multidimensional" array/list
-
-.md-space-comma {
- @v: a b c, 1 2 3, "x" "y" "z";
- length-1: length(@v);
- extract-1: extract(@v, 2);
- length-2: length(extract(@v, 2));
- extract-2: extract(extract(@v, 2), 2);
-
- &-as-args {.mixin-args(a b c, 1 2 3, "x" "y" "z")}
-}
-
-.md-cat-space-comma {
- @a: a b c;
- @b: 1 2 3;
- @c: "x" "y" "z";
- @v: @a, @b, @c;
- length-1: length(@v);
- extract-1: extract(@v, 2);
- length-2: length(extract(@v, 2));
- extract-2: extract(extract(@v, 2), 2);
-
- &-as-args {.mixin-args(@a, @b, @c)}
-}
-
-.md-cat-comma-space {
- @a: a, b, c;
- @b: 1, 2, 3;
- @c: "x", "y", "z";
- @v: @a @b @c;
- length-1: length(@v);
- extract-1: extract(@v, 2);
- length-2: length(extract(@v, 2));
- extract-2: extract(extract(@v, 2), 2);
-
- &-as-args {.mixin-args(@a @b @c)}
-}
-
-.md-3D {
- @a: a b c d, 1 2 3 4;
- @b: 5 6 7 8, e f g h;
- .3D(@a, @b);
-
- .3D(...) {
-
- @v1: @arguments;
- length-1: length(@v1);
- extract-1: extract(@v1, 1);
-
- @v2: extract(@v1, 2);
- length-2: length(@v2);
- extract-2: extract(@v2, 1);
-
- @v3: extract(@v2, 1);
- length-3: length(@v3);
- extract-3: extract(@v3, 3);
-
- @v4: extract(@v3, 4);
- length-4: length(@v4);
- extract-4: extract(@v4, 1);
- }
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/functions.lint-test b/src/lint/linter/__tests__/lessc/functions.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/functions.lint-test
+++ /dev/null
@@ -1,169 +0,0 @@
-#functions {
- @var: 10;
- @colors: #000, #fff;
- color: _color("evil red"); // #660000
- width: increment(15);
- height: undefined("self");
- border-width: add(2, 3);
- variable: increment(@var);
- background: linear-gradient(@colors);
-}
-
-#built-in {
- @r: 32;
- escaped: e("-Some::weird(#thing, y)");
- lighten: lighten(#ff0000, 40%);
- darken: darken(#ff0000, 40%);
- saturate: saturate(#29332f, 20%);
- desaturate: desaturate(#203c31, 20%);
- greyscale: greyscale(#203c31);
- hsl-clamp: hsl(380, 150%, 150%);
- spin-p: spin(hsl(340, 50%, 50%), 40);
- spin-n: spin(hsl(30, 50%, 50%), -40);
- luma-white: luma(#fff);
- luma-black: luma(#000);
- luma-black-alpha: luma(rgba(0,0,0,0.5));
- luma-red: luma(#ff0000);
- luma-green: luma(#00ff00);
- luma-blue: luma(#0000ff);
- luma-yellow: luma(#ffff00);
- luma-cyan: luma(#00ffff);
- luma-white-alpha: luma(rgba(255,255,255,0.5));
- contrast-filter: contrast(30%);
- saturate-filter: saturate(5%);
- contrast-white: contrast(#fff);
- contrast-black: contrast(#000);
- contrast-red: contrast(#ff0000);
- contrast-green: contrast(#00ff00);
- contrast-blue: contrast(#0000ff);
- contrast-yellow: contrast(#ffff00);
- contrast-cyan: contrast(#00ffff);
- contrast-light: contrast(#fff, #111111, #eeeeee);
- contrast-dark: contrast(#000, #111111, #eeeeee);
- contrast-wrongorder: contrast(#fff, #eeeeee, #111111, 0.5);
- contrast-light-thresh: contrast(#fff, #111111, #eeeeee, 0.5);
- contrast-dark-thresh: contrast(#000, #111111, #eeeeee, 0.5);
- contrast-high-thresh: contrast(#555, #111111, #eeeeee, 0.6);
- contrast-low-thresh: contrast(#555, #111111, #eeeeee, 0.1);
- contrast-light-thresh-per: contrast(#fff, #111111, #eeeeee, 50%);
- contrast-dark-thresh-per: contrast(#000, #111111, #eeeeee, 50%);
- contrast-high-thresh-per: contrast(#555, #111111, #eeeeee, 60%);
- contrast-low-thresh-per: contrast(#555, #111111, #eeeeee, 10%);
- replace: replace("Hello, Mars.", "Mars\.", "World!");
- replace-captured: replace("This is a string.", "(string)\.$", "new $1.");
- replace-with-flags: replace("One + one = 4", "one", "2", "gi");
- replace-single-quoted: replace('foo-1', "1", "2");
- replace-escaped-string: replace(~"bar-1", "1", "2");
- replace-keyword: replace(baz-1, "1", "2");
- format: %("rgb(%d, %d, %d)", @r, 128, 64);
- format-string: %("hello %s", "world");
- format-multiple: %("hello %s %d", "earth", 2);
- format-url-encode: %("red is %A", #ff0000);
- format-single-quoted: %('hello %s', "single world");
- format-escaped-string: %(~"hello %s", "escaped world");
- eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
-
- unitless: unit(12px);
- unit: unit((13px + 1px), em);
- unitpercentage: unit(100, %);
-
- get-unit: get-unit(10px);
- get-unit-empty: get-unit(10);
-
- hue: hue(hsl(98, 12%, 95%));
- saturation: saturation(hsl(98, 12%, 95%));
- lightness: lightness(hsl(98, 12%, 95%));
- hsvhue: hsvhue(hsv(98, 12%, 95%));
- hsvsaturation: hsvsaturation(hsv(98, 12%, 95%));
- hsvvalue: hsvvalue(hsv(98, 12%, 95%));
- red: red(#f00);
- green: green(#0f0);
- blue: blue(#00f);
- rounded: round((@r/3));
- rounded-two: round((@r/3), 2);
- roundedpx: round((10px / 3));
- roundedpx-three: round((10px / 3), 3);
- rounded-percentage: round(10.2%);
- ceil: ceil(10.1px);
- floor: floor(12.9px);
- sqrt: sqrt(25px);
- pi: pi();
- mod: mod(13m, 11cm); // could take into account units, doesn't at the moment
- abs: abs(-4%);
- tan: tan(42deg);
- sin: sin(10deg);
- cos: cos(12);
- atan: atan(tan(0.1rad));
- atan: convert(acos(cos(34deg)), deg);
- atan: convert(acos(cos(50grad)), deg);
- pow: pow(8px, 2);
- pow: pow(4, 3);
- pow: pow(3, 3em);
- min: min(0);
- min: min(6, 5);
- min: min(1pt, 3pt);
- min: min(1cm, 3mm);
- max: max(1, 3);
- max: max(3em, 1em, 2em, 5em);
- percentage: percentage((10px / 50));
- color: color("#ff0011");
- tint: tint(#777777, 13);
- tint-full: tint(#777777, 100);
- tint-percent: tint(#777777, 13%);
- tint-negative: tint(#777777, -13%);
- shade: shade(#777777, 13);
- shade-full: shade(#777777, 100);
- shade-percent: shade(#777777, 13%);
- shade-negative: shade(#777777, -13%);
-
- fade-out: fadeOut(red, 5%); // support fadeOut and fadeout
- fade-in: fadein(fadeout(red, 10%), 5%);
-
- hsv: hsv(5, 50%, 30%);
- hsva: hsva(3, 50%, 30%, 0.2);
-
- mix: mix(#ff0000, #ffff00, 80);
- mix-0: mix(#ff0000, #ffff00, 0);
- mix-100: mix(#ff0000, #ffff00, 100);
- mix-weightless: mix(#ff0000, #ffff00);
- mixt: mix(#ff0000, transparent);
-
- .is-a {
- color: iscolor(#ddd);
- color1: iscolor(red);
- color2: iscolor(rgb(0, 0, 0));
- color3: iscolor(transparent);
- keyword: iskeyword(hello);
- number: isnumber(32);
- string: isstring("hello");
- pixel: ispixel(32px);
- percent: ispercentage(32%);
- em: isem(32em);
- cat: isunit(32cat, cat);
- }
-}
-
-#alpha {
- alpha: darken(hsla(25, 50%, 50%, 0.6), 10%);
- alpha2: alpha(rgba(3, 4, 5, 0.5));
- alpha3: alpha(transparent);
-}
-
-#blendmodes {
- multiply: multiply(#f60000, #f60000);
- screen: screen(#f60000, #0000f6);
- overlay: overlay(#f60000, #0000f6);
- softlight: softlight(#f60000, #ffffff);
- hardlight: hardlight(#f60000, #0000f6);
- difference: difference(#f60000, #0000f6);
- exclusion: exclusion(#f60000, #0000f6);
- average: average(#f60000, #0000f6);
- negation: negation(#f60000, #313131);
-}
-
-#extract-and-length {
- @anon: A B C 1 2 3;
- extract: extract(@anon, 6) extract(@anon, 5) extract(@anon, 4) extract(@anon, 3) extract(@anon, 2) extract(@anon, 1);
- length: length(@anon);
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/javascript.lint-test b/src/lint/linter/__tests__/lessc/javascript.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/javascript.lint-test
+++ /dev/null
@@ -1,30 +0,0 @@
-.eval {
- js: `42`;
- js: `1 + 1`;
- js: `"hello world"`;
- js: `[1, 2, 3]`;
- title: `typeof process.title`;
- ternary: `(1 + 1 == 2 ? true : false)`;
- multiline: `(function(){var x = 1 + 1;
- return x})()`;
-}
-.scope {
- @foo: 42;
- var: `parseInt(this.foo.toJS())`;
- escaped: ~`2 + 5 + 'px'`;
-}
-.vars {
- @var: `4 + 4`;
- width: @var;
-}
-.escape-interpol {
- @world: "world";
- width: ~`"hello" + " " + @{world}`;
-}
-.arrays {
- @ary: 1, 2, 3;
- @ary2: 1 2 3;
- ary: `@{ary}.join(', ')`;
- ary1: `@{ary2}.join(', ')`;
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/media.lint-test b/src/lint/linter/__tests__/lessc/media.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/media.lint-test
+++ /dev/null
@@ -1,234 +0,0 @@
-// For now, variables can't be declared inside @media blocks.
-
-@var: 42;
-
-@media print {
- .class {
- color: blue;
- .sub {
- width: @var;
- }
- }
- .top, header > h1 {
- color: (#222 * 2);
- }
-}
-
-@media screen {
- @base: 8;
- body { max-width: (@base * 60); }
-}
-
-@ratio_large: 16;
-@ratio_small: 9;
-
-@media all and (device-aspect-ratio: @ratio_large / @ratio_small) {
- body { max-width: 800px; }
-}
-
-@media all and (orientation:portrait) {
- aside { float: none; }
-}
-
-@media handheld and (min-width: @var), screen and (min-width: 20em) {
- body {
- max-width: 480px;
- }
-}
-
-body {
- @media print {
- padding: 20px;
-
- header {
- background-color: red;
- }
-
- @media (orientation:landscape) {
- margin-left: 20px;
- }
- }
-}
-
-@media screen {
- .sidebar {
- width: 300px;
- @media (orientation: landscape) {
- width: 500px;
- }
- }
-}
-
-@media a {
- .first {
- @media b {
- .second {
- .third {
- width: 300px;
- @media c {
- width: 500px;
- }
- }
- .fourth {
- width: 3;
- }
- }
- }
- }
-}
-
-body {
- @media a, b and c {
- width: 95%;
-
- @media x, y {
- width: 100%;
- }
- }
-}
-
-.mediaMixin(@fallback: 200px) {
- background: black;
-
- @media handheld {
- background: white;
-
- @media (max-width: @fallback) {
- background: red;
- }
- }
-}
-
-.a {
- .mediaMixin(100px);
-}
-
-.b {
- .mediaMixin();
-}
-@smartphone: ~"only screen and (max-width: 200px)";
-@media @smartphone {
- body {
- width: 480px;
- }
-}
-
-@media print {
- @page :left {
- margin: 0.5cm;
- }
- @page :right {
- margin: 0.5cm;
- }
- @page Test:first {
- margin: 1cm;
- }
- @page :first {
- size: 8.5in 11in;
- @top-left {
- margin: 1cm;
- }
- @top-left-corner {
- margin: 1cm;
- }
- @top-center {
- margin: 1cm;
- }
- @top-right {
- margin: 1cm;
- }
- @top-right-corner {
- margin: 1cm;
- }
- @bottom-left {
- margin: 1cm;
- }
- @bottom-left-corner {
- margin: 1cm;
- }
- @bottom-center {
- margin: 1cm;
- }
- @bottom-right {
- margin: 1cm;
- }
- @bottom-right-corner {
- margin: 1cm;
- }
- @left-top {
- margin: 1cm;
- }
- @left-middle {
- margin: 1cm;
- }
- @left-bottom {
- margin: 1cm;
- }
- @right-top {
- margin: 1cm;
- }
- @right-middle {
- content: "Page " counter(page);
- }
- @right-bottom {
- margin: 1cm;
- }
- }
-}
-
-@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) {
- .b {
- background: red;
- }
-}
-
-.bg() {
- background: red;
-
- @media (max-width: 500px) {
- background: green;
- }
-}
-
-body {
- .bg();
-}
-
-@bpMedium: 1000px;
-@media (max-width: @bpMedium) {
- body {
- .bg();
- background: blue;
- }
-}
-
-@media (max-width: 1200px) {
- /* a comment */
-
- @media (max-width: 900px) {
- body { font-size: 11px; }
- }
-}
-
-.nav-justified {
- @media (min-width: 480px) {
- > li {
- display: table-cell;
- }
- }
-}
-
-.menu
-{
- @media (min-width: 768px) {
- .nav-justified();
- }
-}
-@all: ~"all";
-@tv: ~"tv";
-@media @all and @tv {
- .all-and-tv-variables {
- var: all-and-tv;
- }
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/mixins.lint-test b/src/lint/linter/__tests__/lessc/mixins.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/mixins.lint-test
+++ /dev/null
@@ -1,142 +0,0 @@
-.mixin { border: 1px solid black; }
-.mixout { border-color: orange; }
-.borders { border-style: dashed; }
-
-#namespace {
- .borders {
- border-style: dotted;
- }
- .biohazard {
- content: "death";
- .man {
- color: transparent;
- }
- }
-}
-#theme {
- > .mixin {
- background-color: grey;
- }
-}
-#container {
- color: black;
- .mixin;
- .mixout;
- #theme > .mixin;
-}
-
-#header {
- .milk {
- color: white;
- .mixin;
- #theme > .mixin;
- }
- #cookie {
- .chips {
- #namespace .borders;
- .calories {
- #container;
- }
- }
- .borders;
- }
-}
-.secure-zone { #namespace .biohazard .man; }
-.direct {
- #namespace > .borders;
-}
-
-.bo, .bar {
- width: 100%;
-}
-.bo {
- border: 1px;
-}
-.ar.bo.ca {
- color: black;
-}
-.jo.ki {
- background: none;
-}
-.amp {
- &.support {
- color: orange;
- .higher {
- top: 0px;
- }
- &.deeper {
- height: auto;
- }
- }
-}
-.extended {
- .bo;
- .jo.ki;
- .amp.support;
- .amp.support.higher;
- .amp.support.deeper;
-}
-.do .re .mi .fa {
- .sol .la {
- .si {
- color: cyan;
- }
- }
-}
-.mutli-selector-parents {
- .do.re.mi.fa.sol.la.si;
-}
-.foo .bar {
- .bar;
-}
-.has_parents() {
- & .underParents {
- color: red;
- }
-}
-.has_parents();
-.parent {
- .has_parents();
-}
-.margin_between(@above, @below) {
- * + & { margin-top: @above; }
- legend + & { margin-top: 0; }
- & + * { margin-top: @below; }
-}
-h1 { .margin_between(25px, 10px); }
-h2 { .margin_between(20px, 8px); }
-h3 { .margin_between(15px, 5px); }
-
-.mixin_def(@url, @position){
- background-image: @url;
- background-position: @position;
-}
-.error{
- @s: "/";
- .mixin_def( "@{s}a.png", center center);
-}
-.recursion() {
- color: black;
-}
-.test-rec {
- .recursion {
- .recursion();
- }
-}
-.paddingFloat(@padding) { padding-left: @padding; }
-
-.button {
- .paddingFloat(((10px + 12) * 2));
-
- &.large { .paddingFloat(((10em * 2) * 2)); }
-}
-.clearfix() {
- // ...
-}
-.clearfix {
- .clearfix();
-}
-.foo {
- .clearfix();
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/no-output.lint-test b/src/lint/linter/__tests__/lessc/no-output.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/no-output.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-.mixin() {
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/operations.lint-test b/src/lint/linter/__tests__/lessc/operations.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/operations.lint-test
+++ /dev/null
@@ -1,63 +0,0 @@
-#operations {
- color: (#110000 + #000011 + #001100); // #111111
- height: (10px / 2px + 6px - 1px * 2); // 9px
- width: (2 * 4 - 5em); // 3em
- .spacing {
- height: (10px / 2px+6px-1px*2);
- width: (2 * 4-5em);
- }
- substraction: (20 - 10 - 5 - 5); // 0
- division: (20 / 5 / 4); // 1
-}
-
-@x: 4;
-@y: 12em;
-
-.with-variables {
- height: (@x + @y); // 16em
- width: (12 + @y); // 24em
- size: (5cm - @x); // 1cm
-}
-
-.with-functions {
- color: (rgb(200, 200, 200) / 2);
- color: (2 * hsl(0, 50%, 50%));
- color: (rgb(10, 10, 10) + hsl(0, 50%, 50%));
-}
-
-@z: -2;
-
-.negative {
- height: (2px + @z); // 0px
- width: (2px - @z); // 4px
-}
-
-.shorthands {
- padding: -1px 2px 0 -4px; //
-}
-
-.rem-dimensions {
- font-size: (20rem / 5 + 1.5rem); // 5.5rem
-}
-
-.colors {
- color: #123; // #112233
- border-color: (#234 + #111111); // #334455
- background-color: (#222222 - #fff); // #000000
- .other {
- color: (2 * #111); // #222222
- border-color: (#333333 / 3 + #111); // #222222
- }
-}
-
-.negations {
- @var: 4px;
- variable: (-@var); // 4
- variable1: (-@var + @var); // 0
- variable2: (@var + -@var); // 0
- variable3: (@var - -@var); // 8
- variable4: (-@var - -@var); // 0
- paren: (-(@var)); // -4px
- paren2: (-(2 + 2) * -@var); // 16
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/parens.lint-test b/src/lint/linter/__tests__/lessc/parens.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/parens.lint-test
+++ /dev/null
@@ -1,46 +0,0 @@
-.parens {
- @var: 1px;
- border: (@var * 2) solid black;
- margin: (@var * 1) (@var + 2) (4 * 4) 3;
- width: (6 * 6);
- padding: 2px (6 * 6px);
-}
-
-.more-parens {
- @var: (2 * 2);
- padding: (2 * @var) 4 4 (@var * 1px);
- width-all: ((@var * @var) * 6);
- width-first: ((@var * @var)) * 6;
- width-keep: (@var * @var) * 6;
- height-keep: (7 * 7) + (8 * 8);
- height-all: ((7 * 7) + (8 * 8));
- height-parts: ((7 * 7)) + ((8 * 8));
- margin-keep: (4 * (5 + 5) / 2) - (@var * 2);
- margin-parts: ((4 * (5 + 5) / 2)) - ((@var * 2));
- margin-all: ((4 * (5 + 5) / 2) + (-(@var * 2)));
- border-radius-keep: 4px * (1 + 1) / @var + 3px;
- border-radius-parts: ((4px * (1 + 1))) / ((@var + 3px));
- border-radius-all: (4px * (1 + 1) / @var + 3px);
- //margin: (6 * 6)px;
-}
-
-.negative {
- @var: 1;
- neg-var: -@var; // -1 ?
- neg-var-paren: -(@var); // -(1) ?
-}
-
-.nested-parens {
- width: 2 * (4 * (2 + (1 + 6))) - 1;
- height: ((2 + 3) * (2 + 3) / (9 - 4)) + 1;
-}
-
-.mixed-units {
- margin: 2px 4em 1 5pc;
- padding: (2px + 4px) 1em 2px 2;
-}
-
-.test-false-negatives {
- a: ~"(";
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/selectors.lint-test b/src/lint/linter/__tests__/lessc/selectors.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/selectors.lint-test
+++ /dev/null
@@ -1,157 +0,0 @@
-h1, h2, h3 {
- a, p {
- &:hover {
- color: red;
- }
- }
-}
-
-#all { color: blue; }
-#the { color: blue; }
-#same { color: blue; }
-
-ul, li, div, q, blockquote, textarea {
- margin: 0;
-}
-
-td {
- margin: 0;
- padding: 0;
-}
-
-td, input {
- line-height: 1em;
-}
-
-a {
- color: red;
-
- &:hover { color: blue; }
-
- div & { color: green; }
-
- p & span { color: yellow; }
-}
-
-.foo {
- .bar, .baz {
- & .qux {
- display: block;
- }
- .qux & {
- display: inline;
- }
- .qux& {
- display: inline-block;
- }
- .qux & .biz {
- display: none;
- }
- }
-}
-
-.b {
- &.c {
- .a& {
- color: red;
- }
- }
-}
-
-.b {
- .c & {
- &.a {
- color: red;
- }
- }
-}
-
-.p {
- .foo &.bar {
- color: red;
- }
-}
-
-.p {
- .foo&.bar {
- color: red;
- }
-}
-
-.foo {
- .foo + & {
- background: amber;
- }
- & + & {
- background: amber;
- }
-}
-
-.foo, .bar {
- & + & {
- background: amber;
- }
-}
-
-.foo, .bar {
- a, b {
- & > & {
- background: amber;
- }
- }
-}
-
-.other ::fnord { color: red }
-.other::fnord { color: red }
-.other {
- ::bnord {color: red }
- &::bnord {color: red }
-}
-// selector interpolation
-@theme: blood;
-@selector: ~".@{theme}";
-@{selector} {
- color:red;
-}
-@{selector}red {
- color: green;
-}
-.red {
- #@{theme}.@{theme}&.black {
- color:black;
- }
-}
-@num: 3;
-:nth-child(@{num}) {
- selector: interpolated;
-}
-.test {
- &:nth-child(odd):not(:nth-child(3)) {
- color: #ff0000;
- }
-}
-[prop],
-[prop=10%],
-[prop="value@{num}"],
-[prop*="val@{num}"],
-[|prop~="val@{num}"],
-[*|prop$="val@{num}"],
-[ns|prop^="val@{num}"],
-[@{num}^="val@{num}"],
-[@{num}=@{num}],
-[@{num}] {
- attributes: yes;
-}
-
-/*
-Large comment means chunk will be emitted after } which means chunk will begin with whitespace...
-blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank
-blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank
-blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank
-blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank
-blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank
-*/
-@{selector} {
- color: red;
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/lessc/variables.lint-test b/src/lint/linter/__tests__/lessc/variables.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/lessc/variables.lint-test
+++ /dev/null
@@ -1,84 +0,0 @@
-@a: 2;
-@x: (@a * @a);
-@y: (@x + 1);
-@z: (@x * 2 + @y);
-@var: -1;
-
-.variables {
- width: (@z + 1cm); // 14cm
-}
-
-@b: @a * 10;
-@c: #888;
-
-@fonts: "Trebuchet MS", Verdana, sans-serif;
-@f: @fonts;
-
-@quotes: "~" "~";
-@q: @quotes;
-@onePixel: 1px;
-
-.variables {
- height: (@b + @x + 0px); // 24px
- color: @c;
- font-family: @f;
- quotes: @q;
-}
-
-.redef {
- @var: 0;
- .inition {
- @var: 4;
- @var: 2;
- three: @var;
- @var: 3;
- }
- zero: @var;
-}
-
-.values {
- minus-one: @var;
- @a: 'Trebuchet';
- @multi: 'A', B, C;
- font-family: @a, @a, @a;
- color: @c !important;
- multi: something @multi, @a;
-}
-
-.variable-names {
- @var: 'hello';
- @name: 'var';
- name: @@name;
-}
-
-.alpha {
- @var: 42;
- filter: alpha(opacity=@var);
-}
-
-.polluteMixin() {
- @a: 'pollution';
-}
-.testPollution {
- @a: 'no-pollution';
- a: @a;
- .polluteMixin();
- a: @a;
-}
-
-.units {
- width: @onePixel;
- same-unit-as-previously: (@onePixel / @onePixel);
- square-pixel-divided: (@onePixel * @onePixel / @onePixel);
- odd-unit: unit((@onePixel * 4em / 2cm));
- percentage: (10 * 50%);
- pixels: (50px * 10);
- conversion-metric-a: (20mm + 1cm);
- conversion-metric-b: (1cm + 20mm);
- conversion-imperial: (1in + 72pt + 6pc);
- custom-unit: (42octocats * 10);
- custom-unit-cancelling: (8cats * 9dogs / 4cats);
- mix-units: (1px + 1em);
- invalid-units: (1px * 1px);
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/pep8/imports.lint-test b/src/lint/linter/__tests__/pep8/imports.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/pep8/imports.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-import os, sys
-~~~~~~~~~~
-error:1:10
diff --git a/src/lint/linter/__tests__/php/fatal.lint-test b/src/lint/linter/__tests__/php/fatal.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/php/fatal.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-function f() {
- $this = "cannot be re-assigned";
-}
-~~~~~~~~~
-error:4:
diff --git a/src/lint/linter/__tests__/php/no-errors.lint-test b/src/lint/linter/__tests__/php/no-errors.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/php/no-errors.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-
-function f() {
- return 'foobar';
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/php/syntax.lint-test b/src/lint/linter/__tests__/php/syntax.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/php/syntax.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-function f() {
- this is bad syntax;
-}
-~~~~~~~~~
-error:4:
diff --git a/src/lint/linter/__tests__/phpcs/basics.lint-test b/src/lint/linter/__tests__/phpcs/basics.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/phpcs/basics.lint-test
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-function f() {
- $$g;
-
- $h++;
-}
-~~~~~~~~~~
-error:2:1
-error:3:1
-error:3:14
-error:4:3
-error:6:3
diff --git a/src/lint/linter/__tests__/phpcs/no-errors.lint-test b/src/lint/linter/__tests__/phpcs/no-errors.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/phpcs/no-errors.lint-test
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/**
- * This tests for a PHPCS lint run against a file without any errors. PHPCS
- * literally requires all of this with this exact spacing and formatting.
- *
- * PHP version 5
- *
- * @category Function
- * @package None
- * @author Abraham Lincoln <alincoln@logcab.in>
- * @license Imaginary License http://www.example.com/LICENSE
- * @version GIT: HEAD
- * @link http://www.derp.com/
- */
-
-/**
- * A function.
- *
- * @return void
- */
-function f()
-{
-
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/puppet-lint/arrow_alignment.lint-test b/src/lint/linter/__tests__/puppet-lint/arrow_alignment.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/arrow_alignment.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-exec { 'test':
- subscribe => File['/etc/test'],
- refreshonly => true,
-}
-~~~~~~~~~~
-warning:2:13
diff --git a/src/lint/linter/__tests__/puppet-lint/double_quoted_strings.lint-test b/src/lint/linter/__tests__/puppet-lint/double_quoted_strings.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/double_quoted_strings.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-user { 'dave':
- ensure => present,
- home => '/home/dave',
- comment => "This is a double quoted string",
-}
-~~~~~~~~~~
-warning:4:14
diff --git a/src/lint/linter/__tests__/puppet-lint/duplicate_params.lint-test b/src/lint/linter/__tests__/puppet-lint/duplicate_params.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/duplicate_params.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-service { 'anacron':
- ensure => 'absent',
- ensure => 'stopped',
-}
-~~~~~~~~~~
-error:3:3
diff --git a/src/lint/linter/__tests__/puppet-lint/ensure_not_symlink_target.lint-test b/src/lint/linter/__tests__/puppet-lint/ensure_not_symlink_target.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/ensure_not_symlink_target.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-file { '/var/log/syslog':
- ensure => '/var/log/messages',
-}
-~~~~~~~~~~
-warning:2:13
diff --git a/src/lint/linter/__tests__/puppet-lint/file_mode.lint-test b/src/lint/linter/__tests__/puppet-lint/file_mode.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/file_mode.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-file { '/var/log/syslog':
- ensure => present,
- mode => '644',
-}
-~~~~~~~~~~
-warning:3:13
diff --git a/src/lint/linter/__tests__/puppet-lint/hard_tabs.lint-test b/src/lint/linter/__tests__/puppet-lint/hard_tabs.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/hard_tabs.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-exec { 'test':
- subscribe => File['/etc/test'],
- refreshonly => true,
-}
-~~~~~~~~~~
-error:2:1
-error:3:1
diff --git a/src/lint/linter/__tests__/puppet-lint/names_containing_dash.lint-test b/src/lint/linter/__tests__/puppet-lint/names_containing_dash.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/names_containing_dash.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-$foo-bar123
-~~~~~~~~~~
-warning:1:1
diff --git a/src/lint/linter/__tests__/puppet-lint/quoted_booleans.lint-test b/src/lint/linter/__tests__/puppet-lint/quoted_booleans.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/quoted_booleans.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-service { 'anacron':
- ensure => 'stopped',
- enable => 'true',
-}
-~~~~~~~~~~
-warning:3:13
diff --git a/src/lint/linter/__tests__/puppet-lint/right_to_left_relationship.lint-test b/src/lint/linter/__tests__/puppet-lint/right_to_left_relationship.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/right_to_left_relationship.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-Service['httpd'] <- Package['httpd']
-~~~~~~~~~~
-warning:1:18
diff --git a/src/lint/linter/__tests__/puppet-lint/site.lint-test b/src/lint/linter/__tests__/puppet-lint/site.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/site.lint-test
+++ /dev/null
@@ -1,19 +0,0 @@
-import 'classes/*'
-import 'nodes.pp'
-
-Exec['apt-get-update'] -> Package <| |>
-
-Exec {
- path => '/usr/bin:/usr/sbin:/bin',
-}
-
-exec { 'apt-get-update':
- command => '/usr/bin/apt-get update',
- require => File['/etc/apt/apt.conf.d/01proxy'],
-}
-
-file { '/etc/apt/apt.conf.d/01proxy':
- ensure => 'file',
- source => '/tmp/vagrant-puppet/manifests/files/apt-conf',
-}
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/puppet-lint/slash_comments.lint-test b/src/lint/linter/__tests__/puppet-lint/slash_comments.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/slash_comments.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-// This is a comment
-~~~~~~~~~~
-warning:1:1
diff --git a/src/lint/linter/__tests__/puppet-lint/star_comments.lint-test b/src/lint/linter/__tests__/puppet-lint/star_comments.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/star_comments.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-/* This is a comment */
-~~~~~~~~~~
-warning:1:1
diff --git a/src/lint/linter/__tests__/puppet-lint/unquoted_file_mode.lint-test b/src/lint/linter/__tests__/puppet-lint/unquoted_file_mode.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/puppet-lint/unquoted_file_mode.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-file { '/var/log/syslog':
- ensure => present,
- mode => 0644,
-}
-~~~~~~~~~~
-warning:3:13
diff --git a/src/lint/linter/__tests__/pyflakes/pyflakes.lint-test b/src/lint/linter/__tests__/pyflakes/pyflakes.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/pyflakes/pyflakes.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-import sys, os
-
-x += 1
-~~~~~~~~~~
-warning:1:
-warning:1:
-error:3:
diff --git a/src/lint/linter/__tests__/pylint/negativechar.lint-test b/src/lint/linter/__tests__/pylint/negativechar.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/pylint/negativechar.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-"""Docstring"""
-
-"""
-Useless string """
-~~~~~~~~~~
-warning:4:0 See T9257.
diff --git a/src/lint/linter/__tests__/pylint/pylint.lint-test b/src/lint/linter/__tests__/pylint/pylint.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/pylint/pylint.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-import sys, os
-
-x += 1
-~~~~~~~~~~
-warning:1:0
-advice:1:0
-error:3:0
diff --git a/src/lint/linter/__tests__/rubocop/convention.lint-test b/src/lint/linter/__tests__/rubocop/convention.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/rubocop/convention.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-def hello()
-end
-~~~~~~~~~~
-warning:1:10
diff --git a/src/lint/linter/__tests__/rubocop/error.lint-test b/src/lint/linter/__tests__/rubocop/error.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/rubocop/error.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-def hello
- puts 'world'
-~~~~~~~~~~
-error:3:1
diff --git a/src/lint/linter/__tests__/rubocop/no_errors.lint-test b/src/lint/linter/__tests__/rubocop/no_errors.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/rubocop/no_errors.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-def hello
- puts 'hello world'
-end
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/rubocop/warning.lint-test b/src/lint/linter/__tests__/rubocop/warning.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/rubocop/warning.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-def hello(unused)
- puts 'hi'
-end
-~~~~~~~~~
-warning:1:11
diff --git a/src/lint/linter/__tests__/ruby/hello.lint-test b/src/lint/linter/__tests__/ruby/hello.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/ruby/hello.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-def hello()
- puts "hello world"
-~~~~~~~~~~
-error:2:
diff --git a/src/lint/linter/__tests__/ruby/semicolon.lint-test b/src/lint/linter/__tests__/ruby/semicolon.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/ruby/semicolon.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-def asdf()
- puts "semicolons are ok";
-end
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/ruby/wvswc.lint-test b/src/lint/linter/__tests__/ruby/wvswc.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/ruby/wvswc.lint-test
+++ /dev/null
@@ -1,10 +0,0 @@
-# ruby -wc says syntax ok
-# ruby -w says blah.rb:2: undefined local variable or method `index' for main:Object (NameError)
-if index < 0 and $VERBOSE
- $stderr.puts "warning: index is a negative number"
- if $DEBUG
- $stderr.puts "index value: #{index.inspect}"
- $stderr.puts "array state: #{array.inspect}"
- end
-end
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/almost-empty.lint-test b/src/lint/linter/__tests__/xml/almost-empty.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/almost-empty.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-~~~~~~~~~~
-error:2:1
diff --git a/src/lint/linter/__tests__/xml/big-entity-name.lint-test b/src/lint/linter/__tests__/xml/big-entity-name.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/big-entity-name.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE doc [
-<!ENTITY very_big_entity_name01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_very_big_ent_name '"Yes"' >
-<!ENTITY WhatHeSaid "He said &very_big_entity_name01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_very_big_ent_name;" >
-]>
-<doc>&WhatHeSaid;</doc>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/big-name-1.lint-test b/src/lint/linter/__tests__/xml/big-name-1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/big-name-1.lint-test
+++ /dev/null
@@ -1,2 +0,0 @@
-<this_is_a_very_large_name_01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_the_very_large_name/>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/big-name-2.lint-test b/src/lint/linter/__tests__/xml/big-name-2.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/big-name-2.lint-test
+++ /dev/null
@@ -1,2 +0,0 @@
-<this_is_a_very_large_qualified_name_01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_prefix:start_nc_name_01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_the_very_large_name xmlns:this_is_a_very_large_qualified_name_01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_prefix="http://www.example.com/testns/"/>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/cdata-1.lint-test b/src/lint/linter/__tests__/xml/cdata-1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/cdata-1.lint-test
+++ /dev/null
@@ -1,4 +0,0 @@
-<doc>
-<![CDATA[<greeting>Hello, world!</greeting>]]>
-</doc>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/cdata-2.lint-test b/src/lint/linter/__tests__/xml/cdata-2.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/cdata-2.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<collection>
- <test><![CDATA[
- <![CDATA[abc]]]>]&gt;<![CDATA[
- ]]></test>
-</collection>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/char-ref.lint-test b/src/lint/linter/__tests__/xml/char-ref.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/char-ref.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-<bla>&#010100000000000000000000000000000000000000000000000060;</bla>
-~~~~~~~~~~
-error:1:63
diff --git a/src/lint/linter/__tests__/xml/comment.list-test b/src/lint/linter/__tests__/xml/comment.list-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/comment.list-test
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
-<doc>
-<!-- document start -->
-<empty/>
-<!-- document end -->
-</doc>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/empty-cdata.lint-test b/src/lint/linter/__tests__/xml/empty-cdata.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/empty-cdata.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<![CDATA[]]>
-</html>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/empty.lint-test b/src/lint/linter/__tests__/xml/empty.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/empty.lint-test
+++ /dev/null
@@ -1 +0,0 @@
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/gjobs.lint-test b/src/lint/linter/__tests__/xml/gjobs.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/gjobs.lint-test
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<gjob:Helping xmlns:gjob="http://www.gnome.org/some-location">
- <gjob:Jobs>
-
- <gjob:Job>
- <gjob:Project ID="3"/>
- <gjob:Application>GBackup</gjob:Application>
- <gjob:Category>Development</gjob:Category>
-
- <gjob:Update>
- <gjob:Status>Open</gjob:Status>
- <gjob:Modified>Mon, 07 Jun 1999 20:27:45 -0400 MET DST</gjob:Modified>
- <gjob:Salary>USD 0.00</gjob:Salary>
- </gjob:Update>
-
- <gjob:Developers>
- <gjob:Developer>
- </gjob:Developer>
- </gjob:Developers>
-
- <gjob:Contact>
- <gjob:Person>Nathan Clemons</gjob:Person>
- <gjob:Email>nathan@windsofstorm.net</gjob:Email>
- <gjob:Company>
- </gjob:Company>
- <gjob:Organisation>
- </gjob:Organisation>
- <gjob:Webpage>
- </gjob:Webpage>
- <gjob:Snailmail>
- </gjob:Snailmail>
- <gjob:Phone>
- </gjob:Phone>
- </gjob:Contact>
-
- <gjob:Requirements>
- The program should be released as free software, under the GPL.
- </gjob:Requirements>
-
- <gjob:Skills>
- </gjob:Skills>
-
- <gjob:Details>
- A GNOME based system that will allow a superuser to configure
- compressed and uncompressed files and/or file systems to be backed
- up with a supported media in the system. This should be able to
- perform via find commands generating a list of files that are passed
- to tar, dd, cpio, cp, gzip, etc., to be directed to the tape machine
- or via operations performed on the filesystem itself. Email
- notification and GUI status display very important.
- </gjob:Details>
-
- </gjob:Job>
-
- </gjob:Jobs>
-</gjob:Helping>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/languages-1.lint-test b/src/lint/linter/__tests__/xml/languages-1.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/languages-1.lint-test
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<languages>
- <lang name="C">
- <appeared>1972</appeared>
- <creator>Dennis Ritchie</creator>
- </lang>
- <lang name="PHP">
- <appeared>1995</appeared>
- <creator>Rasmus Lerdorf</creator>
- </lang>
- <lang name="Java">
- <appeared>1995</appeared>
- <creator>James Gosling</creator>
- </lang>
-</languages>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/languages-2.lint-test b/src/lint/linter/__tests__/xml/languages-2.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/languages-2.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<languages></languages>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/languages-3.lint-test b/src/lint/linter/__tests__/xml/languages-3.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/languages-3.lint-test
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<languages>
- <lang/>
-</languages>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/languages-4.lint-test b/src/lint/linter/__tests__/xml/languages-4.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/languages-4.lint-test
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<languages xmlns:dc="http://purl.org/dc/elements/1.1/">
- <lang name="C">
- <appeared>1972</appeared>
- <dc:creator>Dennis Ritchie</dc:creator>
- </lang>
- <lang name="PHP">
- <appeared>1995</appeared>
- <dc:creator>Rasmus Lerdorf</dc:creator>
- </lang>
- <lang name="Java">
- <appeared>1995</appeared>
- <dc:creator>James Gosling</dc:creator>
- </lang>
-</languages>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/languages-5.lint-test b/src/lint/linter/__tests__/xml/languages-5.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/languages-5.lint-test
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<languages>
- <>
-</languages>
-~~~~~~~~~~
-error:3:6
diff --git a/src/lint/linter/__tests__/xml/languages-6.lint-test b/src/lint/linter/__tests__/xml/languages-6.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/languages-6.lint-test
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<languages>
- </lang>
-</languages>
-~~~~~~~~~~
-error:3:16
-error:4:1
diff --git a/src/lint/linter/__tests__/xml/slashdot.lint-test b/src/lint/linter/__tests__/xml/slashdot.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/slashdot.lint-test
+++ /dev/null
@@ -1,113 +0,0 @@
-<ultramode>
- <story>
- <title>100 Mbit/s on Fibre to the home</title>
- <url>http://slashdot.org/articles/99/06/06/1440211.shtml</url>
- <time>1999-06-06 14:39:59</time>
- <author>CmdrTaco</author>
- <department>wouldn't-it-be-nice</department>
- <topic>internet</topic>
- <comments>20</comments>
- <section>articles</section>
- <image>topicinternet.jpg</image>
- </story>
- <story>
- <title>Gimp 1.2 Preview</title>
- <url>http://slashdot.org/articles/99/06/06/1438246.shtml</url>
- <time>1999-06-06 14:38:40</time>
- <author>CmdrTaco</author>
- <department>stuff-to-read</department>
- <topic>gimp</topic>
- <comments>12</comments>
- <section>articles</section>
- <image>topicgimp.gif</image>
- </story>
- <story>
- <title>Sony's AIBO robot Sold Out</title>
- <url>http://slashdot.org/articles/99/06/06/1432256.shtml</url>
- <time>1999-06-06 14:32:51</time>
- <author>CmdrTaco</author>
- <department>stuff-to-see</department>
- <topic>tech</topic>
- <comments>10</comments>
- <section>articles</section>
- <image>topictech2.jpg</image>
- </story>
- <story>
- <title>Ask Slashdot: Another Word for "Hacker"?</title>
- <url>http://slashdot.org/askslashdot/99/06/05/1815225.shtml</url>
- <time>1999-06-05 20:00:00</time>
- <author>Cliff</author>
- <department>hacker-vs-cracker</department>
- <topic>news</topic>
- <comments>385</comments>
- <section>askslashdot</section>
- <image>topicnews.gif</image>
- </story>
- <story>
- <title>Corel Linux FAQ</title>
- <url>http://slashdot.org/articles/99/06/05/1842218.shtml</url>
- <time>1999-06-05 18:42:06</time>
- <author>CmdrTaco</author>
- <department>stuff-to-read</department>
- <topic>corel</topic>
- <comments>164</comments>
- <section>articles</section>
- <image>topiccorel.gif</image>
- </story>
- <story>
- <title>Upside downsides MP3.COM.</title>
- <url>http://slashdot.org/articles/99/06/05/1558210.shtml</url>
- <time>1999-06-05 15:56:45</time>
- <author>CmdrTaco</author>
- <department>stuff-to-think-about</department>
- <topic>music</topic>
- <comments>48</comments>
- <section>articles</section>
- <image>topicmusic.gif</image>
- </story>
- <story>
- <title>2 Terabits of Bandwidth</title>
- <url>http://slashdot.org/articles/99/06/05/1554258.shtml</url>
- <time>1999-06-05 15:53:43</time>
- <author>CmdrTaco</author>
- <department>faster-porn</department>
- <topic>internet</topic>
- <comments>66</comments>
- <section>articles</section>
- <image>topicinternet.jpg</image>
- </story>
- <story>
- <title>Suppression of cold fusion research?</title>
- <url>http://slashdot.org/articles/99/06/04/2313200.shtml</url>
- <time>1999-06-04 23:12:29</time>
- <author>Hemos</author>
- <department>possibly-probably</department>
- <topic>science</topic>
- <comments>217</comments>
- <section>articles</section>
- <image>topicscience.gif</image>
- </story>
- <story>
- <title>California Gov. Halts Wage Info Sale</title>
- <url>http://slashdot.org/articles/99/06/04/235256.shtml</url>
- <time>1999-06-04 23:05:34</time>
- <author>Hemos</author>
- <department>woo-hoo!</department>
- <topic>usa</topic>
- <comments>16</comments>
- <section>articles</section>
- <image>topicus.gif</image>
- </story>
- <story>
- <title>Red Hat Announces IPO</title>
- <url>http://slashdot.org/articles/99/06/04/0849207.shtml</url>
- <time>1999-06-04 19:30:18</time>
- <author>Justin</author>
- <department>details-sketchy</department>
- <topic>redhat</topic>
- <comments>155</comments>
- <section>articles</section>
- <image>topicredhat.gif</image>
- </story>
-</ultramode>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/svg.lint-test b/src/lint/linter/__tests__/xml/svg.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/svg.lint-test
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN"
- "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
-<svg width="4in" height="3in">
- <desc>Four separate rectangles
- </desc>
- <rect width="20" height="60"/>
- <rect width="30" height="70"/>
- <rect width="40" height="80"/>
- <rect width="50" height="90"/>
-</svg>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/title.lint-test b/src/lint/linter/__tests__/xml/title.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/title.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<title>my title</title>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/xhtml.lint-test b/src/lint/linter/__tests__/xml/xhtml.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/xhtml.lint-test
+++ /dev/null
@@ -1,1505 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "dtds/xhtml1-strict.dtd">
-<?xml-stylesheet href="W3C-PR.css" type="text/css"?>
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-<title>XHTML 1.0: The Extensible HyperText Markup
-Language</title>
-<link rel="stylesheet"
-href="W3C-PR.css" type="text/css" />
-<style type="text/css">
-span.term { font-style: italic; color: rgb(0, 0, 192) }
-code {
- color: green;
- font-family: monospace;
- font-weight: bold;
-}
-
-code.greenmono {
- color: green;
- font-family: monospace;
- font-weight: bold;
-}
-.good {
- border: solid green;
- border-width: 2px;
- color: green;
- font-weight: bold;
- margin-right: 5%;
- margin-left: 0;
-}
-.bad {
- border: solid red;
- border-width: 2px;
- margin-left: 0;
- margin-right: 5%;
- color: rgb(192, 101, 101);
-}
-
-img {
- color: white;
- border: none;
-}
-
-div.navbar { text-align: center; }
-div.contents {
- background-color: rgb(204,204,255);
- padding: 0.5em;
- border: none;
- margin-right: 5%;
-}
-.tocline { list-style: none; }
-table.exceptions { background-color: rgb(255,255,153); }
-</style>
-</head>
-<body>
-<div class="navbar">
- <a href="#toc">table of contents</a>
- <hr />
-</div>
-<div class="head"><p><a href="http://www.w3.org/"><img class="head"
-src="w3c_home.gif" alt="W3C" /></a></p>
-
-<h1 class="head"><a name="title" id="title">XHTML</a><sup>&#8482;</sup> 1.0:
-The Extensible HyperText Markup Language</h1>
-
-<h2>A Reformulation of HTML 4.0 in XML 1.0</h2>
-
-<h3>W3C Proposed Recommendation 10 December 1999</h3>
-
-<dl>
-<dt>This version:</dt>
-
-<dd><a href=
-"http://www.w3.org/TR/1999/PR-xhtml1-19991210">
-http://www.w3.org/TR/1999/PR-xhtml1-19991210</a> <br />
-(<a href="xhtml1.ps">Postscript version</a>,
-<a href="xhtml1.pdf">PDF version</a>,
-<a href="xhtml1.zip">ZIP archive</a>, or
-<a href="xhtml1.tgz">Gzip'd TAR archive</a>)
-</dd>
-
-<dt>Latest version:</dt>
-
-<dd><a href="http://www.w3.org/TR/xhtml1">
-http://www.w3.org/TR/xhtml1</a></dd>
-
-<dt>Previous versions:</dt>
-
-<dd><a href=
-"http://www.w3.org/TR/1999/WD-xhtml1-19991124">
-http://www.w3.org/TR/1999/WD-xhtml1-19991124</a></dd>
-<dd><a href=
-"http://www.w3.org/TR/1999/PR-xhtml1-19990824">
-http://www.w3.org/TR/1999/PR-xhtml1-19990824</a></dd>
-
-<dt>Authors:</dt>
-
-<dd>See <a href="#acks">acknowledgements</a>.</dd>
-</dl>
-
-<p class="copyright"><a href=
-"http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">
-Copyright</a> &copy; 1999 <a href="http://www.w3.org/">W3C</a><sup>&reg;</sup>
-(<a href="http://www.lcs.mit.edu/">MIT</a>, <a href=
-"http://www.inria.fr/">INRIA</a>, <a href=
-"http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. <abbr
-title="World Wide Web Consortium">W3C</abbr> <a
-href=
-"http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">
-liability</a>, <a href=
-"http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">
-trademark</a>, <a href=
-"http://www.w3.org/Consortium/Legal/copyright-documents">document
-use</a> and <a href=
-"http://www.w3.org/Consortium/Legal/copyright-software">software
-licensing</a> rules apply.</p>
-<hr />
-</div>
-
-<h2 class="notoc">Abstract</h2>
-
-<p>This specification defines <abbr title="Extensible Hypertext Markup
-Language">XHTML</abbr> 1.0, a reformulation of HTML
-4.0 as an XML 1.0 application, and three <abbr title="Document Type
-Definition">DTDs</abbr> corresponding to
-the ones defined by HTML 4.0. The semantics of the elements and
-their attributes are defined in the W3C Recommendation for HTML
-4.0. These semantics provide the foundation for future
-extensibility of XHTML. Compatibility with existing HTML user
-agents is possible by following a small set of guidelines.</p>
-
-<h2>Status of this document</h2>
-
-<p><em>This section describes the status of this document at the time
-of its publication. Other documents may supersede this document. The
-latest status of this document series is maintained at the W3C.</em></p>
-
-<p>This specification is a Proposed Recommendation of the HTML Working Group. It is
-a revision of the Proposed Recommendation dated <a
-href= "http://www.w3.org/TR/1999/PR-xhtml1-19990824/">24 August
-1999</a> incorporating changes as a result of comments from the Proposed
-Recommendation review, and
-comments and further deliberations of the W3C HTML Working Group. A
-<a href="xhtml1-diff-19991210.html">diff-marked version</a> from the previous
-proposed recommendation is available for comparison purposes.</p>
-
-<p>On 10 December 1999, this document enters a
-<a href="http://www.w3.org/Consortium/Process/#RecsPR">
-Proposed Recommendation</a> review period. From that date until 8 January
-2000,
-W3C Advisory Committee representatives are encouraged
-to review this specification and return comments in their completed
-ballots to w3c-html-review@w3.org. Please send any comments of a
-confidential nature in separate email to w3t-html@w3.org, which is
-visible to the Team only.</p>
-
-<p>No sooner than 14 days after the end of the review period, the
-Director will announce the document's disposition: it may become a W3C
-Recommendation (possibly with minor changes), it may revert to Working
-Draft status, or it may be dropped as a W3C work item.</p>
-
-<p>Publication as a Proposed Recommendation does not imply endorsement
-by the W3C membership. This is still a draft document and may be
-updated, replaced or obsoleted by other documents at any time. It is
-inappropriate to cite W3C Proposed Recommendation as other than "work
-in progress."</p>
-
-<p>This document has been produced as part of the <a href=
-"http://www.w3.org/MarkUp/">W3C HTML Activity</a>. The goals of
-the <a href="http://www.w3.org/MarkUp/Group/">HTML Working
-Group</a> <i>(<a href="http://cgi.w3.org/MemberAccess/">members
-only</a>)</i> are discussed in the <a href=
-"http://www.w3.org/MarkUp/Group/HTMLcharter">HTML Working Group
-charter</a> <i>(<a href="http://cgi.w3.org/MemberAccess/">members
-only</a>)</i>.</p>
-
-<p>A list of current W3C Recommendations and other technical documents
-can be found at <a
-href="http://www.w3.org/TR">http://www.w3.org/TR</a>.</p>
-
-<p>Public discussion on <abbr title="HyperText Markup
-Language">HTML</abbr> features takes place on the mailing list <a
-href="mailto:www-html@w3.org"> www-html@w3.org</a> (<a href=
-"http://lists.w3.org/Archives/Public/www-html/">archive</a>). The W3C
-staff contact for work on HTML is <a href= "mailto:dsr@w3.org">Dave
-Raggett</a>.</p>
-
-<p>Please report errors in this document to <a
-href="mailto:www-html-editor@w3.org">www-html-editor@w3.org</a>.</p>
-
-<p>The list of known errors in this specification is available at <a
-href="http://www.w3.org/1999/12/PR-xhtml1-19991210-errata">http://www.w3.org/1999/12/PR-xhtml1-19991210-errata</a>.</p>
-
-<h2 class="notoc"><a id="toc" name="toc">Contents</a></h2>
-
-<div class="contents">
-<ul class="toc">
-<li class="tocline">1. <a href="#xhtml">What is XHTML?</a>
-
-<ul class="toc">
-<li class="tocline">1.1 <a href="#html4">What is HTML 4.0?</a></li>
-
-<li class="tocline">1.2 <a href="#xml">What is XML?</a></li>
-
-<li class="tocline">1.3 <a href="#why">Why the need for XHTML?</a></li>
-</ul>
-</li>
-
-<li class="tocline">2. <a href="#defs">Definitions</a>
-
-<ul class="toc">
-<li class="tocline">2.1 <a href="#terms">Terminology</a></li>
-
-<li class="tocline">2.2 <a href="#general">General Terms</a></li>
-</ul>
-</li>
-
-<li class="tocline">3. <a href="#normative">Normative Definition of XHTML 1.0</a>
-
-
-<ul class="toc">
-<li class="tocline">3.1 <a href="#docconf">Document Conformance</a></li>
-
-<li class="tocline">3.2 <a href="#uaconf">User Agent Conformance</a></li>
-</ul>
-</li>
-
-<li class="tocline">4. <a href="#diffs">Differences with HTML 4.0</a>
-
-</li>
-
-<li class="tocline">5. <a href="#issues">Compatibility Issues</a>
-
-<ul class="toc">
-<li class="tocline">5.1 <a href="#media">Internet Media Types</a></li>
-</ul>
-</li>
-
-<li class="tocline">6. <a href="#future">Future Directions</a>
-
-<ul class="toc">
-<li class="tocline">6.1 <a href="#mods">Modularizing HTML</a></li>
-
-<li class="tocline">6.2 <a href="#extensions">Subsets and Extensibility</a></li>
-
-<li class="tocline">6.3 <a href="#profiles">Document Profiles</a></li>
-</ul>
-</li>
-
-<li class="tocline"><a href="#dtds">Appendix A. DTDs</a></li>
-
-<li class="tocline"><a href="#prohibitions">Appendix B. Element
-Prohibitions</a></li>
-
-<li class="tocline"><a href="#guidelines">Appendix C. HTML Compatibility Guidelines</a></li>
-
-<li class="tocline"><a href="#acks">Appendix D. Acknowledgements</a></li>
-
-<li class="tocline"><a href="#refs">Appendix E. References</a></li>
-</ul>
-</div>
-
-<!--OddPage-->
-<h1><a name="xhtml" id="xhtml">1. What is XHTML?</a></h1>
-
-<p>XHTML is a family of current and future document types and modules that
-reproduce, subset, and extend HTML 4.0 <a href="#ref-html4">[HTML]</a>. XHTML family document types are <abbr title="Extensible Markup Language">XML</abbr> based,
-and ultimately are designed to work in conjunction with XML-based user agents.
-The details of this family and its evolution are
-discussed in more detail in the section on <a href="#future">Future
-Directions</a>. </p>
-
-<p>XHTML 1.0 (this specification) is the first document type in the XHTML
-family. It is a reformulation of the three HTML 4.0 document types as
-applications of XML 1.0 <a href="#ref-xml"> [XML]</a>. It is intended
-to be used as a language for content that is both XML-conforming and, if some
-simple <a href="#guidelines">guidelines</a> are followed,
-operates in HTML 4.0 conforming user agents. Developers who migrate
-their content to XHTML 1.0 will realize the following benefits:</p>
-
-<ul>
-<li>XHTML documents are XML conforming. As such, they are readily viewed,
-edited, and validated with standard XML tools.</li>
-<li>XHTML documents can be written to
-to operate as well or better than they did before in existing
-HTML 4.0-conforming user agents as well as in new, XHTML 1.0 conforming user
-agents.</li>
-<li>XHTML documents can utilize applications (e.g. scripts and applets) that rely
-upon either the HTML Document Object Model or the XML Document Object Model <a
-href="#ref-dom">[DOM]</a>.</li>
-<li>As the XHTML family evolves, documents conforming to XHTML 1.0 will be more
-likely to interoperate within and among various XHTML environments.</li>
-</ul>
-
-<p>The XHTML family is the next step in the evolution of the Internet. By
-migrating to XHTML today, content developers can enter the XML world with all
-of its attendant benefits, while still remaining confident in their
-content's backward and future compatibility.</p>
-
-<h2><a name="html4" id="html4">1.1 What is HTML 4.0?</a></h2>
-
-<p>HTML 4.0 <a href="#ref-html4">[HTML]</a> is an <abbr title="Standard
-Generalized Markup Language">SGML</abbr> (Standard
-Generalized Markup Language) application conforming to
-International Standard <abbr title="Organization for International
-Standardization">ISO</abbr> 8879, and is widely regarded as the
-standard publishing language of the World Wide Web.</p>
-
-<p>SGML is a language for describing markup languages,
-particularly those used in electronic document exchange, document
-management, and document publishing. HTML is an example of a
-language defined in SGML.</p>
-
-<p>SGML has been around since the middle 1980's and has remained
-quite stable. Much of this stability stems from the fact that the
-language is both feature-rich and flexible. This flexibility,
-however, comes at a price, and that price is a level of
-complexity that has inhibited its adoption in a diversity of
-environments, including the World Wide Web.</p>
-
-<p>HTML, as originally conceived, was to be a language for the
-exchange of scientific and other technical documents, suitable
-for use by non-document specialists. HTML addressed the problem
-of SGML complexity by specifying a small set of structural and
-semantic tags suitable for authoring relatively simple documents.
-In addition to simplifying the document structure, HTML added
-support for hypertext. Multimedia capabilities were added
-later.</p>
-
-<p>In a remarkably short space of time, HTML became wildly
-popular and rapidly outgrew its original purpose. Since HTML's
-inception, there has been rapid invention of new elements for use
-within HTML (as a standard) and for adapting HTML to vertical,
-highly specialized, markets. This plethora of new elements has
-led to compatibility problems for documents across different
-platforms.</p>
-
-<p>As the heterogeneity of both software and platforms rapidly
-proliferate, it is clear that the suitability of 'classic' HTML
-4.0 for use on these platforms is somewhat limited.</p>
-
-<h2><a name="xml" id="xml">1.2 What is XML?</a></h2>
-
-<p>XML<sup>&#8482;</sup> is the shorthand for Extensible Markup
-Language, and is an acronym of Extensible Markup Language <a
-href="#ref-xml">[XML]</a>.</p>
-
-<p>XML was conceived as a means of regaining the power and
-flexibility of SGML without most of its complexity. Although a
-restricted form of SGML, XML nonetheless preserves most of SGML's
-power and richness, and yet still retains all of SGML's commonly
-used features.</p>
-
-<p>While retaining these beneficial features, XML removes many of
-the more complex features of SGML that make the authoring and
-design of suitable software both difficult and costly.</p>
-
-<h2><a name="why" id="why">1.3 Why the need for XHTML?</a></h2>
-
-<p>The benefits of migrating to XHTML 1.0 are described above. Some of the
-benefits of migrating to XHTML in general are:</p>
-
-<ul>
-<li>Document developers and user agent designers are constantly
-discovering new ways to express their ideas through new markup. In XML, it is
-relatively easy to introduce new elements or additional element
-attributes. The XHTML family is designed to accommodate these extensions
-through XHTML modules and techniques for developing new XHTML-conforming
-modules (described in the forthcoming XHTML Modularization specification).
-These modules will permit the combination of existing and
-new feature sets when developing content and when designing new user
-agents.</li>
-
-<li>Alternate ways of accessing the Internet are constantly being
-introduced. Some estimates indicate that by the year 2002, 75% of
-Internet document viewing will be carried out on these alternate
-platforms. The XHTML family is designed with general user agent
-interoperability in mind. Through a new user agent and document profiling
-mechanism, servers, proxies, and user agents will be able to perform
-best effort content transformation. Ultimately, it will be possible to
-develop XHTML-conforming content that is usable by any XHTML-conforming
-user agent.</li>
-
-</ul>
-<!--OddPage-->
-<h1><a name="defs" id="defs">2. Definitions</a></h1>
-
-<h2><a name="terms" id="terms">2.1 Terminology</a></h2>
-
-<p>The following terms are used in this specification. These
-terms extend the definitions in <a href="#ref-rfc2119">
-[RFC2119]</a> in ways based upon similar definitions in ISO/<abbr
-title="International Electro-technical Commission">IEC</abbr>
-9945-1:1990 <a href="#ref-posix">[POSIX.1]</a>:</p>
-
-<dl>
-<dt>Implementation-defined</dt>
-
-<dd>A value or behavior is implementation-defined when it is left
-to the implementation to define [and document] the corresponding
-requirements for correct document construction.</dd>
-
-<dt>May</dt>
-
-<dd>With respect to implementations, the word "may" is to be
-interpreted as an optional feature that is not required in this
-specification but can be provided. With respect to <a href=
-"#docconf">Document Conformance</a>, the word "may" means that
-the optional feature must not be used. The term "optional" has
-the same definition as "may".</dd>
-
-<dt>Must</dt>
-
-<dd>In this specification, the word "must" is to be interpreted
-as a mandatory requirement on the implementation or on Strictly
-Conforming XHTML Documents, depending upon the context. The term
-"shall" has the same definition as "must".</dd>
-
-<dt>Reserved</dt>
-
-<dd>A value or behavior is unspecified, but it is not allowed to
-be used by Conforming Documents nor to be supported by a
-Conforming User Agents.</dd>
-
-<dt>Should</dt>
-
-<dd>With respect to implementations, the word "should" is to be
-interpreted as an implementation recommendation, but not a
-requirement. With respect to documents, the word "should" is to
-be interpreted as recommended programming practice for documents
-and a requirement for Strictly Conforming XHTML Documents.</dd>
-
-<dt>Supported</dt>
-
-<dd>Certain facilities in this specification are optional. If a
-facility is supported, it behaves as specified by this
-specification.</dd>
-
-<dt>Unspecified</dt>
-
-<dd>When a value or behavior is unspecified, the specification
-defines no portability requirements for a facility on an
-implementation even when faced with a document that uses the
-facility. A document that requires specific behavior in such an
-instance, rather than tolerating any behavior when using that
-facility, is not a Strictly Conforming XHTML Document.</dd>
-</dl>
-
-<h2><a name="general" id="general">2.2 General Terms</a></h2>
-
-<dl>
-<dt>Attribute</dt>
-
-<dd>An attribute is a parameter to an element declared in the
-DTD. An attribute's type and value range, including a possible
-default value, are defined in the DTD.</dd>
-
-<dt>DTD</dt>
-
-<dd>A DTD, or document type definition, is a collection of XML
-declarations that, as a collection, defines the legal structure,
-<span class="term">elements</span>, and <span class="term">
-attributes</span> that are available for use in a document that
-complies to the DTD.</dd>
-
-<dt>Document</dt>
-
-<dd>A document is a stream of data that, after being combined
-with any other streams it references, is structured such that it
-holds information contained within <span class="term">
-elements</span> that are organized as defined in the associated
-<span class="term">DTD</span>. See <a href="#docconf">Document
-Conformance</a> for more information.</dd>
-
-<dt>Element</dt>
-
-<dd>An element is a document structuring unit declared in the
-<span class="term">DTD</span>. The element's content model is
-defined in the <span class="term">DTD</span>, and additional
-semantics may be defined in the prose description of the
-element.</dd>
-
-<dt><a name="facilities" id="facilities">Facilities</a></dt>
-
-<dd>Functionality includes <span class="term">elements</span>,
-<span class="term">attributes</span>, and the semantics
-associated with those <span class="term">elements</span> and
-<span class="term">attributes</span>. An implementation
-supporting that functionality is said to provide the necessary
-facilities.</dd>
-
-<dt>Implementation</dt>
-
-<dd>An implementation is a system that provides collection of
-<span class="term">facilities</span> and services that supports
-this specification. See <a href="#uaconf">User Agent
-Conformance</a> for more information.</dd>
-
-<dt>Parsing</dt>
-
-<dd>Parsing is the act whereby a <span class="term">
-document</span> is scanned, and the information contained within
-the <span class="term">document</span> is filtered into the
-context of the <span class="term">elements</span> in which the
-information is structured.</dd>
-
-<dt>Rendering</dt>
-
-<dd>Rendering is the act whereby the information in a <span
-class="term">document</span> is presented. This presentation is
-done in the form most appropriate to the environment (e.g.
-aurally, visually, in print).</dd>
-
-<dt>User Agent</dt>
-
-<dd>A user agent is an <span class="term">implementation</span>
-that retrieves and processes XHTML documents. See <a href=
-"#uaconf">User Agent Conformance</a> for more information.</dd>
-
-<dt>Validation</dt>
-
-<dd>Validation is a process whereby <span class="term">
-documents</span> are verified against the associated <span class=
-"term">DTD</span>, ensuring that the structure, use of <span
-class="term">elements</span>, and use of <span class="term">
-attributes</span> are consistent with the definitions in the
-<span class="term">DTD</span>.</dd>
-
-<dt><a name="wellformed" id="wellformed">Well-formed</a></dt>
-
-<dd>A <span class="term">document</span> is well-formed when it
-is structured according to the rules defined in <a href=
-"http://www.w3.org/TR/REC-xml#sec-well-formed">Section 2.1</a> of
-the XML 1.0 Recommendation <a href="#ref-xml">[XML]</a>.
-Basically, this definition states that elements, delimited by
-their start and end tags, are nested properly within one
-another.</dd>
-</dl>
-
-<!--OddPage-->
-<h1><a name="normative" id="normative">3. Normative Definition of
-XHTML 1.0</a></h1>
-
-<h2><a name="docconf" id="docconf">3.1 Document
-Conformance</a></h2>
-
-<p>This version of XHTML provides a definition of strictly
-conforming XHTML documents, which are restricted to tags and
-attributes from the XHTML namespace. See <a href=
-"#well-formed">Section 3.1.2</a> for information on using XHTML
-with other namespaces, for instance, to include metadata
-expressed in <abbr title="Resource Description Format">RDF</abbr> within XHTML documents.</p>
-
-<h3><a name="strict" id="strict">3.1.1 Strictly Conforming
-Documents</a></h3>
-
-<p>A Strictly Conforming XHTML Document is a document that
-requires only the facilities described as mandatory in this
-specification. Such a document must meet all of the following
-criteria:</p>
-
-<ol>
-<li>
-<p>It must validate against one of the three DTDs found in <a
-href="#dtds">Appendix&#160;A</a>.</p>
-</li>
-
-<li>
-<p>The root element of the document must be <code>
-&lt;html&gt;</code>.</p>
-</li>
-
-<li>
-<p>The root element of the document must designate the XHTML
-namespace using the <code>xmlns</code> attribute <a href=
-"#ref-xmlns">[XMLNAMES]</a>. The namespace for XHTML is
-defined to be
-<code>http://www.w3.org/1999/xhtml</code>.</p>
-</li>
-
-<li>
-<p>There must be a DOCTYPE declaration in the document prior to
-the root element. The public identifier included in
-the DOCTYPE declaration must reference one of the three DTDs
-found in <a href="#dtds">Appendix&#160;A</a> using the respective
-Formal Public Identifier. The system identifier may be changed to reflect
-local system conventions.</p>
-
-<pre>
-&lt;!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-strict.dtd&gt;
-
-&lt;!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-transitional.dtd&gt;
-
-&lt;!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
- "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-frameset.dtd&gt;
-</pre>
-</li>
-</ol>
-
-<p>Here is an example of a minimal XHTML document.</p>
-
-<div class="good">
-<pre>
-&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-strict.dtd"&gt;
-&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
- &lt;head&gt;
- &lt;title&gt;Virtual Library&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;p&gt;Moved to &lt;a href="http://vlib.org/"&gt;vlib.org&lt;/a&gt;.&lt;/p&gt;
- &lt;/body&gt;
-&lt;/html&gt;</pre>
-</div>
-
-<p>Note that in this example, the XML declaration is included. An XML
-declaration like the one above is
-not required in all XML documents. XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required
-when the character encoding of the document is other than the default UTF-8 or
-UTF-16.</p>
-
-<h3><a name="well-formed" id="well-formed">3.1.2 Using XHTML with
-other namespaces</a></h3>
-
-<p>The XHTML namespace may be used with other XML namespaces
-as per <a href="#ref-xmlns">[XMLNAMES]</a>, although such
-documents are not strictly conforming XHTML 1.0 documents as
-defined above. Future work by W3C will address ways to specify
-conformance for documents involving multiple namespaces.</p>
-
-<p>The following example shows the way in which XHTML 1.0 could
-be used in conjunction with the MathML Recommendation:</p>
-
-<div class="good">
-<pre>
-&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
- &lt;head&gt;
- &lt;title&gt;A Math Example&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;p&gt;The following is MathML markup:&lt;/p&gt;
- &lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
- &lt;apply&gt; &lt;log/&gt;
- &lt;logbase&gt;
- &lt;cn&gt; 3 &lt;/cn&gt;
- &lt;/logbase&gt;
- &lt;ci&gt; x &lt;/ci&gt;
- &lt;/apply&gt;
- &lt;/math&gt;
- &lt;/body&gt;
-&lt;/html&gt;
-</pre>
-</div>
-
-<p>The following example shows the way in which XHTML 1.0 markup
-could be incorporated into another XML namespace:</p>
-
-<div class="good">
-<pre>
-&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;!-- initially, the default namespace is "books" --&gt;
-&lt;book xmlns='urn:loc.gov:books'
- xmlns:isbn='urn:ISBN:0-395-36341-6' xml:lang="en" lang="en"&gt;
- &lt;title&gt;Cheaper by the Dozen&lt;/title&gt;
- &lt;isbn:number&gt;1568491379&lt;/isbn:number&gt;
- &lt;notes&gt;
- &lt;!-- make HTML the default namespace for a hypertext commentary --&gt;
- &lt;p xmlns='http://www.w3.org/1999/xhtml'&gt;
- This is also available &lt;a href="http://www.w3.org/"&gt;online&lt;/a&gt;.
- &lt;/p&gt;
- &lt;/notes&gt;
-&lt;/book&gt;
-</pre>
-</div>
-
-<h2><a name="uaconf" id="uaconf">3.2 User Agent
-Conformance</a></h2>
-
-<p>A conforming user agent must meet all of the following
-criteria:</p>
-
-<ol>
-<li>In order to be consistent with the XML 1.0 Recommendation <a
-href="#ref-xml">[XML]</a>, the user agent must parse and evaluate
-an XHTML document for well-formedness. If the user agent claims
-to be a validating user agent, it must also validate documents
-against their referenced DTDs according to <a href="#ref-xml">
-[XML]</a>.</li>
-
-<li>When the user agent claims to support <a href="#facilities">
-facilities</a> defined within this specification or required by
-this specification through normative reference, it must do so in
-ways consistent with the facilities' definition.</li>
-
-<li>When a user agent processes an XHTML document as generic XML,
-it shall only recognize attributes of type
-<code>ID</code> (e.g. the <code>id</code> attribute on most XHTML elements)
-as fragment identifiers.</li>
-
-<li>If a user agent encounters an element it does not recognize,
-it must render the element's content.</li>
-
-<li>If a user agent encounters an attribute it does not
-recognize, it must ignore the entire attribute specification
-(i.e., the attribute and its value).</li>
-
-<li>If a user agent encounters an attribute value it doesn't
-recognize, it must use the default attribute value.</li>
-
-<li>If it encounters an entity reference (other than one
-of the predefined entities) for which the User Agent has
-processed no declaration (which could happen if the declaration
-is in the external subset which the User Agent hasn't read), the entity
-reference should be rendered as the characters (starting
-with the ampersand and ending with the semi-colon) that
-make up the entity reference.</li>
-
-<li>When rendering content, User Agents that encounter
-characters or character entity references that are recognized but not renderable should display the document in such a way that it is obvious to the user that normal rendering has not taken place.</li>
-
-<li>
-The following characters are defined in [XML] as whitespace characters:
-
-<ul>
-<li>Space (&amp;#x0020;)</li>
-<li>Tab (&amp;#x0009;)</li>
-<li>Carriage return (&amp;#x000D;)</li>
-<li>Line feed (&amp;#x000A;)</li>
-</ul>
-
-<p>
-The XML processor normalizes different system's line end codes into one
-single line-feed character, that is passed up to the application. The XHTML
-user agent in addition, must treat the following characters as whitespace:
-</p>
-
-<ul>
-<li>Form feed (&amp;#x000C;)</li>
-<li>Zero-width space (&amp;#x200B;)</li>
-</ul>
-
-<p>
-In elements where the 'xml:space' attribute is set to 'preserve', the user
-agent must leave all whitespace characters intact (with the exception of
-leading and trailing whitespace characters, which should be removed).
-Otherwise, whitespace
-is handled according to the following rules:
-</p>
-
-<ul>
-<li>
-All whitespace surrounding block elements should be removed.
-</li>
-<li>
-Comments are removed entirely and do not affect whitespace handling. One
-whitespace character on either side of a comment is treated as two white
-space characters.
-</li>
-<li>
-Leading and trailing whitespace inside a block element must be removed.
-</li>
-<li>Line feed characters within a block element must be converted into a
-space (except when the 'xml:space' attribute is set to 'preserve').
-</li>
-<li>
-A sequence of white space characters must be reduced to a single space
-character (except when the 'xml:space' attribute is set to 'preserve').
-</li>
-<li>
-With regard to rendition,
-the User Agent should render the content in a
-manner appropriate to the language in which the content is written.
-In languages whose primary script is Latinate, the ASCII space
-character is typically used to encode both grammatical word boundaries and
-typographic whitespace; in languages whose script is related to Nagari
-(e.g., Sanskrit, Thai, etc.), grammatical boundaries may be encoded using
-the ZW 'space' character, but will not typically be represented by
-typographic whitespace in rendered output; languages using Arabiform scripts
-may encode typographic whitespace using a space character, but may also use
-the ZW space character to delimit 'internal' grammatical boundaries (what
-look like words in Arabic to an English eye frequently encode several words,
-e.g. 'kitAbuhum' = 'kitAbu-hum' = 'book them' == their book); and languages
-in the Chinese script tradition typically neither encode such delimiters nor
-use typographic whitespace in this way.
-</li>
-</ul>
-
-<p>Whitespace in attribute values is processed according to <a
-href="#ref-xml">[XML]</a>.</p>
-</li>
-</ol>
-
-<!--OddPage-->
-<h1><a name="diffs" id="diffs">4. Differences with HTML
-4.0</a></h1>
-
-<p>Due to the fact that XHTML is an XML application, certain
-practices that were perfectly legal in SGML-based HTML 4.0 <a
-href="#ref-html4">[HTML]</a> must be changed.</p>
-
-<h2><a name="h-4.1" id="h-4.1">4.1 Documents must be
-well-formed</a></h2>
-
-<p><a href="#wellformed">Well-formedness</a> is a new concept
-introduced by <a href="#ref-xml">[XML]</a>. Essentially this
-means that all elements must either have closing tags or be
-written in a special form (as described below), and that all the
-elements must nest.</p>
-
-<p>Although overlapping is illegal in SGML, it was widely
-tolerated in existing browsers.</p>
-
-<div class="good">
-<p><strong><em>CORRECT: nested elements.</em></strong></p>
-
-<p>&lt;p&gt;here is an emphasized
-&lt;em&gt;paragraph&lt;/em&gt;.&lt;/p&gt;</p>
-</div>
-
-<div class="bad">
-<p><strong><em>INCORRECT: overlapping elements</em></strong></p>
-
-<p>&lt;p&gt;here is an emphasized
-&lt;em&gt;paragraph.&lt;/p&gt;&lt;/em&gt;</p>
-</div>
-
-<h2><a name="h-4.2" id="h-4.2">4.2 Element and attribute
-names must be in lower case</a></h2>
-
-<p>XHTML documents must use lower case for all HTML element and
-attribute names. This difference is necessary because XML is
-case-sensitive e.g. &lt;li&gt; and &lt;LI&gt; are different
-tags.</p>
-
-<h2><a name="h-4.3" id="h-4.3">4.3 For non-empty elements,
-end tags are required</a></h2>
-
-<p>In SGML-based HTML 4.0 certain elements were permitted to omit
-the end tag; with the elements that followed implying closure.
-This omission is not permitted in XML-based XHTML. All elements
-other than those declared in the DTD as <code>EMPTY</code> must
-have an end tag.</p>
-
-<div class="good">
-<p><strong><em>CORRECT: terminated elements</em></strong></p>
-
-<p>&lt;p&gt;here is a paragraph.&lt;/p&gt;&lt;p&gt;here is
-another paragraph.&lt;/p&gt;</p>
-</div>
-
-<div class="bad">
-<p><strong><em>INCORRECT: unterminated elements</em></strong></p>
-
-<p>&lt;p&gt;here is a paragraph.&lt;p&gt;here is another
-paragraph.</p>
-</div>
-
-<h2><a name="h-4.4" id="h-4.4">4.4 Attribute values must
-always be quoted</a></h2>
-
-<p>All attribute values must be quoted, even those which appear
-to be numeric.</p>
-
-<div class="good">
-<p><strong><em>CORRECT: quoted attribute values</em></strong></p>
-
-<p>&lt;table rows="3"&gt;</p>
-</div>
-
-<div class="bad">
-<p><strong><em>INCORRECT: unquoted attribute values</em></strong></p>
-
-<p>&lt;table rows=3&gt;</p>
-</div>
-
-<h2><a name="h-4.5" id="h-4.5">4.5 Attribute
-Minimization</a></h2>
-
-<p>XML does not support attribute minimization. Attribute-value
-pairs must be written in full. Attribute names such as <code>
-compact</code> and <code>checked</code> cannot occur in elements
-without their value being specified.</p>
-
-<div class="good">
-<p><strong><em>CORRECT: unminimized attributes</em></strong></p>
-
-<p>&lt;dl compact="compact"&gt;</p>
-</div>
-
-<div class="bad">
-<p><strong><em>INCORRECT: minimized attributes</em></strong></p>
-
-<p>&lt;dl compact&gt;</p>
-</div>
-
-<h2><a name="h-4.6" id="h-4.6">4.6 Empty Elements</a></h2>
-
-<p>Empty elements must either have an end tag or the start tag must end with <code>/&gt;</code>. For instance,
-<code>&lt;br/&gt;</code> or <code>&lt;hr&gt;&lt;/hr&gt;</code>. See <a
-href="#guidelines">HTML Compatibility Guidelines</a> for information on ways to
-ensure this is backward compatible with HTML 4.0 user agents.</p>
-
-<div class="good">
-<p><strong><em>CORRECT: terminated empty tags</em></strong></p>
-
-<p>&lt;br/&gt;&lt;hr/&gt;</p>
-</div>
-
-<div class="bad">
-<p><strong><em>INCORRECT: unterminated empty tags</em></strong></p>
-
-<p>&lt;br&gt;&lt;hr&gt;</p>
-</div>
-
-<h2><a name="h-4.7" id="h-4.7">4.7 Whitespace handling in
-attribute values</a></h2>
-
-<p>In attribute values, user agents will strip leading and
-trailing whitespace from attribute values and map sequences
-of one or more whitespace characters (including line breaks) to
-a single inter-word space (an ASCII space character for western
-scripts). See <a href="http://www.w3.org/TR/REC-xml#AVNormalize">
-Section 3.3.3</a> of <a href="#ref-xml">[XML]</a>.</p>
-
-<h2><a name="h-4.8" id="h-4.8">4.8 Script and Style
-elements</a></h2>
-
-<p>In XHTML, the script and style elements are declared as having
-<code>#PCDATA</code> content. As a result, <code>&lt;</code> and
-<code>&amp;</code> will be treated as the start of markup, and
-entities such as <code>&amp;lt;</code> and <code>&amp;amp;</code>
-will be recognized as entity references by the XML processor to
-<code>&lt;</code> and <code>&amp;</code> respectively. Wrapping
-the content of the script or style element within a <code>
-CDATA</code> marked section avoids the expansion of these
-entities.</p>
-
-<div class="good">
-<pre>
-&lt;script&gt;
- &lt;![CDATA[
- ... unescaped script content ...
- ]]&gt;
- &lt;/script&gt;
-</pre>
-</div>
-
-<p><code>CDATA</code> sections are recognized by the XML
-processor and appear as nodes in the Document Object Model, see
-<a href=
-"http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-E067D597">
-Section 1.3</a> of the DOM Level 1 Recommendation <a href=
-"#ref-dom">[DOM]</a>.</p>
-
-<p>An alternative is to use external script and style
-documents.</p>
-
-<h2><a name="h-4.9" id="h-4.9">4.9 SGML exclusions</a></h2>
-
-<p>SGML gives the writer of a DTD the ability to exclude specific
-elements from being contained within an element. Such
-prohibitions (called "exclusions") are not possible in XML.</p>
-
-<p>For example, the HTML 4.0 Strict DTD forbids the nesting of an
-'<code>a</code>' element within another '<code>a</code>' element
-to any descendant depth. It is not possible to spell out such
-prohibitions in XML. Even though these prohibitions cannot be
-defined in the DTD, certain elements should not be nested. A
-summary of such elements and the elements that should not be
-nested in them is found in the normative <a href="#prohibitions">
-Appendix&#160;B</a>.</p>
-
-<h2><a name="h-4.10" id="h-4.10">4.10 The elements with 'id' and 'name'
-attributes</a></h2>
-
-<p>HTML 4.0 defined the <code>name</code> attribute for the elements
-<code>a</code>,
-<code>applet</code>, <code>frame</code>,
-<code>iframe</code>, <code>img</code>, and <code>map</code>.
-HTML 4.0 also introduced
-the <code>id</code> attribute. Both of these attributes are designed to be
-used as fragment identifiers.</p>
-<p>In XML, fragment identifiers are of type <code>ID</code>, and
-there can only be a single attribute of type <code>ID</code> per element.
-Therefore, in XHTML 1.0 the <code>id</code>
-attribute is defined to be of type <code>ID</code>. In order to
-ensure that XHTML 1.0 documents are well-structured XML documents, XHTML 1.0
-documents MUST use the <code>id</code> attribute when defining fragment
-identifiers, even on elements that historically have also had a
-<code>name</code> attribute.
-See the <a href="#guidelines">HTML Compatibility
-Guidelines</a> for information on ensuring such anchors are backwards
-compatible when serving XHTML documents as media type <code>text/html</code>.
-</p>
-<p>Note that in XHTML 1.0, the <code>name</code> attribute of these
-elements is formally deprecated, and will be removed in a
-subsequent version of XHTML.</p>
-
-<!--OddPage-->
-<h1><a name="issues" id="issues">5. Compatibility Issues</a></h1>
-
-<p>Although there is no requirement for XHTML 1.0 documents to be
-compatible with existing user agents, in practice this is easy to
-accomplish. Guidelines for creating compatible documents can be
-found in <a href="#guidelines">Appendix&#160;C</a>.</p>
-
-<h2><a name="media" id="media">5.1 Internet Media Type</a></h2>
-<p>As of the publication of this recommendation, the general
-recommended MIME labeling for XML-based applications
-has yet to be resolved.</p>
-
-<p>However, XHTML Documents which follow the guidelines set forth
-in <a href="#guidelines">Appendix C</a>, "HTML Compatibility Guidelines" may be
-labeled with the Internet Media Type "text/html", as they
-are compatible with most HTML browsers. This document
-makes no recommendation about MIME labeling of other
-XHTML documents.</p>
-
-<!--OddPage-->
-<h1><a name="future" id="future">6. Future Directions</a></h1>
-
-<p>XHTML 1.0 provides the basis for a family of document types
-that will extend and subset XHTML, in order to support a wide
-range of new devices and applications, by defining modules and
-specifying a mechanism for combining these modules. This
-mechanism will enable the extension and sub-setting of XHTML 1.0
-in a uniform way through the definition of new modules.</p>
-
-<h2><a name="mods" id="mods">6.1 Modularizing HTML</a></h2>
-
-<p>As the use of XHTML moves from the traditional desktop user
-agents to other platforms, it is clear that not all of the XHTML
-elements will be required on all platforms. For example a hand
-held device or a cell-phone may only support a subset of XHTML
-elements.</p>
-
-<p>The process of modularization breaks XHTML up into a series of
-smaller element sets. These elements can then be recombined to
-meet the needs of different communities.</p>
-
-<p>These modules will be defined in a later W3C document.</p>
-
-<h2><a name="extensions" id="extensions">6.2 Subsets and
-Extensibility</a></h2>
-
-<p>Modularization brings with it several advantages:</p>
-
-<ul>
-<li>
-<p>It provides a formal mechanism for sub-setting XHTML.</p>
-</li>
-
-<li>
-<p>It provides a formal mechanism for extending XHTML.</p>
-</li>
-
-<li>
-<p>It simplifies the transformation between document types.</p>
-</li>
-
-<li>
-<p>It promotes the reuse of modules in new document types.</p>
-</li>
-</ul>
-
-<h2><a name="profiles" id="profiles">6.3 Document
-Profiles</a></h2>
-
-<p>A document profile specifies the syntax and semantics of a set
-of documents. Conformance to a document profile provides a basis
-for interoperability guarantees. The document profile specifies
-the facilities required to process documents of that type, e.g.
-which image formats can be used, levels of scripting, style sheet
-support, and so on.</p>
-
-<p>For product designers this enables various groups to define
-their own standard profile.</p>
-
-<p>For authors this will obviate the need to write several
-different versions of documents for different clients.</p>
-
-<p>For special groups such as chemists, medical doctors, or
-mathematicians this allows a special profile to be built using
-standard HTML elements plus a group of elements geared to the
-specialist's needs.</p>
-
-<!--OddPage-->
-<h1><a name="appendices" id="appendices"></a>
-<a name="dtds" id="dtds">Appendix A. DTDs</a></h1>
-
-<p><b>This appendix is normative.</b></p>
-
-<p>These DTDs and entity sets form a normative part of this
-specification. The complete set of DTD files together with an XML
-declaration and SGML Open Catalog is included in the <a href=
-"xhtml1.zip">zip file</a> for this specification.</p>
-
-<h2><a name="h-A1" id="h-A1">A.1 Document Type
-Definitions</a></h2>
-
-<p>These DTDs approximate the HTML 4.0 DTDs. It is likely that
-when the DTDs are modularized, a method of DTD construction will
-be employed that corresponds more closely to HTML 4.0.</p>
-
-<ul>
-<li>
-<p><a href="DTD/xhtml1-strict.dtd" type="text/plain">
-XHTML-1.0-Strict</a></p>
-</li>
-
-<li>
-<p><a href="DTD/xhtml1-transitional.dtd" type="text/plain">
-XHTML-1.0-Transitional</a></p>
-</li>
-
-<li>
-<p><a href="DTD/xhtml1-frameset.dtd" type="text/plain">
-XHTML-1.0-Frameset</a></p>
-</li>
-</ul>
-
-<h2><a name="h-A2" id="h-A2">A.2 Entity Sets</a></h2>
-
-<p>The XHTML entity sets are the same as for HTML 4.0, but have
-been modified to be valid XML 1.0 entity declarations. Note the
-entity for the Euro currency sign (<code>&amp;euro;</code> or
-<code>&amp;#8364;</code> or <code>&amp;#x20AC;</code>) is defined
-as part of the special characters.</p>
-
-<ul>
-<li>
-<p><a href="DTD/xhtml-lat1.ent">Latin-1 characters</a></p>
-</li>
-
-<li>
-<p><a href="DTD/xhtml-special.ent">Special characters</a></p>
-</li>
-
-<li>
-<p><a href="DTD/xhtml-symbol.ent">Symbols</a></p>
-</li>
-</ul>
-
-<!--OddPage-->
-<h1><a name="prohibitions" id="prohibitions">Appendix B. Element
-Prohibitions</a></h1>
-
-<p><b>This appendix is normative.</b></p>
-
-<p>The following elements have prohibitions on which elements
-they can contain (see <a href="#h-4.9">Section 4.9</a>). This
-prohibition applies to all depths of nesting, i.e. it contains
-all the descendant elements.</p>
-
-<dl><dt><code class="tag">a</code></dt>
-<dd>
-cannot contain other <code>a</code> elements.</dd>
-<dt><code class="tag">pre</code></dt>
-<dd>cannot contain the <code>img</code>, <code>object</code>,
-<code>big</code>, <code>small</code>, <code>sub</code>, or <code>
-sup</code> elements.</dd>
-
-<dt><code class="tag">button</code></dt>
-<dd>cannot contain the <code>input</code>, <code>select</code>,
-<code>textarea</code>, <code>label</code>, <code>button</code>,
-<code>form</code>, <code>fieldset</code>, <code>iframe</code> or
-<code>isindex</code> elements.</dd>
-<dt><code class="tag">label</code></dt>
-<dd>cannot contain other <code class="tag">label</code> elements.</dd>
-<dt><code class="tag">form</code></dt>
-<dd>cannot contain other <code>form</code> elements.</dd>
-</dl>
-
-<!--OddPage-->
-<h1><a name="guidelines" id="guidelines">Appendix C.
-HTML Compatibility Guidelines</a></h1>
-
-<p><b>This appendix is informative.</b></p>
-
-<p>This appendix summarizes design guidelines for authors who
-wish their XHTML documents to render on existing HTML user
-agents.</p>
-
-<h2>C.1 Processing Instructions</h2>
-<p>Be aware that processing instructions are rendered on some
-user agents. However, also note that when the XML declaration is not included
-in a document, the document can only use the default character encodings UTF-8
-or UTF-16.</p>
-
-<h2>C.2 Empty Elements</h2>
-<p>Include a space before the trailing <code>/</code> and <code>
-&gt;</code> of empty elements, e.g. <code class="greenmono">
-&lt;br&#160;/&gt;</code>, <code class="greenmono">
-&lt;hr&#160;/&gt;</code> and <code class="greenmono">&lt;img
-src="karen.jpg" alt="Karen"&#160;/&gt;</code>. Also, use the
-minimized tag syntax for empty elements, e.g. <code class=
-"greenmono">&lt;br /&gt;</code>, as the alternative syntax <code
-class="greenmono">&lt;br&gt;&lt;/br&gt;</code> allowed by XML
-gives uncertain results in many existing user agents.</p>
-
-<h2>C.3 Element Minimization and Empty Element Content</h2>
-<p>Given an empty instance of an element whose content model is
-not <code>EMPTY</code> (for example, an empty title or paragraph)
-do not use the minimized form (e.g. use <code class="greenmono">
-&lt;p&gt; &lt;/p&gt;</code> and not <code class="greenmono">
-&lt;p&#160;/&gt;</code>).</p>
-
-<h2>C.4 Embedded Style Sheets and Scripts</h2>
-<p>Use external style sheets if your style sheet uses <code>
-&lt;</code> or <code>&amp;</code> or <code>]]&gt;</code> or <code>--</code>. Use
-external scripts if your script uses <code>&lt;</code> or <code>
-&amp;</code> or <code>]]&gt;</code> or <code>--</code>. Note that XML parsers
-are permitted to silently remove the contents of comments. Therefore, the historical
-practice of "hiding" scripts and style sheets within comments to make the
-documents backward compatible is likely to not work as expected in XML-based
-implementations.</p>
-
-<h2>C.5 Line Breaks within Attribute Values</h2>
-<p>Avoid line breaks and multiple whitespace characters within
-attribute values. These are handled inconsistently by user
-agents.</p>
-
-<h2>C.6 Isindex</h2>
-<p>Don't include more than one <code>isindex</code> element in
-the document <code>head</code>. The <code>isindex</code> element
-is deprecated in favor of the <code>input</code> element.</p>
-
-<h2>C.7 The <code>lang</code> and <code>xml:lang</code> Attributes</h2>
-<p>Use both the <code>lang</code> and <code>xml:lang</code>
-attributes when specifying the language of an element. The value
-of the <code>xml:lang</code> attribute takes precedence.</p>
-
-<h2>C.8 Fragment Identifiers</h2>
-<p>In XML, <abbr title="Uniform Resource Identifiers">URIs</abbr> [<a href="#ref-rfc2396">RFC2396</a>] that end with fragment identifiers of the form
-<code>"#foo"</code> do not refer to elements with an attribute
-<code>name="foo"</code>; rather, they refer to elements with an
-attribute defined to be of type <code>ID</code>, e.g., the <code>
-id</code> attribute in HTML 4.0. Many existing HTML clients don't
-support the use of <code>ID</code>-type attributes in this way,
-so identical values may be supplied for both of these attributes to ensure
-maximum forward and backward compatibility (e.g., <code class=
-"greenmono">&lt;a id="foo" name="foo"&gt;...&lt;/a&gt;</code>).</p>
-
-<p>Further, since the set of
-legal values for attributes of type <code>ID</code> is much smaller than
-for those of type <code>CDATA</code>, the type of the <code>name</code>
-attribute has been changed to <code>NMTOKEN</code>. This attribute is
-constrained such that it can only have the same values as type
-<code>ID</code>, or as the <code>Name</code> production in XML 1.0 Section
-2.5, production 5. Unfortunately, this constraint cannot be expressed in the
-XHTML 1.0 DTDs. Because of this change, care must be taken when
-converting existing HTML documents. The values of these attributes
-must be unique within the document, valid, and any references to these
-fragment identifiers (both
-internal and external) must be updated should the values be changed during
-conversion.</p>
-<p>Finally, note that XHTML 1.0 has deprecated the
-<code>name</code> attribute of the <code>a</code>, <code>applet</code>, <code>frame</code>, <code>iframe</code>, <code>img</code>, and <code>map</code>
-elements, and it will be
-removed from XHTML in subsequent versions.</p>
-
-<h2>C.9 Character Encoding</h2>
-<p>To specify a character encoding in the document, use both the
-encoding attribute specification on the xml declaration (e.g.
-<code class="greenmono">&lt;?xml version="1.0"
-encoding="EUC-JP"?&gt;</code>) and a meta http-equiv statement
-(e.g. <code class="greenmono">&lt;meta http-equiv="Content-type"
-content='text/html; charset="EUC-JP"'&#160;/&gt;</code>). The
-value of the encoding attribute of the xml processing instruction
-takes precedence.</p>
-
-<h2>C.10 Boolean Attributes</h2>
-<p>Some HTML user agents are unable to interpret boolean
-attributes when these appear in their full (non-minimized) form,
-as required by XML 1.0. Note this problem doesn't effect user
-agents compliant with HTML 4.0. The following attributes are
-involved: <code>compact</code>, <code>nowrap</code>, <code>
-ismap</code>, <code>declare</code>, <code>noshade</code>, <code>
-checked</code>, <code>disabled</code>, <code>readonly</code>,
-<code>multiple</code>, <code>selected</code>, <code>
-noresize</code>, <code>defer</code>.</p>
-
-<h2>C.11 Document Object Model and XHTML</h2>
-<p>
-The Document Object Model level 1 Recommendation [<a href="#ref-dom">DOM</a>]
-defines document object model interfaces for XML and HTML 4.0. The HTML 4.0
-document object model specifies that HTML element and attribute names are
-returned in upper-case. The XML document object model specifies that
-element and attribute names are returned in the case they are specified. In
-XHTML 1.0, elements and attributes are specified in lower-case. This apparent difference can be
-addressed in two ways:
-</p>
-<ol>
-<li>Applications that access XHTML documents served as Internet media type
-<code>text/html</code>
-via the <abbr title="Document Object Model">DOM</abbr> can use the HTML DOM,
-and can rely upon element and attribute names being returned in
-upper-case from those interfaces.</li>
-<li>Applications that access XHTML documents served as Internet media types
-<code>text/xml</code> or <code>application/xml</code>
-can also use the XML DOM. Elements and attributes will be returned in lower-case.
-Also, some XHTML elements may or may
-not appear
-in the object tree because they are optional in the content model
-(e.g. the <code>tbody</code> element within
-<code>table</code>). This occurs because in HTML 4.0 some elements were
-permitted to be minimized such that their start and end tags are both omitted
-(an SGML feature).
-This is not possible in XML. Rather than require document authors to insert
-extraneous elements, XHTML has made the elements optional.
-Applications need to adapt to this
-accordingly.</li>
-</ol>
-
-<h2>C.12 Using Ampersands in Attribute Values</h2>
-<p>
-When an attribute value contains an ampersand, it must be expressed as a character
-entity reference
-(e.g. "<code>&amp;amp;</code>"). For example, when the
-<code>href</code> attribute
-of the <code>a</code> element refers to a
-CGI script that takes parameters, it must be expressed as
-<code>http://my.site.dom/cgi-bin/myscript.pl?class=guest&amp;amp;name=user</code>
-rather than as
-<code>http://my.site.dom/cgi-bin/myscript.pl?class=guest&amp;name=user</code>.
-</p>
-
-<h2>C.13 Cascading Style Sheets (CSS) and XHTML</h2>
-
-<p>The Cascading Style Sheets level 2 Recommendation [<a href="#ref-css2">CSS2</a>] defines style
-properties which are applied to the parse tree of the HTML or XML
-document. Differences in parsing will produce different visual or
-aural results, depending on the selectors used. The following hints
-will reduce this effect for documents which are served without
-modification as both media types:</p>
-
-<ol>
-<li>
-CSS style sheets for XHTML should use lower case element and
-attribute names.</li>
-
-
-<li>In tables, the tbody element will be inferred by the parser of an
-HTML user agent, but not by the parser of an XML user agent. Therefore
-you should always explicitely add a tbody element if it is referred to
-in a CSS selector.</li>
-
-<li>Within the XHTML name space, user agents are expected to
-recognize the "id" attribute as an attribute of type ID.
-Therefore, style sheets should be able to continue using the
-shorthand "#" selector syntax even if the user agent does not read
-the DTD.</li>
-
-<li>Within the XHTML name space, user agents are expected to
-recognize the "class" attribute. Therefore, style sheets should be
-able to continue using the shorthand "." selector syntax.</li>
-
-<li>
-CSS defines different conformance rules for HTML and XML documents;
-be aware that the HTML rules apply to XHTML documents delivered as
-HTML and the XML rules apply to XHTML documents delivered as XML.</li>
-</ol>
-<!--OddPage-->
-<h1><a name="acks" id="acks">Appendix D.
-Acknowledgements</a></h1>
-
-<p><b>This appendix is informative.</b></p>
-
-<p>This specification was written with the participation of the
-members of the W3C HTML working group:</p>
-
-<dl>
-<dd>Steven Pemberton, CWI (HTML Working Group Chair)<br />
-Murray Altheim, Sun Microsystems<br />
-Daniel Austin, CNET: The Computer Network<br />
-Frank Boumphrey, HTML Writers Guild<br />
-John Burger, Mitre<br />
-Andrew W. Donoho, IBM<br />
-Sam Dooley, IBM<br />
-Klaus Hofrichter, GMD<br />
-Philipp Hoschka, W3C<br />
-Masayasu Ishikawa, W3C<br />
-Warner ten Kate, Philips Electronics<br />
-Peter King, Phone.com<br />
-Paula Klante, JetForm<br />
-Shin'ichi Matsui, W3C/Panasonic<br />
-Shane McCarron, Applied Testing and Technology (The Open Group through August
-1999)<br />
-Ann Navarro, HTML Writers Guild<br />
-Zach Nies, Quark<br />
-Dave Raggett, W3C/HP (W3C lead for HTML)<br />
-Patrick Schmitz, Microsoft<br />
-Sebastian Schnitzenbaumer, Stack Overflow<br />
-Chris Wilson, Microsoft<br />
-Ted Wugofski, Gateway 2000<br />
-Dan Zigmond, WebTV Networks</dd>
-</dl>
-
-<!--OddPage-->
-<h1><a name="refs" id="refs">Appendix E. References</a></h1>
-
-<p><b>This appendix is informative.</b></p>
-
-<dl>
-
-<dt><a name="ref-css2" id="ref-css2"><b>[CSS2]</b></a></dt>
-
-<dd><a href="http://www.w3.org/TR/REC-CSS2">"Cascading Style Sheets, level 2 (CSS2) Specification"</a>, B.
-Bos, H. W. Lie, C. Lilley, I. Jacobs, 12 May 1998.<br />
-Available at: <a href="http://www.w3.org/TR/REC-CSS2">
-http://www.w3.org/TR/REC-CSS2</a></dd>
-
-<dt><a name="ref-dom" id="ref-dom"><b>[DOM]</b></a></dt>
-
-<dd><a href="http://www.w3.org/TR/REC-DOM-Level-1">"Document Object Model (DOM) Level 1 Specification"</a>, Lauren
-Wood <i>et al.</i>, 1 October 1998.<br />
-Available at: <a href="http://www.w3.org/TR/REC-DOM-Level-1">
-http://www.w3.org/TR/REC-DOM-Level-1</a></dd>
-
-<dt><a name="ref-html4" id="ref-html4"><b>[HTML]</b></a></dt>
-
-<dd><a href="http://www.w3.org/TR/1999/PR-html40-19990824">"HTML 4.01 Specification"</a>, D. Raggett, A. Le&#160;Hors, I.
-Jacobs, 24 August 1999.<br />
-Available at: <a href="http://www.w3.org/TR/1999/PR-html40-19990824">
-http://www.w3.org/TR/1999/PR-html40-19990824</a></dd>
-
-<dt><a name="ref-posix" id="ref-posix"><b>[POSIX.1]</b></a></dt>
-
-<dd>"ISO/IEC 9945-1:1990 Information Technology - Portable
-Operating System Interface (POSIX) - Part 1: System Application
-Program Interface (API) [C Language]", Institute of Electrical
-and Electronics Engineers, Inc, 1990.</dd>
-
-<dt><a name="ref-rfc2046" id="ref-rfc2046"><b>
-[RFC2046]</b></a></dt>
-
-<dd><a href="http://www.ietf.org/rfc/rfc2046.txt">"RFC2046: Multipurpose Internet Mail Extensions (MIME) Part
-Two: Media Types"</a>, N. Freed and N. Borenstein, November
-1996.<br />
-Available at <a href="http://www.ietf.org/rfc/rfc2046.txt">
-http://www.ietf.org/rfc/rfc2046.txt</a>. Note that this RFC
-obsoletes RFC1521, RFC1522, and RFC1590.</dd>
-
-<dt><a name="ref-rfc2119" id="ref-rfc2119"><b>
-[RFC2119]</b></a></dt>
-
-<dd><a href="http://www.ietf.org/rfc/rfc2119.txt">"RFC2119: Key words for use in RFCs to Indicate Requirement
-Levels"</a>, S. Bradner, March 1997.<br />
-Available at: <a href="http://www.ietf.org/rfc/rfc2119.txt">
-http://www.ietf.org/rfc/rfc2119.txt</a></dd>
-
-<dt><a name="ref-rfc2376" id="ref-rfc2376"><b>
-[RFC2376]</b></a></dt>
-
-<dd><a href="http://www.ietf.org/rfc/rfc2376.txt">"RFC2376: XML Media Types"</a>, E. Whitehead, M. Murata, July
-1998.<br />
-Available at: <a href="http://www.ietf.org/rfc/rfc2376.txt">
-http://www.ietf.org/rfc/rfc2376.txt</a></dd>
-
-<dt><a name="ref-rfc2396" id="ref-rfc2396"><b>
-[RFC2396]</b></a></dt>
-
-<dd><a href="http://www.ietf.org/rfc/rfc2396.txt">"RFC2396: Uniform Resource Identifiers (URI): Generic
-Syntax"</a>, T. Berners-Lee, R. Fielding, L. Masinter, August
-1998.<br />
-This document updates RFC1738 and RFC1808.<br />
-Available at: <a href="http://www.ietf.org/rfc/rfc2396.txt">
-http://www.ietf.org/rfc/rfc2396.txt</a></dd>
-
-<dt><a name="ref-xml" id="ref-xml"><b>[XML]</b></a></dt>
-
-<dd><a href="http://www.w3.org/TR/REC-xml">"Extensible Markup Language (XML) 1.0 Specification"</a>, T.
-Bray, J. Paoli, C. M. Sperberg-McQueen, 10 February 1998.<br />
-Available at: <a href="http://www.w3.org/TR/REC-xml">
-http://www.w3.org/TR/REC-xml</a></dd>
-
-<dt><a name="ref-xmlns" id="ref-xmlns"><b>[XMLNAMES]</b></a></dt>
-
-<dd><a href="http://www.w3.org/TR/REC-xml-names">"Namespaces in XML"</a>, T. Bray, D. Hollander, A. Layman, 14
-January 1999.<br />
-XML namespaces provide a simple method for qualifying names used
-in XML documents by associating them with namespaces identified
-by URI.<br />
-Available at: <a href="http://www.w3.org/TR/REC-xml-names">
-http://www.w3.org/TR/REC-xml-names</a></dd>
-
-</dl>
-<p><a href="http://www.w3.org/WAI/WCAG1AAA-Conformance"
-title="Explanation of Level Triple-A Conformance">
-<img height="32" width="88"
-src="wcag1AAA.gif"
-alt="Level Triple-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0" /></a></p>
-<div class="navbar">
- <hr />
- <a href="#toc">table of contents</a>
-</div>
-</body>
-</html>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/xlink.lint-test b/src/lint/linter/__tests__/xml/xlink.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/xlink.lint-test
+++ /dev/null
@@ -1,530 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE spec PUBLIC "-//W3C//DTD Specification::19990205//EN" "dtds/xmlspec.dtd" [
-<!ENTITY doc-type "WD">
-<!ENTITY iso6.doc.date '29-May-1999'>
-]>
-<!--ArborText, Inc., 1988-1998, v.4002-->
-<?Pub UDT _bookmark _target?>
-<?Pub Inc?>
-<?xml-stylesheet
-href="file:///C|/Program%20Files/SoftQuad/XMetaL%201/display/xmlspec.css"
-type="text/css"?>
-<spec>
-
-<!-- Last edited: 27 May 1999 by bent -->
-<header><?Pub Dtl?>
- <title>XML Linking Language (XLink)</title>
- <version>Version 1.0</version>
- <w3c-designation><!-- &doc-type;-&iso6.doc.date; --> WD-xlink-19990527</w3c-designation>
- <w3c-doctype>World Wide Web Consortium Working Draft</w3c-doctype>
- <pubdate><day>29</day><month>May</month><year>1999</year></pubdate>
- <notice>
- <p>This draft is for public discussion.</p>
- </notice>
- <publoc><loc href="http://www.w3.org/XML/Group/1999/05/WD-xlink-current">http://www.w3.org/XML/Group/1999/05/WD-xlink-current</loc></publoc>
- <prevlocs>
- <!--Check: was it actually August?-->
- <loc href="http://www.w3.org/XML/Group/1999/05/WD-xlink-19990527">http://www.w3.org/XML/Group/1999/05/WD-xlink-19990527</loc>
- <loc href="http://www.w3.org/XML/Group/1999/05/WD-xlink-19990505">http://www.w3.org/XML/Group/1999/05/WD-xlink-19990505</loc>
- <loc href="http://www.w3.org/TR/1998/WD-xlink-19980303">http://www.w3.org/TR/1998/WD-xlink-19980303</loc>
- <loc href="http://www.w3.org/TR/WD-xml-link-970630">http://www.w3.org/TR/WD-xml-link-970630</loc></prevlocs>
-
- <authlist>
- <!--Updated author hrefs dorchard-->
- <!-- Update Steve's email - bent -->
- <author>
- <name>Steve DeRose</name>
- <affiliation>Inso Corp. and Brown University</affiliation>
- <email href="mailto:Steven_DeRose@Brown.edu">Steven_DeRose@Brown.edu</email>
- </author>
- <author>
- <name>David Orchard</name>
- <affiliation>IBM Corp.</affiliation>
- <email href="mailto:dorchard@ca.ibm.com">dorchard@ca.ibm.com</email>
- </author>
- <author>
- <name>Ben Trafford</name>
- <affiliation>Invited Expert</affiliation>
- <email href="mailto:bent@exemplary.net">bent@exemplary.net</email>
- </author>
- <!-- I suggest we move Eve and Tim down to the Acknowledgements section. We
- also ought to add Gabe Beged-Dov there, as well. bent
- how shall we cite Tim? sjd What about with an Acknowledgments section?
- -elm <AUTHOR> <NAME>Tim Bray</NAME> <AFFILIATION>Textuality</AFFILIATION>
- <EMAIL>tbray@textuality.com</EMAIL> </AUTHOR>-->
- </authlist>
-
- <status>
- <p>This is a W3C Working Draft for review by W3C members and other interested parties. It is a draft document and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress". A list of current W3C working drafts can be found at <loc href="http://www.w3.org/TR">http://www.w3.org/TR</loc>.</p>
- <p><emph>Note:</emph> Since working drafts are subject to frequent change, you are advised to reference the above URI, rather than the URIs for working drafts themselves. Some of the work remaining is described in <specref ref="unfinished"/>. </p>
- <p>This work is part of the W3C XML Activity (for current status, see <loc href="http://www.w3.org/MarkUp/SGML/Activity">http://www.w3.org/XML/Activity </loc>). For information about the XPointer language which is expected to be used with XLink, see <loc href="http://www.w3.org/MarkUp/SGML/Activity">http://www.w3.org/TR/WD-xptr</loc>.
- </p>
- <p>See <loc href="http://www.w3.org/TR/NOTE-xlink-principles">http://www.w3.org/TR/NOTE-xlink-principles </loc> for additional background on the design principles informing XLink.</p>
- <p>Also see <loc href="http://www.w3.org/TR/NOTE-xlink-req/">http://www.w3.org/TR/NOTE-xlink-req/</loc> for the XLink requirements that this document attempts to satisfy.</p>
- </status>
-
- <abstract>
- <!-- edited the abstract for further clarity - bent -->
- <p>This specification defines constructs that may be inserted into XML DTDs, schemas and document instances to describe links between objects. It uses XML syntax to create structures that can describe the simple unidirectional hyperlinks of today's HTML as well as more sophisticated links.</p>
- </abstract>
-
- <pubstmt>
- <p>Burlington, Seekonk, et al.: World-Wide Web Consortium, XML Working Group, 1998.</p>
- </pubstmt>
-
- <sourcedesc>
- <p>Created in electronic form.</p>
- </sourcedesc>
-
- <langusage>
- <language id="en">English</language>
- <language id="ebnf">Extended Backus-Naur Form (formal grammar)</language>
- </langusage>
-
- <revisiondesc>
- <slist>
- <sitem>1997-01-15 : Skeleton draft by TB</sitem>
- <sitem>1997-01-24 : Fleshed out by sjd</sitem>
- <sitem>1997-04-08 : Substantive draft</sitem>
- <sitem>1997-06-30 : Public draft</sitem>
- <sitem>1997-08-01 : Public draft</sitem>
- <sitem>1997-08-05 : Prose/organization work by sjd</sitem>
- <sitem>1997-10-14: Conformance and design principles; a bit of cleanup by elm</sitem>
- <sitem>1997-11-07: Update for editorial issues per issues doc, by sjd.</sitem>
- <sitem>1997-12-01: Update for editorial issues per issues doc in preparation for F2F meeting, by sjd.</sitem>
- <sitem>1998-01-13: Editorial cleanup, addition of new design principles, by elm.</sitem>
- <sitem>1998-02-27: Splitting out of XLink and XPointer, by elm.</sitem>
- <sitem>1998-03-03: Moved most of the XPointer locator stuff here. elm</sitem>
- <sitem>1999-04-24: Editorial rewrites to represent new ideas on XLink, especially the inclusion of arcs. bent</sitem>
- <sitem>1999-05-05: Prose/organization work by dorchard. Moved much of the semantics section around, from: locators, link semantics, remote resource semantics, local resource semantics; to: resource semantics, locators, behavior semantics, link semantics, arc semantics</sitem>
- <sitem>1999-05-12: Prose/organization work. Re-organized some of the sections, removed XML constructs from the document, added descriptive prose, edited document text for clarity. Rewrote the link recognition section. bent</sitem>
- <sitem>1999-05-17: Further prose work. Added non-normative examples. Clarified arcs. bent</sitem>
- <sitem>1999-05-23: Edited for grammar and clarity. bent</sitem>
- <sitem>1999-05-27: Final once-over before sending to group. Fixed sjd's email address. bent</sitem>
- </slist>
- </revisiondesc>
-</header>
-
-<body>
- <div1><?Pub Dtl?>
- <head>Introduction</head>
- <p>This specification defines constructs that may be inserted into XML DTDs, schemas, and document instances to describe links between objects. A <termref def="dt-link">link</termref>, as the term is used here, is an explicit relationship between two or more data objects or portions of data objects. This specification is concerned with the syntax used to assert link existence and describe link characteristics. Implicit (unasserted) relationships, for example that of one word to the next or that of a word in a text to its entry in an on-line dictionary are obviously important, but outside its scope.</p>
- <p>Links are asserted by <xtermref href="WD-xml-lang.html#dt-element">elements </xtermref> contained in <xtermref href="WD-xml-lang.html#dt-xml-doc">XML document instances</xtermref>. The simplest case is very like an HTML <code>A</code> link, and has these characteristics:
- <ulist>
- <item><p>The link is expressed at one of its ends (similar to the <code>A</code> element in some document)</p></item>
- <item><p>Users can only initiate travel from that end to the other</p></item>
- <item><p>The link's effect on windows, frames, go-back lists, stylesheets in use, and so on is mainly determined by browsers, not by the link itself. For example, traveral of <code>A</code> links normally replaces the current view, perhaps with a user option to open a new window.</p></item>
- <item><p>The link goes to only one destination (although a server may have great freedom in finding or dynamically creating that destination).</p></item>
- </ulist>
- </p>
- <p>While this set of characteristics is already very powerful and obviously has proven itself highly useful and effective, each of these assumptions also limits the range of hypertext functionality. The linking model defined here provides ways to create links that go beyond each of these specific characteristics, thus providing features previously available mostly in dedicated hypermedia systems.
- </p>
-
-<div2>
- <head>Origin and Goals</head>
- <p>Following is a summary of the design principles governing XLink:
- <olist>
- <item><p>XLink must be straightforwardly usable over the Internet. </p></item>
- <item><p>XLink must be usable by a wide variety of link usage domains and classes of linking application software.</p></item>
- <item><p>XLink must support HTML 4.0 linking constructs.</p></item>
- <item><p>The XLink expression language must be XML.</p></item>
- <item><p>The XLink design must be formal, concise, and illustrative.</p></item>
- <item><p>XLinks must be human-readable and human-writable.</p></item>
- <item><p>XLinks may reside within or outside the documents in which the
- participating resources reside. </p></item>
- <item><p>XLink must represent the abstract structure and significance of links.</p></item>
- <item><p>XLink must be feasible to implement.</p></item>
- <item><p>XLink must be informed by knowledge of established hypermedia systems and standards.</p></item>
- </olist>
- </p>
-</div2>
-<!--Changed the list of requirements to reflect current XLink requirements
-document. bent-->
-
-<div2>
- <head>Relationship to Existing Standards</head>
- <p>Three standards have been especially influential:
- <ulist>
- <item><p><emph>HTML:</emph> Defines several SGML element types that represent links.</p></item>
- <item><p><emph>HyTime:</emph> Defines inline and out-of-line link structures and some semantic features, including traversal control and presentation of objects. <!--Changed from "placement of objects into a display or other space" -elm-->
- </p></item>
- <item><p><emph>Text Encoding Initiative Guidelines (TEI P3):</emph> Provides structures for creating links, aggregate objects, and link collections out of them.</p></item>
- </ulist>
- </p>
- <p>Many other linking systems have also informed this design, especially Dexter, FRESS, MicroCosm, and InterMedia.</p>
-</div2>
-
-<div2>
- <head>Terminology</head>
- <p>The following basic terms apply in this document. <!--<IMG
- SRC="local://./linkdiag.gif">(figure to be inserted)-->
- <glist>
- <gitem>
- <label><termdef id="dt-arc" term="Arc">arc</termdef></label>
- <def><p>A symbolic representation of traversal behavior in links, especially the direction, context and timing of traversal.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-eltree" term="Element Tree">element tree</termdef></label>
- <def><p>A representation of the relevant structure specified by the tags and attributes in an XML document, based on "groves" as defined in the ISO DSSSL standard. </p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-inline" term="In-Line Link">inline link</termdef></label>
- <def><p>Abstractly, a <termref def="dt-link">link</termref> which serves as one of its own <termref def="dt-resource">resources</termref>. Concretely, a link where the content of the <termref def="dt-linkel">linking element</termref> serves as a <termref def="dt-particip-resource">participating resource</termref>.
- HTML <code>A</code>, HyTime <code>clink</code>, and TEI <code>XREF</code>
- are all inline links.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-link" term="Link">link</termdef></label>
- <def><p>An explicit relationship between two or more data objects or portions of data objects.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-linkel" term="Linking Element">linking element </termdef></label>
- <def><p>An <xtermref href="WD-xml-lang.html#dt-element">element</xtermref> that asserts the existence and describes the characteristics of a <termref def="dt-link"> link</termref>.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-local-resource" term="Local Resource">local resource</termdef></label>
- <def><p>The content of an <termref def="dt-inline">inline</termref>linking element. Note that the content of the linking element could be explicitly pointed to by means of a regular <termref def="dt-locator">locator</termref> in the same linking element, in which case the resource is considered <termref def="dt-remote-resource"> remote</termref>, not local.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-locator" term="Locator">locator</termdef> </label>
- <def><p>Data, provided as part of a link, which identifies a
- <termref def="dt-resource">resource</termref>.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-multidir" term="Multi-Directional Link">multidirectional link</termdef></label>
- <def><p>A <termref def="dt-link">link</termref> whose <termref def="dt-traversal"> traversal</termref> can be initiated from more than one of its <termref def="dt-particip-resource"> participating resources</termref>. Note that being able to "go back" after following a one-directional link does not make the link multidirectional.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-outofline" term="Out-of-line Link">out-of-line link</termdef></label>
- <def><p>A <termref def="dt-link">link</termref> whose content does not serve as one of the link's <termref def="dt-particip-resource">participating resources </termref>. Such links presuppose a notion like <termref def="dt-xlg">extended link groups</termref>, which instruct application software where to look for links. Out-of-line links are generally required for supporting multidirectional <termref def="dt-traversal">traversal</termref> and for allowing read-only resources to have outgoing links.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-parsedq" term="Parsed">parsed</termdef></label> <def><p>In the context of link behavior, a parsed link is any link whose content is transcluded into the document where the link originated. The use of the term "parsed" directly refers to the concept in XML of a
- parsed entity.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-particip-resource" term="Participating Resource"> participating resource</termdef></label>
- <def><p>A <termref def="dt-resource">resource</termref> that belongs to a link. All resources are potential contributors to a link; participating resources are the actual contributors to a particular link.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-remote-resource" term="Remote Resource">remote resource</termdef></label>
- <def><p>Any participating resource of a link that is pointed to with a locator. </p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-resource" term="Resource">resource</termdef></label>
- <def><p>In the abstract sense, an addressable unit of information or service that is participating in a <termref def="dt-link">link</termref>. Examples include files, images, documents, programs, and query results. Concretely, anything reachable by the use of a <termref def="dt-locator">locator</termref> in some <termref def="dt-linkel">linking element</termref>. Note that this term and its definition are taken from the basic specifications governing the World Wide Web. <!--Joel notes: need link here. bent asks: A link?-->
- </p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-subresource" term="sub-Resource">sub-resource</termdef></label>
- <def><p>A portion of a resource, pointed to as the precise destination of a link. As one example, a link might specify that an entire document be retrieved and displayed, but that some specific part(s) of it is the specific linked data, to be treated in an application-appropriate manner such as indication by highlighting, scrolling, etc.</p></def>
- </gitem>
- <gitem>
- <label><termdef id="dt-traversal" term="Traversal">traversal</termdef></label>
- <def><p>The action of using a <termref def="dt-link">link</termref>; that is, of accessing a <termref def="dt-resource">resource</termref>. Traversal may be initiated by a user action (for example, clicking on the displayed content of a <termref def="dt-linkel">linking element</termref>) or occur under program control.</p></def>
- </gitem>
- </glist>
- </p>
-</div2>
-
-<div2>
- <head>Notation</head>
- <p>The formal grammar for <termref def="dt-locator">locators</termref> is given using a simple Extended Backus-Naur Form (EBNF) location, as described in <xspecref href="http://www.w3.org/TR/REC-xml#sec-notation">the XML specification</xspecref>.</p>
- <!-- fixed link to XML spec - bent -->
-</div2>
-</div1>
-
-<div1 id="addressing"><?Pub Dtl?>
- <head>Locator Syntax</head>
- <p>The locator for a <termref def="dt-resource">resource</termref> is typically provided by means of a Uniform Resource Identifier, or URI. XPointers can be used in conjunction with the URI structure, as fragment identifiers, to specify a more precise sub-resource. </p>
- <!-- Removed the discussion of queries from the previous paragraph, due to contention within the WG. bent -->
- <p>A locator generally contains a URI, as described in IETF RFCs <bibref ref="rfc1738"/> and <bibref ref="rfc1808"/>. As these RFCs state, the URI may include a trailing <emph>query</emph> (marked by a leading "<code>?</code>"), and be followed by a "<code>#</code>" and a <emph>fragment identifier</emph>, with the query interpreted by the host providing the indicated resource, and the interpretation of the fragment identifier dependent on the data type of the indicated resource.</p>
- <!--Is there some restriction on URNs having queries and/or fragment identifiers? Since these RFCs don't mention URIs explicitly, should the wording here lead from URLs to URIs more explicitly? -elm-->
- <p>In order to locate XML documents and portions of documents, a locator value may contain either a <xtermref href="http://www.w3.org/Addressing/rfc1738.txt"> URI</xtermref> or a fragment identifier, or both. Any fragment identifier for pointing into XML must be an <xtermref href="http://www.w3.org/TR/WD-xptr#dt-xpointer"> XPointer</xtermref>.</p>
- <p>Special syntax may be used to request the use of particular processing models in accessing the locator's resource. This is designed to reflect the realities of network operation, where it may or may not be desirable to exercise fine control over the distribution of work between local and remote processors.
- <scrap id="locator" lang="ebnf">
- <head>Locator</head>
- <prod id="nt-locator">
- <lhs>Locator</lhs>
- <rhs><nt def="nt-uri">URI</nt></rhs>
- <rhs>| <nt def="nt-connector">Connector</nt> (<xnt href="http://www.w3.org/TR/WD-xptr">XPointer</xnt> | <xnt href="WD-xml-lang.html#NT-Name">Name</xnt>)</rhs>
- <rhs>| <nt def="nt-uri">URI</nt> <nt def="nt-connector">Connector</nt> (<xnt href="http://www.w3.org/TR/WD-xptr">XPointer</xnt> | <xnt href="WD-xml-lang.html#NT-Name">Name</xnt>)</rhs>
- </prod>
- <prod id="nt-connector">
- <lhs>Connector</lhs><rhs>'#' | '|'</rhs>
- </prod>
- <prod id="nt-uri">
- <lhs>URI</lhs><rhs><xnt href="WD-xml-lang.html#NT-URLchar">URIchar*</xnt></rhs>
- </prod>
- </scrap>
- </p>
- <p><termdef id="dt-designated" term="Designated Resource">In this discussion, the term <term>designated resource</term> refers to the resource which an entire locator serves to locate.</termdef> The following rules apply:
- <ulist>
- <item>
- <p><termdef id="dt-containing-resource" term="Containing Resource"> The URI, if provided, locates a resource called the <term>containing resource</term>.</termdef></p>
- </item>
- <item>
- <p>If the URI is not provided, the containing resource is considered to be the document in which the linking element is contained.
- </p></item>
- <item>
- <p><termdef id="dt-sub-resource" term="Sub-Resource">If an XPointer is provided, the designated resource is a <term>sub-resource</term>
- of the containing resource; otherwise the designated resource is the
- containing resource.</termdef></p>
- </item>
- <!--Is this now incorrect, given the nature of the switch from here() to origin()? -elm
- Oy, yes, i think so. it will require some fun wording, though, so i haven't fixed it yet here -sjd-->
- <item>
- <p>If the <nt def="nt-connector">Connector</nt> is followed directly by a <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt>, the <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt> is shorthand for the XPointer"<code>id(Name)</code>"; that is, the sub-resource is the element in the containing resource that has an XML <xtermref href="http://www.w3.org/TR/REC-xml#sec-attrtypes">ID attribute</xtermref> whose value <xtermref href="http://www.w3.org/TR/REC-xml#dt-match">matches</xtermref> the <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt>. This shorthand is to encourage use of the robust <code>id</code> addressing mode.</p>
- </item>
- <!-- fixed links to the XML recommendation - bent -->
- <item>
- <p>If the connector is "<code>#</code>", this signals an intent that the containing resource is to be fetched as a whole from the host that provides it, and that the XPointer processing to extract the sub-resource
- is to be performed on the client, that is to say on the same system where the linking element is recognized and processed.</p>
- </item>
- <item>
- <p>If the connector is "<code>|</code>", no intent is signaled as to what processing model is to be used to go about accessing the designated resource.</p>
- </item>
- </ulist>
- </p>
- <p>Note that the definition of a URI includes an optional query component. </p>
- <p>In the case where the URI contains a query (to be interpreted by the server), information providers and authors of server software are urged to use queries as follows:
- <scrap id="querysyntax" lang="ebnf">
- <head>Query</head>
- <prod id="nt-query">
- <lhs>Query</lhs><rhs>'XML-XPTR=' (<xnt href="http://www.w3.org/TR/WD-xptr"> XPointer</xnt> | <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt>)</rhs>
- </prod>
- </scrap>
- </p>
- <!-- fixed link to XML recommendation - bent -->
-</div1>
-
-<div1><?Pub Dtl?>
- <head>Link Recognition</head>
- <p>The existence of a <termref def="dt-link">link</termref> is asserted by a <termref def="dt-linkel">linking element</termref>. Linking elements must be recognized reliably by application software in order to provide appropriate display and behavior. There are several ways link recognition could be accomplished: for example, reserving element type names, reserving attributes names, leaving the matter of recognition entirely up to stylesheets and application software, or using the XLink <xtermref href="http://www.w3.org/TR/REC-xml-names/">namespace</xtermref> to specify element names and attribute names that would be recognized by namespace and XLink-aware processors. Using element and attribute names within the XLink namespace provides a balance between giving users control of their own markup language design and keeping the identification of linking elements simple and unambiguous.</p>
- <p>The two approaches to identifying linking elements are relatively simple to implement. For example, here's how the HTML <code>A</code> element would be declared using attributes within the XLink namespace, and then how an element within the XLink namespace might do the same:
- <eg>&lt;A xlink:type="simple" xlink:href="http://www.w3.org/TR/wd-xlink/"
-xlink:title="The Xlink Working Draft"&gt;The XLink Working Draft.&lt;/A&gt;</eg>
- <eg>&lt;xlink:simple href="http://www.w3.org/TR/wd-xlink/"
-title="The XLink Working Draft"&gt;The XLink Working Draft&lt;/xlink:simple&gt;</eg>
- Any arbitrary element can be made into an XLink by using the <code>xlink:type</code> attribute. And, of course, the explicit XLink elements may be used, as well. This document will go on to describe the linking attributes that are associated with linking elements. It may be assumed by the reader that these attributes would require the <code>xlink</code> namespace prefix if they existed within an arbitrary element, or that they may be used directly if they exist within an explicit Xlink element.</p>
- <!-- heavily modified this section to accomodate namespace-aware link recognition - bent -->
-</div1>
-
-<!-- Rewrote this entire section. - bent -->
-<div1>
- <head>Linking Attributes</head>
- <p>XLink has several attributes associated with the variety of links it may represent. These attributes define four main concepts: locators, arcs, behaviors, and semantics. <emph>Locators</emph> define where the actual resource is located. <emph>Arcs</emph> define the traversal of links. Where does the link come from? Where does it go to? All this information can be stored in the arc attributes. <emph>Behaviors</emph> define how the link is activated, and what the application should do with the resource being linked to. <emph>Semantics</emph> define useful information that the application may use, and enables the link for such specalized targets as constricted devices and accessibility software.</p>
-
- <div2 id="link-locators">
- <head>Locator Attributes</head>
- <p>The only locator attribute at this time is <code>href</code>. This attribute must contain either a string in the form of a URI that defines the remote resource being linked to, a string containing a fragment identifier that links to a local resource, or a string containing a URI with a fragment identifier concacenated onto it.</p>
- </div2>
-
- <div2 id="link-arcs">
- <head>Arc Attributes</head>
- <p>Arcs contain two attributes, <code>from</code> and <code>to</code>. The <code>from</code> attribute may contain a string containing the content of a <code>role</code> attribute from the resource being linked from. The purpose of the <code>from</code> attribute is to define where this link is being actuated from.</p>
- <p>The <code>to</code> attribute may contain a string containing the content of a <code>role</code> attribute from the resource being linked to. The purpose of the <code>to</code> attribute is to define where this link traverses to.</p>
- <p>The application may use this information in a number of ways, especially in a complex hypertext system, but it is mainly useful in providing context for application behavior.</p>
- <!-- I'm at a loss as to how to describe arcs more clearly than this. I don't want to devolve into discussions of directed graphs and n-ary links. -bent -->
- </div2>
-
- <div2 id="link-behaviors">
- <head>Behavior Attributes</head>
- <p>There are two attributes associated with behavior: <code>show</code> and <code>actuate</code>. The <code>show</code> attribute defines how the remote resource is to be revealed to the user. It has three options: <code>new</code>, <code>parsed</code>, and <code>replace</code>. The <code>new</code> option indicates that the remote resource should be shown in a new window (or other device context) without replacing the previous content. The <code>parsed</code> option, relating directly to the XML concept of a parsed entity, indicates that the content should be integrated into the document from which the link was actuated. The <code>replace</code> option is the one most commonly seen on the World Wide Web, where the document being linked from is entirely replaced by the object being linked to.</p>
- <p>The <code>actuate</code> attribute defines how the link is initiated. It has two options: <code>user</code> and <code>auto</code>. The <code>user</code> option indicates that the link must be initiated by some sort of human-initiated selection, such as clicking on an HTML anchor. The <code>auto</code> option indicates that the link is automatically initiated when the application deems that the user has reached the link. It then follows the behavior set out in the <code>show</code> option.</p>
- <!-- Something should be put here in terms of an example. Idea: "A" link versus automatically updating encyclopedia. -bent -->
- </div2>
-
- <div2 id="link-semantics">
- <head>Semantic Attributes</head>
- <p>There are two attributes associated with semantics, <code>role</code> and <code>title</code>. The <code>role</code> attribute is a generic string used to describe the function of the link's content. For example, a poem might have a link with a <code>role="stanza"</code>. The <code>role</code> is also used as an identifier for the <code>from</code> and <code>to</code> attributes of arcs.</p>
- <p>The <code>title</code> attribute is designed to provide human-readable text describing the link. It is very useful for those who have text-based applications, whether that be due to a constricted device that cannot display the link's content, or if it's being read by an application to a visually-impaired user, or if it's being used to create a table of links. The <code>title</code> attribute contains a simple, descriptive string.</p>
- </div2>
-</div1>
-
-<div1 id="linking-elements">
- <head>Linking Elements</head>
- <p>There are several kinds of linking elements in XLink: <code>simple</code> links, <code>locators</code>, <code>arcs</code>, and <code>extended</code> links. These elements may be instantiated via element declarations from the XLink namespace, or they may be instantiated via attribute declarations from the XLink namespace. Both kinds of instantiation are described in the definition of each linking element.</p>
- <p>The <code>simple</code> link is used to declare a link that approximates the functionality of the HTML <code>A</code> element. It has, however, a few added features to increase its value, including the potential declaration of semantics and behavior. The <code>locator</code> elements are used to define the resource being linked to. Some links may contain multiple locators, representing a choice of potential links to be traversed. The <code>arcs</code> are used to define the traversal semantics of the link. Finally, an <code>extended</code> linking element differs from a simple link in that it can connect any number of resources, not just one local resource (optionally) and one remote resource, and in that extended links are more often out-of-line than simple links.</p>
-
-<div2 id="simple-links">
- <head>Simple Links</head>
- <p id="dt-simplelink"><termdef id="dt-simpleline" term="Simple Link"><term>Simple links</term> can be used for purposes that approximate the functionality of a basic HTML <code>A</code> link, but they can also support a limited amount of additional functionality. Simple links have only one locator and thus, for convenience, combine the functions of a linking element and a locator into a single element.</termdef> As a result of this combination, the simple linking element offers both a locator attribute and all the behavior and semantic attributes.</p>
- <p>The following are two examples of linking elements, each showing all the possible attributes that can be associated with a simple link. Here is the explicit XLink simple linking element.
- <eg>&lt;!ELEMENT xlink:simple ANY&gt;
-&lt;!ATTLIST xlink:slink
- href CDATA #REQUIRED
- role CDATA #IMPLIED
- title CDATA #IMPLIED
- show (new|parsed|replace) "replace"
- actuate (user|auto) "user"
-&gt;</eg>
- And here is how to make an arbitrary element into a simple link.
- <eg>&lt;!ELEMENT xlink:simple ANY&gt;
-&lt;!ATTLIST foo
- xlink:type (simple|extended|locator|arc) #FIXED "simple"
- xlink:href CDATA #REQUIRED
- xlink:role CDATA #IMPLIED
- xlink:title CDATA #IMPLIED
- xlink:show (new|parsed|replace) "replace"
- xlink:actuate (user|auto) "user"
-&gt;</eg>
- Here is how the first example might look in a document:
-<eg>&lt;xlink:simple href="http://www.w3.org/TR/wd-xlink" role="working draft"
- title="The XLink Working Draft" show="replace" actuate="user"&gt;
-The XLink Working Draft.&lt;/xlink:simple&gt;</eg>
-<eg>&lt;foo xlink:href="http://www.w3.org/TR/wd-xlink" xlink:role="working draft"
- xlink:title="The XLink Working Draft" xlink:show="new" xlink:actuate="user"&gt;
-The XLink Working Draft.&lt;/foo&gt;</eg>
- Alternately, a simple link could be as terse as this:
-<eg>&lt;foo xlink:href="#stanza1"&gt;The First Stanza.&lt;/foo&gt;</eg>
- </p>
- <p>
- There are no constraints on the contents of a simple linking element. In
- the sample declaration above, it is given a content model of <code>ANY</code>
- to illustrate that any content model or declared content is acceptable. In
- a valid document, every element that is significant to XLink must still conform
- to the constraints expressed in its governing DTD.</p>
- <p>Note that it is meaningful to have an out-of-line simple link, although
- such links are uncommon. They are called "one-ended" and are typically used
- to associate discrete semantic properties with locations. The properties might
- be expressed by attributes on the link, the link's element type name, or in
- some other way, and are not considered full-fledged resources of the link.
- Most out-of-line links are extended links, as these have a far wider range
- of uses.</p>
-</div2>
-
-<div2 id="extended-link">
-<head>Extended Links</head>
- <p><termdef id="dt-extendedlink" term="Extended Link">An <term>extended link</term> differs from a simple link in that it can connect any number of resources, not just one local resource (optionally) and one remote resource, and in that extended links are more often out-of-line than simple links.</termdef></p>
- <p>These additional capabilities of extended links are required for:
- <ulist>
- <item>
- <p>Enabling outgoing links in documents that cannot be modified to add an inline link</p>
- </item>
- <item>
- <p>Creating links to and from resources in formats with no native support for embedded links (such as most multimedia formats)</p>
- </item>
- <item>
- <p>Applying and filtering sets of relevant links on demand</p>
- </item>
- <item><p>Enabling other advanced hypermedia capabilities</p></item>
- </ulist>
- </p>
- <p>Application software might be expected to provide traversal among all of a link's participating resources (subject to semantic constraints outside the scope of this specification) and to signal the fact that a given resource or sub-resource participates in one or more links when it is displayed (even though there is no markup at exactly that point to signal it).</p>
- <p>A linking element for an extended link contains a series of <xtermref href="http://www.w3.org/TR/REC-xml/#dt-parentchild">child elements</xtermref> that serve as locators and arcs. Because an extended link can have more than one remote resource, it separates out linking itself from the mechanisms used to locate each resource (whereas a simple link combines the two).</p>
- <p>The <code>xlink:type</code> attribute value for an extended link must be <code> extended</code>, if the link is being instantiated on an arbitrary element. Note that extended links introduce variants of the <code>show</code> and <code>actuate</code> behavior attributes. These attributes, the <code>showdefault</code> and <code>actuatedefault</code> define the same behavior as their counterparts. However, in this case, they are considered to define the default behavior for all the linking elements that they contain.</p>
- <p>However, when a linking element within an extended link has a <code>show</code> or <code>actuate</code> attribute of its own, that attribute overrides the defaults set on the extended linking element.</p>
- <p>The extended linking element itself retains those attributes relevant to the link as a whole, and to its local resource if any. Following are two sample declaration for an extended link. The first is an example of the explicit XLink extended link:
-
-<eg>&lt;!ELEMENT xlink:extended ((xlink:arc | xlink:locator)*)>
-&lt;!ATTLIST xlink:extended
- role CDATA #IMPLIED
- title CDATA #IMPLIED
- showdefault (new|parsed|replace) #IMPLIED
- actuatedefault (user|auto) #IMPLIED &gt;</eg>
-
- The second is an example of an arbitrary element being used an extended link:
-
-<eg>&lt;!ELEMENT foo ((xlink:arc | xlink:locator)*)>
-&lt;!ATTLIST foo
- xlink:type (simple|extended|locator|arc) #FIXED "extended"
- xlink:role CDATA #IMPLIED
- xlink:title CDATA #IMPLIED
- xlink:showdefault (new|parsed|replace) #IMPLIED
- xlink:actuatedefault (user|auto) #IMPLIED &gt;</eg>
-
- The following two examples demonstrate how each of the above might appear within a document instance. Note that the content of these examples would be other elements. For brevity's sake, they've been left blank. The first example shows how the link might appear, using an explicit XLink extended link:
-
-<eg>&lt;xlink:extended role="address book" title="Ben's Address Book" showdefault="replace" actuatedefault="user"&gt; ... &lt;/xlink:extended&gt;</eg>
-
- And the second shows how the link might appear, using an arbitrary element:
-
-<eg>&lt;foo xlink:type="extended" xlink:role="address book" xlink:title="Ben's Address Book" xlink:showdefault="replace" xlink:actuatedefault="user"&gt; ... &lt;/foo&gt;</eg>
- </p>
-
-</div2>
-
-<div2 id="xlink-arcs">
- <head>Arc Elements</head>
- <p><termdef id="dt-arc" term="Arc">An <term>arc</term> is contained within an extended link for the purpose of defining traversal behavior.</termdef> More than one arc may be associated with a link. Otherwise, arc elements function exactly as the arc attributes might lead on to expect.</p>
- <!-- More here? -bent -->
-</div2>
-
-</div1>
-<div1>
-<head>Conformance</head>
-<p>An element conforms to XLink if: <olist>
-<item><p>The element has an <code>xml:link</code> attribute whose value is
-one of the attribute values prescribed by this specification, and</p></item>
-<item><p>the element and all of its attributes and content adhere to the
-syntactic
-requirements imposed by the chosen <code>xml:link</code> attribute value,
-as prescribed in this specification.</p></item>
-</olist></p>
-<p>Note that conformance is assessed at the level of individual elements,
-rather than whole XML documents, because XLink and non-XLink linking mechanisms
-may be used side by side in any one document.</p>
-<p>An application conforms to XLink if it interprets XLink-conforming elements
-according to all required semantics prescribed by this specification and,
-for any optional semantics it chooses to support, supports them in the way
-prescribed. <!--If/when we split out the XLinkfunctionality
-(e.g. inline links and out-of-line links), the
-conformance language will have to address the different
-levels of support. -elm--> </p>
-</div1>
-</body><back>
-<div1 id="unfinished">
-<head>Unfinished Work</head>
-<div2>
-<head>Structured Titles</head>
-<p>The simple title mechanism described in this draft is insufficient to cope
-with internationalization or the use of multimedia in link titles. A future
-version will provide a mechanism for the use of structured link titles.</p>
-</div2>
-</div1>
-<div1>
-<head>References</head>
-<blist>
-<bibl id="xptr" key="XPTR">Eve Maler and Steve DeRose, editors. <titleref>
-XML Pointer Language (XPointer) V1.0</titleref>. ArborText, Inso, and Brown
-University. Burlington, Seekonk, et al.: World Wide Web Consortium, 1998.
-(See <loc href="http://www.w3.org/TR/WD-xptr">http://www.w3.org/TR/WD-xptr
- </loc>.)</bibl>
-<bibl id="iso10744" key="ISO/IEC 10744">ISO (International Organization for
-Standardization). <titleref>ISO/IEC 10744-1992 (E). Information technology
-- Hypermedia/Time-based Structuring Language (HyTime).</titleref> [Geneva]:
-International Organization for Standardization, 1992. <titleref>Extended
-Facilities
-Annex.</titleref> [Geneva]: International Organization for Standardization,
-1996. (See <loc
-href="http://www.ornl.gov/sgml/wg8/hytime/html/is10744r.html">http://www.ornl.go
-v/sgml/wg8/hytime/html/is10744r.html </loc> <!--p m-r says this link is
-broken. elm --> ).</bibl>
-<bibl id="rfc1738" key="IETF RFC 1738">IETF (Internet Engineering Task
-Force). <titleref>
-RFC 1738: Uniform Resource Locators</titleref>. 1991. (See <loc
-href="http://www.w3.org/Addressing/rfc1738.txt">
-http://www.w3.org/Addressing/rfc1738.txt</loc>).</bibl>
-<bibl id="rfc1808" key="IETF RFC 1808">IETF (Internet Engineering Task
-Force). <titleref>
-RFC 1808: Relative Uniform Resource Locators</titleref>. 1995. (See <loc
-href="http://www.w3.org/Addressing/rfc1808.txt">http://www.w3.org/Addressing/rfc
-1808.txt </loc>).</bibl>
-<bibl id="tei" key="TEI">C. M. Sperberg-McQueen and Lou Burnard, editors.
-<titleref>
-Guidelines for Electronic Text Encoding and Interchange</titleref>. Association
-for Computers and the Humanities (ACH), Association for Computational
-Linguistics
-(ACL), and Association for Literary and Linguistic Computing (ALLC). Chicago,
-Oxford: Text Encoding Initiative, 1994. <!-- add cite to DOM work --> </bibl>
-<bibl id="chum" key="CHUM">]Steven J. DeRose and David G. Durand. 1995. "The
-TEI Hypertext Guidelines." In <titleref>Computing and the Humanities
-</titleref>29(3).
-Reprinted in <titleref>Text Encoding Initiative: Background and
-Context</titleref>,
-ed. Nancy Ide and Jean ronis <!-- fix this name -->, ISBN 0-7923-3704-2. </bibl>
-</blist></div1>
-</back></spec>
-<?Pub *0000052575?>
-~~~~~~~~~~
diff --git a/src/lint/linter/__tests__/xml/youtube.lint-test b/src/lint/linter/__tests__/xml/youtube.lint-test
deleted file mode 100644
--- a/src/lint/linter/__tests__/xml/youtube.lint-test
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<feed xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd='http://schemas.google.com/g/2005' xmlns:yt='http://gdata.youtube.com/schemas/2007'><id>http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads</id><updated>2013-12-20T05:53:11.183Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><title type='text'>Uploads by theofficialfacebook</title><logo>http://www.gstatic.com/youtube/img/logo.png</logo><link rel='related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook'/><link rel='alternate' type='text/html' href='http://www.youtube.com/channel/UCcr9tciZbuvJrEVAgIXCp8Q/videos'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads'/><link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/batch'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads?start-index=1&amp;max-results=25'/><link rel='next' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads?start-index=26&amp;max-results=25'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><generator version='2.1' uri='http://gdata.youtube.com'>YouTube data API</generator><openSearch:totalResults>69</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>http://gdata.youtube.com/feeds/api/videos/ssRxR4yFMCw</id><published>2013-12-19T17:25:25.000Z</published><updated>2013-12-20T05:52:04.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Home: First Look at the Latest Features</title><content type='text'>An overview of the latest Home features, giving you more control over seeing the content you care most about the moment you wake up your phone.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=ssRxR4yFMCw&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/ssRxR4yFMCw/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=ssRxR4yFMCw'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/ssRxR4yFMCw'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/ssRxR4yFMCw?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='75' yt:format='5'/><media:content url='rtsp://r2---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwksMIWMR3HEshMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='75' yt:format='1'/><media:content url='rtsp://r2---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwksMIWMR3HEshMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='75' yt:format='6'/><media:description type='plain'>An overview of the latest Home features, giving you more control over seeing the content you care most about the moment you wake up your phone.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=ssRxR4yFMCw&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/ssRxR4yFMCw/0.jpg' height='360' width='480' time='00:00:37.500'/><media:thumbnail url='http://i1.ytimg.com/vi/ssRxR4yFMCw/1.jpg' height='90' width='120' time='00:00:18.750'/><media:thumbnail url='http://i1.ytimg.com/vi/ssRxR4yFMCw/2.jpg' height='90' width='120' time='00:00:37.500'/><media:thumbnail url='http://i1.ytimg.com/vi/ssRxR4yFMCw/3.jpg' height='90' width='120' time='00:00:56.250'/><media:title type='plain'>Home: First Look at the Latest Features</media:title><yt:duration seconds='75'/></media:group><gd:rating average='3.7948718' max='5' min='1' numRaters='156' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='8711'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/qOfzWQ28A2E</id><published>2013-10-24T17:30:43.000Z</published><updated>2013-12-20T05:47:21.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Home: Connect to Flickr, Instagram, Pinterest, and Tumblr</title><content type='text'>Home product designer Francis Luu walks you through one of the latest features in Facebook Home, connecting apps to see posts from Flickr, Instagram, Pinterest, and Tumblr on your lock screen.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=qOfzWQ28A2E&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/qOfzWQ28A2E/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=qOfzWQ28A2E'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/qOfzWQ28A2E'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/qOfzWQ28A2E/comments' countHint='69'/></gd:comments><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/qOfzWQ28A2E?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='69' yt:format='5'/><media:content url='rtsp://r5---sn-a5m7zu7k.c.youtube.com/CigLENy73wIaHwlhA7wNWfPnqBMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='69' yt:format='1'/><media:content url='rtsp://r5---sn-a5m7zu7k.c.youtube.com/CigLENy73wIaHwlhA7wNWfPnqBMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='69' yt:format='6'/><media:description type='plain'>Home product designer Francis Luu walks you through one of the latest features in Facebook Home, connecting apps to see posts from Flickr, Instagram, Pinterest, and Tumblr on your lock screen.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=qOfzWQ28A2E&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/qOfzWQ28A2E/0.jpg' height='360' width='480' time='00:00:34.500'/><media:thumbnail url='http://i1.ytimg.com/vi/qOfzWQ28A2E/1.jpg' height='90' width='120' time='00:00:17.250'/><media:thumbnail url='http://i1.ytimg.com/vi/qOfzWQ28A2E/2.jpg' height='90' width='120' time='00:00:34.500'/><media:thumbnail url='http://i1.ytimg.com/vi/qOfzWQ28A2E/3.jpg' height='90' width='120' time='00:00:51.750'/><media:title type='plain'>Home: Connect to Flickr, Instagram, Pinterest, and Tumblr</media:title><yt:duration seconds='69'/></media:group><gd:rating average='4.2312703' max='5' min='1' numRaters='307' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='61247'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/RDHwTuR7020</id><published>2013-08-08T16:34:56.000Z</published><updated>2013-12-20T05:03:31.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>How to Send Group Messages</title><content type='text'>Want to keep in touch with a group of friends? Start a group message.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=RDHwTuR7020&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/RDHwTuR7020/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=RDHwTuR7020'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/RDHwTuR7020'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/RDHwTuR7020/comments' countHint='65'/></gd:comments><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/RDHwTuR7020?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='74' yt:format='5'/><media:content url='rtsp://r5---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwlt03vkTvAxRBMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='74' yt:format='1'/><media:content url='rtsp://r5---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwlt03vkTvAxRBMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='74' yt:format='6'/><media:description type='plain'>Want to keep in touch with a group of friends? Start a group message.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=RDHwTuR7020&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/RDHwTuR7020/0.jpg' height='360' width='480' time='00:00:37'/><media:thumbnail url='http://i1.ytimg.com/vi/RDHwTuR7020/1.jpg' height='90' width='120' time='00:00:18.500'/><media:thumbnail url='http://i1.ytimg.com/vi/RDHwTuR7020/2.jpg' height='90' width='120' time='00:00:37'/><media:thumbnail url='http://i1.ytimg.com/vi/RDHwTuR7020/3.jpg' height='90' width='120' time='00:00:55.500'/><media:title type='plain'>How to Send Group Messages</media:title><yt:duration seconds='74'/></media:group><gd:rating average='4.14' max='5' min='1' numRaters='200' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='42419'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/hB8J4zDF_xU</id><published>2013-07-30T15:24:19.000Z</published><updated>2013-12-18T09:01:57.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>How to Send Stickers and Photos in Messages</title><content type='text'>Have more fun with messages. Share photos and stickers.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=hB8J4zDF_xU&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/hB8J4zDF_xU/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=hB8J4zDF_xU'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/hB8J4zDF_xU'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/hB8J4zDF_xU?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='69' yt:format='5'/><media:content url='rtsp://r4---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwkV_8Uw4wkfhBMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='69' yt:format='1'/><media:content url='rtsp://r4---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwkV_8Uw4wkfhBMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='69' yt:format='6'/><media:description type='plain'>Have more fun with messages. Share photos and stickers.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=hB8J4zDF_xU&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/hB8J4zDF_xU/0.jpg' height='360' width='480' time='00:00:34.500'/><media:thumbnail url='http://i1.ytimg.com/vi/hB8J4zDF_xU/1.jpg' height='90' width='120' time='00:00:17.250'/><media:thumbnail url='http://i1.ytimg.com/vi/hB8J4zDF_xU/2.jpg' height='90' width='120' time='00:00:34.500'/><media:thumbnail url='http://i1.ytimg.com/vi/hB8J4zDF_xU/3.jpg' height='90' width='120' time='00:00:51.750'/><media:title type='plain'>How to Send Stickers and Photos in Messages</media:title><yt:duration seconds='69'/></media:group><yt:statistics favoriteCount='0' viewCount='29576'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/v_5fQvqtRec</id><published>2013-07-26T04:32:28.000Z</published><updated>2013-12-08T17:38:53.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>How to Use Chat Heads</title><content type='text'>Keep chatting with friends while checking out other stuff. Get started with chat heads.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=v_5fQvqtRec&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/v_5fQvqtRec/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=v_5fQvqtRec'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/v_5fQvqtRec'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/v_5fQvqtRec?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='52' yt:format='5'/><media:content url='rtsp://r4---sn-a5m7zu7r.c.youtube.com/CigLENy73wIaHwnnRa36Ql_-vxMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='52' yt:format='1'/><media:content url='rtsp://r4---sn-a5m7zu7r.c.youtube.com/CigLENy73wIaHwnnRa36Ql_-vxMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='52' yt:format='6'/><media:description type='plain'>Keep chatting with friends while checking out other stuff. Get started with chat heads.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=v_5fQvqtRec&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/v_5fQvqtRec/0.jpg' height='360' width='480' time='00:00:26'/><media:thumbnail url='http://i1.ytimg.com/vi/v_5fQvqtRec/1.jpg' height='90' width='120' time='00:00:13'/><media:thumbnail url='http://i1.ytimg.com/vi/v_5fQvqtRec/2.jpg' height='90' width='120' time='00:00:26'/><media:thumbnail url='http://i1.ytimg.com/vi/v_5fQvqtRec/3.jpg' height='90' width='120' time='00:00:39'/><media:title type='plain'>How to Use Chat Heads</media:title><yt:duration seconds='52'/></media:group><yt:statistics favoriteCount='0' viewCount='23295'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/Omihm7Lc7Ao</id><published>2013-07-22T20:16:56.000Z</published><updated>2013-11-30T02:22:58.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook at San Francisco Pride 2013</title><content type='text'>More than 700 Facebook employees, including our CEO Mark Zuckerberg and former Super Bowl champion Brendon Ayanbadejo, marched in the San Francisco Pride Parade to show their support for the LGBTQ community. Celebrating Pride Week has been one of Facebook's favorite traditions for the past three years, and in the wake of the Supreme Court decisions we were even more thrilled to participate.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=Omihm7Lc7Ao&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/Omihm7Lc7Ao/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=Omihm7Lc7Ao'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/Omihm7Lc7Ao'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/Omihm7Lc7Ao?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='110' yt:format='5'/><media:content url='rtsp://r7---sn-a5m7zu7e.c.youtube.com/CigLENy73wIaHwkK7Nyym6FoOhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='110' yt:format='1'/><media:content url='rtsp://r7---sn-a5m7zu7e.c.youtube.com/CigLENy73wIaHwkK7Nyym6FoOhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='110' yt:format='6'/><media:description type='plain'>More than 700 Facebook employees, including our CEO Mark Zuckerberg and former Super Bowl champion Brendon Ayanbadejo, marched in the San Francisco Pride Parade to show their support for the LGBTQ community. Celebrating Pride Week has been one of Facebook's favorite traditions for the past three years, and in the wake of the Supreme Court decisions we were even more thrilled to participate.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=Omihm7Lc7Ao&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/Omihm7Lc7Ao/0.jpg' height='360' width='480' time='00:00:55'/><media:thumbnail url='http://i1.ytimg.com/vi/Omihm7Lc7Ao/1.jpg' height='90' width='120' time='00:00:27.500'/><media:thumbnail url='http://i1.ytimg.com/vi/Omihm7Lc7Ao/2.jpg' height='90' width='120' time='00:00:55'/><media:thumbnail url='http://i1.ytimg.com/vi/Omihm7Lc7Ao/3.jpg' height='90' width='120' time='00:01:22.500'/><media:title type='plain'>Facebook at San Francisco Pride 2013</media:title><yt:duration seconds='110'/></media:group><yt:statistics favoriteCount='0' viewCount='21573'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/Ib3ySuSedjk</id><published>2013-07-19T03:34:38.000Z</published><updated>2013-11-25T20:47:31.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>How to Start Chatting</title><content type='text'>Chat with friends on the go. Watch and get started with Facebook messages.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=Ib3ySuSedjk&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/Ib3ySuSedjk/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=Ib3ySuSedjk'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/Ib3ySuSedjk'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/Ib3ySuSedjk?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='73' yt:format='5'/><media:content url='rtsp://r4---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwk5dp7kSvK9IRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='73' yt:format='1'/><media:content url='rtsp://r4---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwk5dp7kSvK9IRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='73' yt:format='6'/><media:description type='plain'>Chat with friends on the go. Watch and get started with Facebook messages.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=Ib3ySuSedjk&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/Ib3ySuSedjk/0.jpg' height='360' width='480' time='00:00:36.500'/><media:thumbnail url='http://i1.ytimg.com/vi/Ib3ySuSedjk/1.jpg' height='90' width='120' time='00:00:18.250'/><media:thumbnail url='http://i1.ytimg.com/vi/Ib3ySuSedjk/2.jpg' height='90' width='120' time='00:00:36.500'/><media:thumbnail url='http://i1.ytimg.com/vi/Ib3ySuSedjk/3.jpg' height='90' width='120' time='00:00:54.750'/><media:title type='plain'>How to Start Chatting</media:title><yt:duration seconds='73'/></media:group><yt:statistics favoriteCount='0' viewCount='18112'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/PjcXZeL_3IQ</id><published>2013-07-05T19:33:25.000Z</published><updated>2013-12-12T22:11:46.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>How Privacy Works with Graph Search</title><content type='text'>Learn about how privacy works with search and how to manage information you share on Facebook.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=PjcXZeL_3IQ&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/PjcXZeL_3IQ/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=PjcXZeL_3IQ'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/PjcXZeL_3IQ'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/PjcXZeL_3IQ?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='146' yt:format='5'/><media:content url='rtsp://r4---sn-a5m7zu7k.c.youtube.com/CigLENy73wIaHwmE3P_iZRc3PhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='146' yt:format='1'/><media:content url='rtsp://r4---sn-a5m7zu7k.c.youtube.com/CigLENy73wIaHwmE3P_iZRc3PhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='146' yt:format='6'/><media:description type='plain'>Learn about how privacy works with search and how to manage information you share on Facebook.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=PjcXZeL_3IQ&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/PjcXZeL_3IQ/0.jpg' height='360' width='480' time='00:01:13'/><media:thumbnail url='http://i1.ytimg.com/vi/PjcXZeL_3IQ/1.jpg' height='90' width='120' time='00:00:36.500'/><media:thumbnail url='http://i1.ytimg.com/vi/PjcXZeL_3IQ/2.jpg' height='90' width='120' time='00:01:13'/><media:thumbnail url='http://i1.ytimg.com/vi/PjcXZeL_3IQ/3.jpg' height='90' width='120' time='00:01:49.500'/><media:title type='plain'>How Privacy Works with Graph Search</media:title><yt:duration seconds='146'/></media:group><yt:statistics favoriteCount='0' viewCount='241686'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/uRDvW_65R8k</id><published>2013-04-30T01:01:37.000Z</published><updated>2013-12-02T04:10:21.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home Presents: How to Use Chat Heads</title><content type='text'>Chat heads on Facebook Home let you chat while using apps. Find out more at www.facebookhome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=uRDvW_65R8k&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/uRDvW_65R8k/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=uRDvW_65R8k'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/uRDvW_65R8k'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/uRDvW_65R8k?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='28' yt:format='5'/><media:content url='rtsp://r5---sn-a5m7zu7r.c.youtube.com/CigLENy73wIaHwnJR7n-W-8QuRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='28' yt:format='1'/><media:content url='rtsp://r5---sn-a5m7zu7r.c.youtube.com/CigLENy73wIaHwnJR7n-W-8QuRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='28' yt:format='6'/><media:description type='plain'>Chat heads on Facebook Home let you chat while using apps. Find out more at www.facebookhome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=uRDvW_65R8k&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/uRDvW_65R8k/0.jpg' height='360' width='480' time='00:00:14'/><media:thumbnail url='http://i1.ytimg.com/vi/uRDvW_65R8k/1.jpg' height='90' width='120' time='00:00:07'/><media:thumbnail url='http://i1.ytimg.com/vi/uRDvW_65R8k/2.jpg' height='90' width='120' time='00:00:14'/><media:thumbnail url='http://i1.ytimg.com/vi/uRDvW_65R8k/3.jpg' height='90' width='120' time='00:00:21'/><media:title type='plain'>Facebook Home Presents: How to Use Chat Heads</media:title><yt:duration seconds='28'/></media:group><yt:statistics favoriteCount='0' viewCount='36325'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/ioYz5UZ9dc8</id><published>2013-04-30T01:01:04.000Z</published><updated>2013-11-10T07:38:04.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home Presents: How to Launch Apps</title><content type='text'>Use your profile picture to launch apps on Facebook Home. Find out more at www.facebookhome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=ioYz5UZ9dc8&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/ioYz5UZ9dc8/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=ioYz5UZ9dc8'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/ioYz5UZ9dc8'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/ioYz5UZ9dc8?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='25' yt:format='5'/><media:content url='rtsp://r6---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwnPdX1G5TOGihMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='25' yt:format='1'/><media:content url='rtsp://r6---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwnPdX1G5TOGihMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='25' yt:format='6'/><media:description type='plain'>Use your profile picture to launch apps on Facebook Home. Find out more at www.facebookhome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=ioYz5UZ9dc8&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/ioYz5UZ9dc8/0.jpg' height='360' width='480' time='00:00:12.500'/><media:thumbnail url='http://i1.ytimg.com/vi/ioYz5UZ9dc8/1.jpg' height='90' width='120' time='00:00:06.250'/><media:thumbnail url='http://i1.ytimg.com/vi/ioYz5UZ9dc8/2.jpg' height='90' width='120' time='00:00:12.500'/><media:thumbnail url='http://i1.ytimg.com/vi/ioYz5UZ9dc8/3.jpg' height='90' width='120' time='00:00:18.750'/><media:title type='plain'>Facebook Home Presents: How to Launch Apps</media:title><yt:duration seconds='25'/></media:group><yt:statistics favoriteCount='0' viewCount='15982'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/tlFiP6mLugg</id><published>2013-04-30T01:00:14.000Z</published><updated>2013-04-30T01:00:14.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home Presents: How to Use Cover Feed</title><content type='text'>Switch on and see friends, with cover feed on Facebook Home. Find out more at www.facebookhome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=tlFiP6mLugg&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/tlFiP6mLugg/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=tlFiP6mLugg'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/tlFiP6mLugg'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/tlFiP6mLugg?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='28' yt:format='5'/><media:content url='rtsp://r3---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwkIuoupP2JRthMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='28' yt:format='1'/><media:content url='rtsp://r3---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwkIuoupP2JRthMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='28' yt:format='6'/><media:description type='plain'>Switch on and see friends, with cover feed on Facebook Home. Find out more at www.facebookhome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=tlFiP6mLugg&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/tlFiP6mLugg/0.jpg' height='360' width='480' time='00:00:14'/><media:thumbnail url='http://i1.ytimg.com/vi/tlFiP6mLugg/1.jpg' height='90' width='120' time='00:00:07'/><media:thumbnail url='http://i1.ytimg.com/vi/tlFiP6mLugg/2.jpg' height='90' width='120' time='00:00:14'/><media:thumbnail url='http://i1.ytimg.com/vi/tlFiP6mLugg/3.jpg' height='90' width='120' time='00:00:21'/><media:title type='plain'>Facebook Home Presents: How to Use Cover Feed</media:title><yt:duration seconds='28'/></media:group><yt:statistics favoriteCount='0' viewCount='24106'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/UuQpaoE20HE</id><published>2013-04-30T00:59:31.000Z</published><updated>2013-04-30T00:59:31.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home Presents: How to Use Notifications</title><content type='text'>Notifications on Facebook Home make knowing what's up easier. Find out more at www.facebookhome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=UuQpaoE20HE&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/UuQpaoE20HE/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=UuQpaoE20HE'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/UuQpaoE20HE'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/UuQpaoE20HE?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='24' yt:format='5'/><media:content url='rtsp://r4---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwlx0DaBainkUhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='24' yt:format='1'/><media:content url='rtsp://r4---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwlx0DaBainkUhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='24' yt:format='6'/><media:description type='plain'>Notifications on Facebook Home make knowing what's up easier. Find out more at www.facebookhome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=UuQpaoE20HE&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/UuQpaoE20HE/0.jpg' height='360' width='480' time='00:00:12'/><media:thumbnail url='http://i1.ytimg.com/vi/UuQpaoE20HE/1.jpg' height='90' width='120' time='00:00:06'/><media:thumbnail url='http://i1.ytimg.com/vi/UuQpaoE20HE/2.jpg' height='90' width='120' time='00:00:12'/><media:thumbnail url='http://i1.ytimg.com/vi/UuQpaoE20HE/3.jpg' height='90' width='120' time='00:00:18'/><media:title type='plain'>Facebook Home Presents: How to Use Notifications</media:title><yt:duration seconds='24'/></media:group><yt:statistics favoriteCount='0' viewCount='15629'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/voWvqBsyYbE</id><published>2013-04-13T23:09:42.000Z</published><updated>2013-11-19T11:25:40.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home "Dinner"</title><content type='text'>A dull situation takes a turn for the interesting when a young woman steals a few glances at Facebook Home. www.FacebookHome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=voWvqBsyYbE&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/voWvqBsyYbE/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=voWvqBsyYbE'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/voWvqBsyYbE'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/voWvqBsyYbE?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='63' yt:format='5'/><media:content url='rtsp://r6---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwmxYTIbqK-FvhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='63' yt:format='1'/><media:content url='rtsp://r6---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwmxYTIbqK-FvhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='63' yt:format='6'/><media:description type='plain'>A dull situation takes a turn for the interesting when a young woman steals a few glances at Facebook Home. www.FacebookHome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=voWvqBsyYbE&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/voWvqBsyYbE/0.jpg' height='360' width='480' time='00:00:31.500'/><media:thumbnail url='http://i1.ytimg.com/vi/voWvqBsyYbE/1.jpg' height='90' width='120' time='00:00:15.750'/><media:thumbnail url='http://i1.ytimg.com/vi/voWvqBsyYbE/2.jpg' height='90' width='120' time='00:00:31.500'/><media:thumbnail url='http://i1.ytimg.com/vi/voWvqBsyYbE/3.jpg' height='90' width='120' time='00:00:47.250'/><media:title type='plain'>Facebook Home "Dinner"</media:title><yt:duration seconds='63'/></media:group><yt:statistics favoriteCount='0' viewCount='209851'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/ArFy91n1FR0</id><published>2013-04-13T03:06:50.000Z</published><updated>2013-11-20T12:07:36.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home "Launch Day"</title><content type='text'>Facebook HQ. Launch day. The team of engineers who built Facebook Home gathers as it finally ships. One guy appears to enjoy using Home already. Shot on location at Facebook, and featuring the actual product team, the film gives people a fun peek behind the Menlo Park curtain. www.FacebookHome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=ArFy91n1FR0&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/ArFy91n1FR0/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=ArFy91n1FR0'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/ArFy91n1FR0'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/ArFy91n1FR0?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='67' yt:format='5'/><media:content url='rtsp://r7---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwkdFfVZ93KxAhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='67' yt:format='1'/><media:content url='rtsp://r7---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwkdFfVZ93KxAhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='67' yt:format='6'/><media:description type='plain'>Facebook HQ. Launch day. The team of engineers who built Facebook Home gathers as it finally ships. One guy appears to enjoy using Home already. Shot on location at Facebook, and featuring the actual product team, the film gives people a fun peek behind the Menlo Park curtain. www.FacebookHome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=ArFy91n1FR0&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/ArFy91n1FR0/0.jpg' height='360' width='480' time='00:00:33.500'/><media:thumbnail url='http://i1.ytimg.com/vi/ArFy91n1FR0/1.jpg' height='90' width='120' time='00:00:16.750'/><media:thumbnail url='http://i1.ytimg.com/vi/ArFy91n1FR0/2.jpg' height='90' width='120' time='00:00:33.500'/><media:thumbnail url='http://i1.ytimg.com/vi/ArFy91n1FR0/3.jpg' height='90' width='120' time='00:00:50.250'/><media:title type='plain'>Facebook Home "Launch Day"</media:title><yt:duration seconds='67'/></media:group><yt:statistics favoriteCount='0' viewCount='913115'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/HiqbNxRurFA</id><published>2013-04-12T16:42:02.000Z</published><updated>2013-11-20T22:25:34.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home: First Look</title><content type='text'>Adam walks you through Cover Feed and Chat Heads, just two of the new features in Facebook Home.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=HiqbNxRurFA&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/HiqbNxRurFA/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=HiqbNxRurFA'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/HiqbNxRurFA'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/HiqbNxRurFA?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='110' yt:format='5'/><media:content url='rtsp://r6---sn-a5m7zu7l.c.youtube.com/CigLENy73wIaHwlQrG4UN5sqHhMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='110' yt:format='1'/><media:content url='rtsp://r6---sn-a5m7zu7l.c.youtube.com/CigLENy73wIaHwlQrG4UN5sqHhMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='110' yt:format='6'/><media:description type='plain'>Adam walks you through Cover Feed and Chat Heads, just two of the new features in Facebook Home.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=HiqbNxRurFA&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/HiqbNxRurFA/0.jpg' height='360' width='480' time='00:00:55'/><media:thumbnail url='http://i1.ytimg.com/vi/HiqbNxRurFA/1.jpg' height='90' width='120' time='00:00:27.500'/><media:thumbnail url='http://i1.ytimg.com/vi/HiqbNxRurFA/2.jpg' height='90' width='120' time='00:00:55'/><media:thumbnail url='http://i1.ytimg.com/vi/HiqbNxRurFA/3.jpg' height='90' width='120' time='00:01:22.500'/><media:title type='plain'>Facebook Home: First Look</media:title><yt:duration seconds='110'/></media:group><yt:statistics favoriteCount='0' viewCount='961566'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/mx_GzNlQOxI</id><published>2013-04-06T23:10:35.000Z</published><updated>2013-12-20T04:18:09.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home "Airplane"</title><content type='text'>A boring business trip gets a lot less boring, when Facebook Home brings a guy's friends on the journey with him. And all it takes is a few glances to reveal that his life isn't as conservative as his khakis.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=mx_GzNlQOxI&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/mx_GzNlQOxI/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=mx_GzNlQOxI'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/mx_GzNlQOxI'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/mx_GzNlQOxI?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='63' yt:format='5'/><media:content url='rtsp://r7---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwkSO1DZzMYfmxMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='63' yt:format='1'/><media:content url='rtsp://r7---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwkSO1DZzMYfmxMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='63' yt:format='6'/><media:description type='plain'>A boring business trip gets a lot less boring, when Facebook Home brings a guy's friends on the journey with him. And all it takes is a few glances to reveal that his life isn't as conservative as his khakis.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=mx_GzNlQOxI&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/mx_GzNlQOxI/0.jpg' height='360' width='480' time='00:00:31.500'/><media:thumbnail url='http://i1.ytimg.com/vi/mx_GzNlQOxI/1.jpg' height='90' width='120' time='00:00:15.750'/><media:thumbnail url='http://i1.ytimg.com/vi/mx_GzNlQOxI/2.jpg' height='90' width='120' time='00:00:31.500'/><media:thumbnail url='http://i1.ytimg.com/vi/mx_GzNlQOxI/3.jpg' height='90' width='120' time='00:00:47.250'/><media:title type='plain'>Facebook Home "Airplane"</media:title><yt:duration seconds='63'/></media:group><yt:statistics favoriteCount='0' viewCount='533037'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/Lep_DSmSRwE</id><published>2013-04-04T17:44:54.000Z</published><updated>2013-12-19T22:23:43.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Home</title><content type='text'>See how Facebook Home puts your friends at the heart of your phone. www.facebookhome.com</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=Lep_DSmSRwE&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/Lep_DSmSRwE/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=Lep_DSmSRwE'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/Lep_DSmSRwE'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/Lep_DSmSRwE?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='61' yt:format='5'/><media:content url='rtsp://r1---sn-a5m7zu7e.c.youtube.com/CigLENy73wIaHwkBR5IpDX_qLRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='61' yt:format='1'/><media:content url='rtsp://r1---sn-a5m7zu7e.c.youtube.com/CigLENy73wIaHwkBR5IpDX_qLRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='61' yt:format='6'/><media:description type='plain'>See how Facebook Home puts your friends at the heart of your phone. www.facebookhome.com</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=Lep_DSmSRwE&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/Lep_DSmSRwE/0.jpg' height='360' width='480' time='00:00:30.500'/><media:thumbnail url='http://i1.ytimg.com/vi/Lep_DSmSRwE/1.jpg' height='90' width='120' time='00:00:15.250'/><media:thumbnail url='http://i1.ytimg.com/vi/Lep_DSmSRwE/2.jpg' height='90' width='120' time='00:00:30.500'/><media:thumbnail url='http://i1.ytimg.com/vi/Lep_DSmSRwE/3.jpg' height='90' width='120' time='00:00:45.750'/><media:title type='plain'>Facebook Home</media:title><yt:duration seconds='61'/></media:group><yt:statistics favoriteCount='0' viewCount='3325398'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/_PW54Sm99ck</id><published>2013-03-07T18:37:20.000Z</published><updated>2013-12-08T05:07:51.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>What's New About Your Facebook Homepage</title><content type='text'>Learn more about some of the updates to your News Feed.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=_PW54Sm99ck&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/_PW54Sm99ck/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=_PW54Sm99ck'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/_PW54Sm99ck'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/_PW54Sm99ck?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='69' yt:format='5'/><media:content url='rtsp://r8---sn-a5m7zu7l.c.youtube.com/CigLENy73wIaHwnJ9b0p4bn1_BMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='69' yt:format='1'/><media:content url='rtsp://r8---sn-a5m7zu7l.c.youtube.com/CigLENy73wIaHwnJ9b0p4bn1_BMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='69' yt:format='6'/><media:description type='plain'>Learn more about some of the updates to your News Feed.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=_PW54Sm99ck&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/_PW54Sm99ck/0.jpg' height='360' width='480' time='00:00:34.500'/><media:thumbnail url='http://i1.ytimg.com/vi/_PW54Sm99ck/1.jpg' height='90' width='120' time='00:00:17.250'/><media:thumbnail url='http://i1.ytimg.com/vi/_PW54Sm99ck/2.jpg' height='90' width='120' time='00:00:34.500'/><media:thumbnail url='http://i1.ytimg.com/vi/_PW54Sm99ck/3.jpg' height='90' width='120' time='00:00:51.750'/><media:title type='plain'>What's New About Your Facebook Homepage</media:title><yt:duration seconds='69'/></media:group><yt:statistics favoriteCount='0' viewCount='560904'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/YaQQHYQHnMk</id><published>2013-03-07T18:36:53.000Z</published><updated>2013-12-18T20:22:02.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Behind the News Feed Redesign</title><content type='text'>Learn more about the thinking behind the new look on Facebook.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=YaQQHYQHnMk&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/YaQQHYQHnMk/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=YaQQHYQHnMk'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/YaQQHYQHnMk'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/YaQQHYQHnMk?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='144' yt:format='5'/><media:content url='rtsp://r7---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwnJnAeEHRCkYRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='144' yt:format='1'/><media:content url='rtsp://r7---sn-a5m7zu76.c.youtube.com/CigLENy73wIaHwnJnAeEHRCkYRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='144' yt:format='6'/><media:description type='plain'>Learn more about the thinking behind the new look on Facebook.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=YaQQHYQHnMk&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/YaQQHYQHnMk/0.jpg' height='360' width='480' time='00:01:12'/><media:thumbnail url='http://i1.ytimg.com/vi/YaQQHYQHnMk/1.jpg' height='90' width='120' time='00:00:36'/><media:thumbnail url='http://i1.ytimg.com/vi/YaQQHYQHnMk/2.jpg' height='90' width='120' time='00:01:12'/><media:thumbnail url='http://i1.ytimg.com/vi/YaQQHYQHnMk/3.jpg' height='90' width='120' time='00:01:48'/><media:title type='plain'>Behind the News Feed Redesign</media:title><yt:duration seconds='144'/></media:group><yt:statistics favoriteCount='0' viewCount='964478'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/W3k1USQbq80</id><published>2013-02-06T19:13:11.000Z</published><updated>2013-10-11T11:09:00.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Introducing Facebook Graph Search</title><content type='text'>Graph Search is a new way for you to find people, photos, places and interests that are most relevant to you on Facebook.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=W3k1USQbq80&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/W3k1USQbq80/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=W3k1USQbq80'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/W3k1USQbq80'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/W3k1USQbq80?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='93' yt:format='5'/><media:content url='rtsp://r2---sn-a5m7zu7s.c.youtube.com/CigLENy73wIaHwnNqxskUTV5WxMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='93' yt:format='1'/><media:content url='rtsp://r2---sn-a5m7zu7s.c.youtube.com/CigLENy73wIaHwnNqxskUTV5WxMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='93' yt:format='6'/><media:description type='plain'>Graph Search is a new way for you to find people, photos, places and interests that are most relevant to you on Facebook.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=W3k1USQbq80&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/W3k1USQbq80/0.jpg' height='360' width='480' time='00:00:46.500'/><media:thumbnail url='http://i1.ytimg.com/vi/W3k1USQbq80/1.jpg' height='90' width='120' time='00:00:23.250'/><media:thumbnail url='http://i1.ytimg.com/vi/W3k1USQbq80/2.jpg' height='90' width='120' time='00:00:46.500'/><media:thumbnail url='http://i1.ytimg.com/vi/W3k1USQbq80/3.jpg' height='90' width='120' time='00:01:09.750'/><media:title type='plain'>Introducing Facebook Graph Search</media:title><yt:duration seconds='93'/></media:group><yt:statistics favoriteCount='0' viewCount='31478'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/fY1ziax3XDY</id><published>2013-02-06T19:12:38.000Z</published><updated>2013-02-17T20:23:41.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Facebook Graph Search: Behind the Scenes</title><content type='text'>Graph Search is a new way for you to find people, photos, places and interests that are most relevant to you on Facebook.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=fY1ziax3XDY&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/fY1ziax3XDY/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=fY1ziax3XDY'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/fY1ziax3XDY'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/fY1ziax3XDY?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='199' yt:format='5'/><media:content url='rtsp://r1---sn-a5m7zu7r.c.youtube.com/CigLENy73wIaHwk2XHesiXONfRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='199' yt:format='1'/><media:content url='rtsp://r1---sn-a5m7zu7r.c.youtube.com/CigLENy73wIaHwk2XHesiXONfRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='199' yt:format='6'/><media:description type='plain'>Graph Search is a new way for you to find people, photos, places and interests that are most relevant to you on Facebook.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=fY1ziax3XDY&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/fY1ziax3XDY/0.jpg' height='360' width='480' time='00:01:39.500'/><media:thumbnail url='http://i1.ytimg.com/vi/fY1ziax3XDY/1.jpg' height='90' width='120' time='00:00:49.750'/><media:thumbnail url='http://i1.ytimg.com/vi/fY1ziax3XDY/2.jpg' height='90' width='120' time='00:01:39.500'/><media:thumbnail url='http://i1.ytimg.com/vi/fY1ziax3XDY/3.jpg' height='90' width='120' time='00:02:29.250'/><media:title type='plain'>Facebook Graph Search: Behind the Scenes</media:title><yt:duration seconds='199'/></media:group><yt:statistics favoriteCount='0' viewCount='15145'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/SAMMPqq31Vg</id><published>2013-01-23T14:12:49.000Z</published><updated>2013-12-19T21:17:36.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='News' label='News &amp; Politics'/><title type='text'>Facebook Stories: The Dawn Wall</title><content type='text'>Tommy Caldwell's dad introduced him to rock climbing at the age of three and by 16, Tommy was a world champion. For the last five years, Tommy has been attempting to climb a shear 3000-foot rock face that many consider the most difficult free climb ever attempted. How do you stay motivated on such a climb? See how Tommy was able to bring the encouragement of his friends, family and fans along for the ride.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=SAMMPqq31Vg&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/SAMMPqq31Vg/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=SAMMPqq31Vg'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/SAMMPqq31Vg'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/SAMMPqq31Vg/comments' countHint='113'/></gd:comments><yt:hd/><media:group><media:category label='News &amp; Politics' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>News</media:category><media:content url='http://www.youtube.com/v/SAMMPqq31Vg?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='303' yt:format='5'/><media:content url='rtsp://r5---sn-a5m7zu7s.c.youtube.com/CigLENy73wIaHwlY1beqPgwDSBMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='303' yt:format='1'/><media:content url='rtsp://r5---sn-a5m7zu7s.c.youtube.com/CigLENy73wIaHwlY1beqPgwDSBMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='303' yt:format='6'/><media:description type='plain'>Tommy Caldwell's dad introduced him to rock climbing at the age of three and by 16, Tommy was a world champion. For the last five years, Tommy has been attempting to climb a shear 3000-foot rock face that many consider the most difficult free climb ever attempted. How do you stay motivated on such a climb? See how Tommy was able to bring the encouragement of his friends, family and fans along for the ride.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=SAMMPqq31Vg&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/SAMMPqq31Vg/0.jpg' height='360' width='480' time='00:02:31.500'/><media:thumbnail url='http://i1.ytimg.com/vi/SAMMPqq31Vg/1.jpg' height='90' width='120' time='00:01:15.750'/><media:thumbnail url='http://i1.ytimg.com/vi/SAMMPqq31Vg/2.jpg' height='90' width='120' time='00:02:31.500'/><media:thumbnail url='http://i1.ytimg.com/vi/SAMMPqq31Vg/3.jpg' height='90' width='120' time='00:03:47.250'/><media:title type='plain'>Facebook Stories: The Dawn Wall</media:title><yt:duration seconds='303'/></media:group><gd:rating average='4.767484' max='5' min='1' numRaters='1101' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='164073'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/CaJYQXiu3PY</id><published>2012-12-12T16:43:03.000Z</published><updated>2013-12-17T19:25:38.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>How to Report or Remove a Tag on Facebook</title><content type='text'>Learn how to manage photo tags on Facebook. You can review the audience that the photo is shared with, report a photo that you would like taken down, or remove the tag.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=CaJYQXiu3PY&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/CaJYQXiu3PY/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=CaJYQXiu3PY'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/CaJYQXiu3PY'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/CaJYQXiu3PY/comments' countHint='117'/></gd:comments><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/CaJYQXiu3PY?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='107' yt:format='5'/><media:content url='rtsp://r4---sn-a5m7zu7s.c.youtube.com/CigLENy73wIaHwn23K54QViiCRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='107' yt:format='1'/><media:content url='rtsp://r4---sn-a5m7zu7s.c.youtube.com/CigLENy73wIaHwn23K54QViiCRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='107' yt:format='6'/><media:description type='plain'>Learn how to manage photo tags on Facebook. You can review the audience that the photo is shared with, report a photo that you would like taken down, or remove the tag.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=CaJYQXiu3PY&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/CaJYQXiu3PY/0.jpg' height='360' width='480' time='00:00:53.500'/><media:thumbnail url='http://i1.ytimg.com/vi/CaJYQXiu3PY/1.jpg' height='90' width='120' time='00:00:26.750'/><media:thumbnail url='http://i1.ytimg.com/vi/CaJYQXiu3PY/2.jpg' height='90' width='120' time='00:00:53.500'/><media:thumbnail url='http://i1.ytimg.com/vi/CaJYQXiu3PY/3.jpg' height='90' width='120' time='00:01:20.250'/><media:title type='plain'>How to Report or Remove a Tag on Facebook</media:title><yt:duration seconds='107'/></media:group><gd:rating average='4.4852943' max='5' min='1' numRaters='272' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='109202'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/vdLX29-ofoA</id><published>2012-12-06T20:44:06.000Z</published><updated>2013-12-14T02:17:33.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Nonprofit' label='Nonprofits &amp; Activism'/><title type='text'>Facebook Stories: Beyond the Yellow Boat</title><content type='text'>When Jay Jaboneta heard that a group of children in the Philippines have to swim to school, he started a fundraiser on Facebook to buy them a boat—only to realize that the solution required a more local perspective.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=vdLX29-ofoA&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/vdLX29-ofoA/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=vdLX29-ofoA'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/vdLX29-ofoA'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/vdLX29-ofoA/comments' countHint='69'/></gd:comments><yt:hd/><media:group><media:category label='Nonprofits &amp; Activism' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Nonprofit</media:category><media:content url='http://www.youtube.com/v/vdLX29-ofoA?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='169' yt:format='5'/><media:content url='rtsp://r1---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwmAfqjf29fSvRMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='169' yt:format='1'/><media:content url='rtsp://r1---sn-a5m7zu7z.c.youtube.com/CigLENy73wIaHwmAfqjf29fSvRMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='169' yt:format='6'/><media:description type='plain'>When Jay Jaboneta heard that a group of children in the Philippines have to swim to school, he started a fundraiser on Facebook to buy them a boat—only to realize that the solution required a more local perspective.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=vdLX29-ofoA&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/vdLX29-ofoA/0.jpg' height='360' width='480' time='00:01:24.500'/><media:thumbnail url='http://i1.ytimg.com/vi/vdLX29-ofoA/1.jpg' height='90' width='120' time='00:00:42.250'/><media:thumbnail url='http://i1.ytimg.com/vi/vdLX29-ofoA/2.jpg' height='90' width='120' time='00:01:24.500'/><media:thumbnail url='http://i1.ytimg.com/vi/vdLX29-ofoA/3.jpg' height='90' width='120' time='00:02:06.750'/><media:title type='plain'>Facebook Stories: Beyond the Yellow Boat</media:title><yt:duration seconds='169'/></media:group><gd:rating average='4.7796326' max='5' min='1' numRaters='599' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='62816'/></entry><entry><id>http://gdata.youtube.com/feeds/api/videos/jGE8FibCbWU</id><published>2012-10-31T18:56:26.000Z</published><updated>2012-12-14T01:25:58.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Tech' label='Science &amp; Technology'/><title type='text'>Social Resolution</title><content type='text'>If you see bullying on Facebook, report it.</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=jGE8FibCbWU&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/jGE8FibCbWU/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=jGE8FibCbWU'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/theofficialfacebook/uploads/jGE8FibCbWU'/><author><name>theofficialfacebook</name><uri>http://gdata.youtube.com/feeds/api/users/theofficialfacebook</uri></author><yt:hd/><media:group><media:category label='Science &amp; Technology' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Tech</media:category><media:content url='http://www.youtube.com/v/jGE8FibCbWU?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='162' yt:format='5'/><media:content url='rtsp://r1---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwllbcImFjxhjBMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='162' yt:format='1'/><media:content url='rtsp://r1---sn-a5m7zu7d.c.youtube.com/CigLENy73wIaHwllbcImFjxhjBMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='162' yt:format='6'/><media:description type='plain'>If you see bullying on Facebook, report it.</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=jGE8FibCbWU&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i1.ytimg.com/vi/jGE8FibCbWU/0.jpg' height='360' width='480' time='00:01:21'/><media:thumbnail url='http://i1.ytimg.com/vi/jGE8FibCbWU/1.jpg' height='90' width='120' time='00:00:40.500'/><media:thumbnail url='http://i1.ytimg.com/vi/jGE8FibCbWU/2.jpg' height='90' width='120' time='00:01:21'/><media:thumbnail url='http://i1.ytimg.com/vi/jGE8FibCbWU/3.jpg' height='90' width='120' time='00:02:01.500'/><media:title type='plain'>Social Resolution</media:title><yt:duration seconds='162'/></media:group><yt:statistics favoriteCount='0' viewCount='15894'/></entry></feed>
-~~~~~~~~~~
diff --git a/src/lint/linter/reporter.js b/src/lint/linter/reporter.js
deleted file mode 100644
--- a/src/lint/linter/reporter.js
+++ /dev/null
@@ -1,18 +0,0 @@
-module.exports = {
- reporter: function (results) {
- var report = [];
-
- results.forEach(function (result) {
- var error = result.error;
- report.push({
- 'file' : result.file,
- 'line' : error.line,
- 'col' : error.character,
- 'reason' : error.reason,
- 'code' : error.code,
- });
- });
-
- process.stdout.write(JSON.stringify(report));
- }
-};
diff --git a/src/lint/linter/ArcanistInlineHTMLXHPASTLinterRule.php b/src/lint/linter/xhpast/rules/ArcanistInlineHTMLXHPASTLinterRule.php
rename from src/lint/linter/ArcanistInlineHTMLXHPASTLinterRule.php
rename to src/lint/linter/xhpast/rules/ArcanistInlineHTMLXHPASTLinterRule.php

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 14, 11:17 AM (1 w, 1 d ago)
Storage Engine
amazon-s3
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
phabricator/secure/ja/x7/m2b5h4oyfdd6jn6a
Default Alt Text
D19717.diff (461 KB)

Event Timeline