private getSeverity()

in jshint-server/src/server.ts [610:617]


	private getSeverity(problem: JSHintError): DiagnosticSeverity {
		// If there is no code (that would be very odd) we'll push it as an error as well.
		// See http://jshint.com/docs/ (search for error. It is only mentioned once.)
		if (!problem.code || problem.code[0] === 'E' || this.settings.reportWarningsAsErrors) {
			return DiagnosticSeverity.Error;
		}
		return DiagnosticSeverity.Warning;
	}