`, not on the table itself', badStructure);
}
});
+ */
+ /*
addLinter('E028', function lintFormControlFeedbackWithoutHasFeedback($, reporter) {
var ancestorsMissingClasses = $('.form-control-feedback').filter(function () {
return $(this).closest('.form-group.has-feedback').length !== 1;
@@ -12775,6 +12856,8 @@ var LocationIndex = _location.LocationIndex;
reporter('`.form-control-feedback` must have a `.form-group.has-feedback` ancestor', ancestorsMissingClasses);
}
});
+ */
+ /*
addLinter('E029', function lintRedundantColumnClasses($, reporter) {
var columns = $(COL_CLASSES.join(','));
columns.each(function (_index, col) {
@@ -12822,6 +12905,8 @@ var LocationIndex = _location.LocationIndex;
);
});
});
+ */
+ /*
addLinter('E030', function lintSoloGlyphiconClasses($, reporter) {
var missingGlyphiconClass = $('[class*="glyphicon-"]:not(.glyphicon):not(.glyphicon-class)').filter(function () {
return /\bglyphicon-([a-zA-Z]+)\b/.test($(this).attr('class'));
@@ -12830,12 +12915,16 @@ var LocationIndex = _location.LocationIndex;
reporter('Found elements with a `.glyphicon-*` class that were missing the additional required `.glyphicon` class.', missingGlyphiconClass);
}
});
+ */
+ /*
addLinter('E031', function lintGlyphiconOnNonEmptyElement($, reporter) {
var glyphiconNotEmpty = $('.glyphicon:not(:empty)');
if (glyphiconNotEmpty.length) {
reporter('Glyphicon classes must only be used on elements that contain no text content and have no child elements.', glyphiconNotEmpty);
}
});
+ */
+ /*
addLinter('E032', function lintModalStructure($, reporter) {
var elements;
@@ -12869,12 +12958,16 @@ var LocationIndex = _location.LocationIndex;
reporter('`.modal-title` must be a child of `.modal-header`', elements);
}
});
+ */
+ /*
addLinter('E033', function lintAlertMissingDismissible($, reporter) {
var alertsMissingDismissible = $('.alert:not(.alert-dismissible):has([data-dismiss="alert"])');
if (alertsMissingDismissible.length) {
reporter('`.alert` with dismiss button must have class `.alert-dismissible`', alertsMissingDismissible);
}
});
+ */
+ /*
addLinter('E034', function lintAlertDismissStructure($, reporter) {
var nonFirstChildCloses = $('.alert>.close:not(:first-child)');
var closesPrecededByText = $('.alert>.close').filter(function () {
@@ -12887,12 +12980,16 @@ var LocationIndex = _location.LocationIndex;
reporter('`.close` button for `.alert` must be the first element in the `.alert`', problematicCloses);
}
});
+ */
+ /*
addLinter('E035', function lintFormGroupWithFormClass($, reporter) {
var badFormGroups = $('.form-group.form-inline, .form-group.form-horizontal');
if (badFormGroups.length) {
reporter('Neither `.form-inline` nor `.form-horizontal` should be used directly on a `.form-group`. Instead, nest the `.form-group` within the `.form-inline` or `.form-horizontal`', badFormGroups);
}
});
+ */
+ /*
addLinter('E037', function lintColZeros($, reporter) {
var selector = SCREENS.map(function (screen) {
return '.col-' + screen + '-0';
@@ -12902,6 +12999,8 @@ var LocationIndex = _location.LocationIndex;
reporter('Column widths must be positive integers (and <= 12 by default). Found usage(s) of invalid nonexistent `.col-*-0` classes.', elements);
}
});
+ */
+ /*
addLinter('E038', function lintMediaPulls($, reporter) {
var mediaPullsOutsideMedia = $('.media-left, .media-right').filter(function () {
return !$(this).parent().closest('.media').length;
@@ -12910,6 +13009,8 @@ var LocationIndex = _location.LocationIndex;
reporter('`.media-left` and `.media-right` should not be used outside of `.media` objects.', mediaPullsOutsideMedia);
}
});
+ */
+ /*
addLinter('E039', function lintNavbarPulls($, reporter) {
var navbarPullsOutsideNavbars = $('.navbar-left, .navbar-right').filter(function () {
return !$(this).parent().closest('.navbar').length;
@@ -12918,12 +13019,16 @@ var LocationIndex = _location.LocationIndex;
reporter('`.navbar-left` and `.navbar-right` should not be used outside of navbars.', navbarPullsOutsideNavbars);
}
});
+ */
+ /*
addLinter('E040', function lintModalHide($, reporter) {
var modalsWithHide = $('.modal.hide');
if (modalsWithHide.length) {
reporter('`.hide` should not be used on `.modal` in Bootstrap v3.', modalsWithHide);
}
});
+ */
+ /*
addLinter('E041', function lintCarouselStructure($, reporter) {
var carouselsWithWrongInners = $('.carousel').filter(function () {
return $(this).children('.carousel-inner').length !== 1;
@@ -12939,6 +13044,8 @@ var LocationIndex = _location.LocationIndex;
reporter('`.carousel-inner` must have exactly one `.item.active` child.', innersWithWrongActiveItems);
}
});
+ */
+ /*
addLinter('E042', function lintFormControlOnWrongControl($, reporter) {
var formControlsOnWrongTags = $('.form-control:not(input,textarea,select)');
if (formControlsOnWrongTags.length) {
@@ -12965,12 +13072,16 @@ var LocationIndex = _location.LocationIndex;
reporter('`.form-control` cannot be used on non-textual `
`s, such as those whose `type` is: `file`, `checkbox`, `radio`, `range`, `button`', formControlsOnWrongTypes);
}
});
+ */
+ /*
addLinter('E043', function lintNavbarNavAnchorButtons($, reporter) {
var navbarNavAnchorBtns = $('.navbar-nav a.btn, .navbar-nav a.navbar-btn');
if (navbarNavAnchorBtns.length) {
reporter('Button classes (`.btn`, `.btn-*`, `.navbar-btn`) cannot be used on `
`s within `.navbar-nav`s.', navbarNavAnchorBtns);
}
});
+ */
+ /*
addLinter('E044', function lintInputGroupAddonChildren($, reporter) {
var badInputGroups = $('.input-group').filter(function () {
var inputGroup = $(this);
@@ -12980,42 +13091,56 @@ var LocationIndex = _location.LocationIndex;
reporter('`.input-group` must have a `.form-control` and either an `.input-group-addon` or an `.input-group-btn`.', badInputGroups);
}
});
+ */
+ /*
addLinter('E045', function lintImgResponsiveOnNonImgs($, reporter) {
var imgResponsiveNotOnImg = $('.img-responsive:not(img)');
if (imgResponsiveNotOnImg.length) {
reporter('`.img-responsive` should only be used on `
`s', imgResponsiveNotOnImg);
}
});
+ */
+ /*
addLinter('E046', function lintModalTabIndex($, reporter) {
var modalsWithoutTabindex = $('.modal:not([tabindex])');
if (modalsWithoutTabindex.length) {
reporter('`.modal` elements must have a `tabindex` attribute.', modalsWithoutTabindex);
}
});
+ */
+ /*
addLinter('E047', function lintBtnElements($, reporter) {
var btns = $('.btn:not(a,button,input,label)');
if (btns.length) {
reporter('`.btn` should only be used on ``, `