From 3b581748f9f5187d6bf9d79153ea23313c3bb6f2 Mon Sep 17 00:00:00 2001 From: Dulma Churchill Date: Tue, 11 Oct 2016 03:00:49 -0700 Subject: [PATCH] [componentkit linters] Remove the links from the message Reviewed By: jvillard Differential Revision: D3967641 fbshipit-source-id: de70d82 --- infer/src/clang/ComponentKit.ml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/infer/src/clang/ComponentKit.ml b/infer/src/clang/ComponentKit.ml index 73f0a4345..b66b0af42 100644 --- a/infer/src/clang/ComponentKit.ml +++ b/infer/src/clang/ComponentKit.ml @@ -100,8 +100,7 @@ let mutable_local_vars_advice context decl = Some { CIssue.issue = CIssue.Mutable_local_variable_in_component_file; CIssue.description = "Local variables should be const to avoid reassignment"; - CIssue.suggestion = Some "Add a const (after the asterisk for pointer types). \ - http://componentkit.org/docs/avoid-local-variables.html"; + CIssue.suggestion = Some "Add a const (after the asterisk for pointer types)."; CIssue.loc = CFrontend_checkers.location_from_dinfo context decl_info } else None @@ -128,8 +127,7 @@ let component_factory_function_advice context decl = CIssue.description = "Break out composite components"; CIssue.suggestion = Some ( "Prefer subclassing CKCompositeComponent to static helper functions \ - that return a CKComponent subclass. \ - http://componentkit.org/docs/break-out-composites.html" + that return a CKComponent subclass." ); CIssue.loc = CFrontend_checkers.location_from_dinfo context decl_info }