2046N/A# The contents of this file are subject to the terms of the 2046N/A# Common Development and Distribution License (the "License"). 2046N/A# You may not use this file except in compliance with the License. 2046N/A# See the License for the specific language governing permissions 2046N/A# and limitations under the License. 2046N/A# When distributing Covered Code, include this CDDL HEADER in each 2046N/A# If applicable, add the following below this CDDL HEADER, with the 2046N/A# fields enclosed by brackets "[]" replaced with your own identifying 2046N/A# information: Portions Copyright [yyyy] [name of copyright owner] 3158N/A# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. 2046N/A# a set of lint messages that can be produced. 2046N/A # we are our own reverse map 2046N/A """A base class for all lint messages.""" 2046N/A """"Inspect a given pkg.client.progress.ProgressTracker, telling it 2046N/A to flush, before emitting output.""" 2046N/A """A class that formats log messages.""" 2046N/A # install our own logger, writing to stderr 2434N/A # the action and manifest we expect messages from. See advise() 2537N/A # when the logger is using an engine, the engine registers 2046N/A # to our private log handler 2046N/A # string values for what's always stored as an integer 2046N/A # convenience methods to log messages 2046N/A """Given a LintMessage message, format that object 2046N/A """Called to determine if this logger produced any lint 2046N/A messages at a level >= its log level.""" 2434N/A """Called to tell the logger to expect lint messages concerning 2046N/A """A basic log formatter, just prints the message.""" 2434N/A # Format the message level and message identifier 2537N/A # we may have asked not to report errors 2537N/A # that have been marked as pkg.linted 2537N/A "pkglint001.5.report-linted")
2434N/A # We only treat errors, and criticals as being worthy 2434N/A # of a flag (pkglint returns non-zero if self.emitted)