Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Container-related checks #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/bootlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ var LocationIndex = _location.LocationIndex;
}
});
*/
/*
addLinter('E003', function lintContainers($, reporter) {
var notAnyColClass = COL_CLASSES.map(function (colClass) {
return ':not(' + colClass + ')';
Expand All @@ -448,15 +447,6 @@ var LocationIndex = _location.LocationIndex;
reporter('Found one or more `.row`s that were not children of a grid column or descendants of a `.container` or `.container-fluid`', rowsOutsideColumnsAndContainers);
}
});
*/
/*
addLinter('E004', function lintNestedContainers($, reporter) {
var nestedContainers = $('.container, .container-fluid').children('.container, .container-fluid');
if (nestedContainers.length) {
reporter('Containers (`.container` and `.container-fluid`) are not nestable', nestedContainers);
}
});
*/
/*
addLinter('E005', function lintRowAndColOnSameElem($, reporter) {
var selector = COL_CLASSES.map(function (col) {
Expand Down
29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fixed-fixed.html

This file was deleted.

29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fixed-fluid.html

This file was deleted.

29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fluid-fixed.html

This file was deleted.

29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fluid-fluid.html

This file was deleted.

22 changes: 0 additions & 22 deletions test/bootlint_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ exports.bootlint = {
test.done();
},
*/
/*
'rows outside containers': function (test) {
test.expect(5);
test.deepEqual(lintHtml(utf8Fixture('containers/fixed.html')),
Expand All @@ -130,25 +129,6 @@ exports.bootlint = {
'should not complain when rows are descendants (but not children) of containers.');
test.done();
},
*/
/*
'nested containers': function (test) {
test.expect(4);
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fixed.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fluid.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fluid-fluid.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fluid-fixed.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.done();
},
*/
/*
'viewport meta tag': function (test) {
test.expect(2);
Expand All @@ -173,7 +153,6 @@ exports.bootlint = {
test.done();
},
*/
/*
'row and container classes on same element': function (test) {
test.expect(2);
test.deepEqual(lintHtml(utf8Fixture('containers/fixed-row-same-elem.html')),
Expand All @@ -184,7 +163,6 @@ exports.bootlint = {
'should complain when .row and .container-fluid are used on the same element.');
test.done();
},
*/
/*
'remote modals': function (test) {
test.expect(1);
Expand Down