CORAOPOLIS, United States — Dick's Sporting Goods Inc. soared the most since May 2018 after raising its earnings guidance for the full year, on the back of second-quarter profit and sales that topped analysts' estimates.The athletic and outdoor retailer expects full-year earnings of $3.30 to $3.45 a share, higher than its previous projection of $3.20 to $3.40. Analysts were expecting $3.31.Second-quarter comparable-store sales rose 3.2 percent, well ahead of analysts’ estimate of 1.1 percent as compiled by Consensus Metrix.Key InsightsThe strong results and outlook show Dick’s isn’t suffering as it moves away from gun sales. The retailer began scaling back the category after the school shooting in Parkland, Florida, last year, and a strategic review of what it calls the hunt segment is continuing.E-commerce was a bright spot for the chain, with sales up 21 percent in the second quarter compared with the year-earlier period. E-commerce as a percentage of sales edged up to 12 percent from 11 percent.Dick’s said it is bucking any ill effects from President Donald Trump’s trade war with China so far, saying its guidance includes the impact of all previous tariffs and the new 10 percent levy coming soon on most remaining Chinese imports.Market ReactionDick’s shares jumped as much as 11 percent, the most since May 30, 2018, to $36.49 in New York trading Thursday. They were up 5.7 percent this year through Wednesday, trailing the 17 percent gain of the S&P 500 Index.By John J. Edwards III; editors: Nick Turner.