26#include "wx/html/m_templ.h"
27#include "wx/html/styleparams.h"
54 _(
"Missing connection between items" ),
55 wxT(
"unconnected_items" ) );
58 _(
"Items shorting two nets" ),
59 wxT(
"shorting_items" ) );
62 _(
"Items not allowed" ),
63 wxT(
"items_not_allowed" ) );
66 _(
"Text (or dimension) on Edge.Cuts layer" ),
67 wxT(
"text_on_edge_cuts" ) );
70 _(
"Clearance violation" ),
74 _(
"Creepage violation" ),
78 _(
"Tracks crossing" ),
79 wxT(
"tracks_crossing" ) );
82 _(
"Board edge clearance violation" ),
83 wxT(
"copper_edge_clearance" ) );
86 _(
"Copper zones intersect" ),
87 wxT(
"zones_intersect" ) );
90 _(
"Isolated copper fill" ),
91 wxT(
"isolated_copper" ) );
94 _(
"Thermal relief connection to zone incomplete" ),
95 wxT(
"starved_thermal" ) );
98 _(
"Via is not connected or connected on only one layer" ),
99 wxT(
"via_dangling" ) );
102 _(
"Track has unconnected end" ),
103 wxT(
"track_dangling" ) );
106 _(
"Hole clearance violation" ),
107 wxT(
"hole_clearance" ) );
110 _(
"Drilled hole too close to other hole" ),
111 wxT(
"hole_to_hole" ) );
114 _(
"Drilled holes co-located" ),
115 wxT(
"holes_co_located" ) );
118 _(
"Copper connection too narrow" ),
119 wxT(
"connection_width" ) );
123 wxT(
"track_width" ) );
127 wxT(
"track_angle" ) );
130 _(
"Track segment length" ),
131 wxT(
"track_segment_length" ) );
134 _(
"Annular width" ),
135 wxT(
"annular_width" ) );
138 _(
"Hole size out of range" ),
139 wxT(
"drill_out_of_range" ) );
143 wxT(
"via_diameter" ) );
146 wxT(
"Padstack is questionable" ),
150 _(
"Padstack is not valid" ),
151 wxT(
"padstack_invalid" ) );
154 _(
"Micro via hole size out of range" ),
155 wxT(
"microvia_drill_out_of_range" ) );
158 _(
"Courtyards overlap" ),
159 wxT(
"courtyards_overlap" ) );
162 _(
"Footprint has no courtyard defined" ),
163 wxT(
"missing_courtyard" ) );
166 _(
"Footprint has malformed courtyard" ),
167 wxT(
"malformed_courtyard" ) );
170 _(
"PTH inside courtyard" ),
171 wxT(
"pth_inside_courtyard" ) );
174 _(
"NPTH inside courtyard" ),
175 wxT(
"npth_inside_courtyard" ) );
178 _(
"Item on a disabled copper layer" ),
179 wxT(
"item_on_disabled_layer" ) );
182 _(
"Board has malformed outline" ),
183 wxT(
"invalid_outline" ) );
186 _(
"Duplicate footprints" ),
187 wxT(
"duplicate_footprints" ) );
190 _(
"Missing footprint" ),
191 wxT(
"missing_footprint" ) );
194 _(
"Extra footprint" ),
195 wxT(
"extra_footprint" ) );
198 _(
"Pad net doesn't match schematic" ),
199 wxT(
"net_conflict" ) );
202 _(
"Footprint attributes don't match symbol" ),
203 wxT(
"footprint_symbol_mismatch" ) );
206 _(
"Footprint doesn't match symbol's footprint filters" ),
207 wxT(
"footprint_filters_mismatch" ) );
210 _(
"Footprint not found in libraries" ),
211 wxT(
"lib_footprint_issues" ) );
214 _(
"Footprint doesn't match copy in library" ),
215 wxT(
"lib_footprint_mismatch" ) );
218 _(
"Unresolved text variable" ),
219 wxT(
"unresolved_variable" ) );
222 _(
"Assertion failure" ),
223 wxT(
"assertion_failure" ) );
227 wxT(
"generic_warning" ) );
231 wxT(
"generic_error" ) );
234 _(
"Copper sliver" ),
235 wxT(
"copper_sliver" ) );
238 _(
"Solder mask aperture bridges items with different nets" ),
239 wxT(
"solder_mask_bridge" ) );
242 _(
"Silkscreen clipped by solder mask" ),
243 wxT(
"silk_over_copper" ) );
246 _(
"Silkscreen clipped by board edge" ),
247 wxT(
"silk_edge_clearance" ) );
250 _(
"Silkscreen overlap" ),
251 wxT(
"silk_overlap" ) );
254 _(
"Text height out of range" ),
255 wxT(
"text_height" ) );
258 _(
"Text thickness out of range" ),
259 wxT(
"text_thickness" ) );
262 _(
"Track length out of range" ),
263 wxT(
"length_out_of_range" ) );
266 _(
"Skew between tracks out of range" ),
267 wxT(
"skew_out_of_range" ) );
271 _(
"Too many or too few vias on a connection" ),
272 wxT(
"too_many_vias" ) );
275 _(
"Differential pair gap out of range" ),
276 wxT(
"diff_pair_gap_out_of_range" ) );
279 _(
"Differential uncoupled length too long" ),
280 wxT(
"diff_pair_uncoupled_length_too_long" ) );
283 _(
"Footprint is not valid" ),
284 wxT(
"footprint" ) );
287 _(
"Footprint component type doesn't match footprint pads" ),
288 wxT(
"footprint_type_mismatch" ) );
291 _(
"Through hole pad has no hole" ),
292 wxT(
"through_hole_pad_without_hole" ) );
295 _(
"Mirrored text on front layer" ),
296 wxT(
"mirrored_text_on_front_layer" ) );
299 _(
"Non-Mirrored text on back layer" ),
300 wxT(
"nonmirrored_text_on_back_layer" ) );
449 wxFAIL_MSG( wxT(
"Unknown DRC error code" ) );
459 if( aErrorKey == item.GetSettingsKey() )
460 return std::make_shared<DRC_ITEM>(
static_cast<const DRC_ITEM&
>( item ) );
497 return _(
"Local override" );
528 && ( marker->GetSeverity() & aSeverity ) > 0 )
542 return marker ? marker->
GetRCItem() :
nullptr;
virtual void Delete(BOARD_ITEM *aItem)
Removes an item from the container and deletes it.
const MARKERS & Markers() const
void SetSeverities(int aSeverities) override
std::vector< MARKER_BASE::MARKER_T > m_markerTypes
void DeleteItem(int aIndex, bool aDeep) override
Remove (and optionally deletes) the indexed item from the list.
int GetCount(int aSeverity=-1) const override
std::vector< PCB_MARKER * > m_filteredMarkers
std::shared_ptr< RC_ITEM > GetItem(int aIndex) const override
Retrieve a RC_ITEM by index.
static DRC_ITEM nonMirroredTextOnBackLayer
static DRC_ITEM lengthOutOfRange
KIID GetAuxItem3ID() const override
static DRC_ITEM viaDiameter
static DRC_ITEM silkEdgeClearance
static DRC_ITEM trackWidth
static DRC_ITEM heading_DFM
static DRC_ITEM annularWidth
static DRC_ITEM pthInsideCourtyard
static DRC_ITEM trackSegmentLength
static DRC_ITEM schematicParity
wxString GetViolatingRuleDesc() const override
static DRC_ITEM netConflict
static DRC_ITEM copperSliver
static DRC_ITEM holeNearHole
static DRC_ITEM heading_signal_integrity
static DRC_ITEM courtyardsOverlap
static DRC_ITEM textThicknessOutOfRange
static DRC_ITEM connectionWidth
static DRC_ITEM footprint
static DRC_ITEM unresolvedVariable
static DRC_ITEM assertionFailure
static DRC_ITEM npthInsideCourtyard
static DRC_ITEM footprintFilters
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
static DRC_ITEM textOnEdgeCuts
static std::vector< std::reference_wrapper< RC_ITEM > > allItemTypes
A list of all DRC_ITEM types which are valid error codes.
static DRC_ITEM zonesIntersect
static DRC_ITEM starvedThermal
static DRC_ITEM shortingItems
static DRC_ITEM tracksCrossing
static DRC_ITEM missingCourtyard
static DRC_ITEM skewOutOfRange
static DRC_ITEM trackDangling
static DRC_ITEM viaDangling
static DRC_ITEM genericError
static DRC_ITEM drillTooSmall
static DRC_ITEM holesCoLocated
static DRC_ITEM missingFootprint
static DRC_ITEM textHeightOutOfRange
static DRC_ITEM diffPairGapOutOfRange
static DRC_ITEM heading_electrical
static DRC_ITEM itemOnDisabledLayer
static DRC_ITEM mirroredTextOnFrontLayer
static DRC_ITEM heading_readability
static DRC_ITEM itemsNotAllowed
static DRC_ITEM extraFootprint
static DRC_ITEM diffPairUncoupledLengthTooLong
KIID GetAuxItem2ID() const override
static DRC_ITEM unconnectedItems
static DRC_ITEM clearance
DRC_RULE * m_violatingRule
static DRC_ITEM libFootprintMismatch
static DRC_ITEM viaCountOutOfRange
static DRC_ITEM edgeClearance
static DRC_ITEM genericWarning
static DRC_ITEM invalidOutline
static DRC_ITEM silkOverlaps
static DRC_ITEM isolatedCopper
static DRC_ITEM malformedCourtyard
static DRC_ITEM heading_internal
static DRC_ITEM holeClearance
static DRC_ITEM libFootprintIssues
static DRC_ITEM padstackInvalid
static DRC_ITEM trackAngle
static DRC_ITEM heading_schematic_parity
static DRC_ITEM microviaDrillTooSmall
static DRC_ITEM solderMaskBridge
static DRC_ITEM heading_misc
static DRC_ITEM footprintTypeMismatch
static DRC_ITEM footprintTHPadhasNoHole
static DRC_ITEM silkClearance
static DRC_ITEM duplicateFootprints
std::shared_ptr< RC_ITEM > GetRCItem() const
A holder for a rule check item, DRC in Pcbnew or ERC in Eeschema.
int m_errorCode
The error code's numeric value.
@ DRCE_DISABLED_LAYER_ITEM
@ DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE
@ DRCE_SILK_EDGE_CLEARANCE
@ DRCE_MIRRORED_TEXT_ON_FRONT_LAYER
@ DRCE_LIB_FOOTPRINT_ISSUES
@ DRCE_OVERLAPPING_FOOTPRINTS
@ DRCE_DRILL_OUT_OF_RANGE
@ DRCE_TRACK_SEGMENT_LENGTH
@ DRCE_DRILLED_HOLES_TOO_CLOSE
@ DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG
@ DRCE_MICROVIA_DRILL_OUT_OF_RANGE
@ DRCE_MALFORMED_COURTYARD
@ DRCE_UNRESOLVED_VARIABLE
@ DRCE_FOOTPRINT_TYPE_MISMATCH
@ DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER
@ DRCE_DUPLICATE_FOOTPRINT
@ DRCE_DRILLED_HOLES_COLOCATED
@ DRCE_LENGTH_OUT_OF_RANGE
@ DRCE_LIB_FOOTPRINT_MISMATCH
@ DRCE_PAD_TH_WITH_NO_HOLE
@ DRCE_VIA_COUNT_OUT_OF_RANGE
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.