crcastle/collaborative-code-conference

View on GitHub

Showing 101 of 101 total issues

Function loadGistModal has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Gister.prototype.loadGistModal = function() {
var frame = document.querySelector('#gistModal');
var modalBody = '<p>What is the gist URL? All text in the editor will be '
+'replaced with the gist content.</p>'
+'<input style="width: 100%;" id="gist-url" type="text">';
Severity: Major
Found in src/client/gister.js - About 2 hrs to fix

Similar blocks of code found in 2 locations. Consider refactoring.
Open

anchor.addEventListener('click', function(e) {
e.preventDefault();
cm.setOption('theme', classPrefix);
document.querySelector('#theme-button-text').innerHTML = 'Theme: ' + name;
cm.focus();
Severity: Major
Found in src/client/coding.js and 1 other location - About 1 hr to fix
src/client/coding.js on lines 63..68

Similar blocks of code found in 2 locations. Consider refactoring.
Open

anchor.addEventListener('click', function(e) {
e.preventDefault();
cm.setOption('mode', mime);
document.querySelector('#language-button-text').innerHTML = 'Language: ' + name;
cm.focus();
Severity: Major
Found in src/client/coding.js and 1 other location - About 1 hr to fix
src/client/coding.js on lines 104..109

Function clientConnected has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function clientConnected() {
// document.getElementById('invite-controls').style.display = 'block';
console.log("Connected to Twilio. Listening for incoming Invites as '", conversationsClient.identity, "'");
 
conversationsClient.on('invite', function (invite) {
Severity: Minor
Found in src/client/webrtc.js - About 1 hr to fix

Similar blocks of code found in 2 locations. Consider refactoring.
Open

for (var j = 0; j < themes.length; j++) {
themeSelector.appendChild(themeListItem(themes[j].name, themes[j].classPrefix));
}
Severity: Major
Found in src/client/coding.js and 1 other location - About 1 hr to fix
src/client/coding.js on lines 90..92

Similar blocks of code found in 2 locations. Consider refactoring.
Open

for (var i = 0; i < languages.length; i++) {
modeSelector.appendChild(languageListItem(languages[i].name, languages[i].mime));
}
Severity: Major
Found in src/client/coding.js and 1 other location - About 1 hr to fix
src/client/coding.js on lines 125..127

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-sizer {
Severity: Minor
Found in src/client/codemirror.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-linewidget {
Severity: Minor
Found in src/client/codemirror.css by csslint

Adjoining classes: .size-control.smaller
Open

.size-control.smaller, #create-gist {
Severity: Minor
Found in src/client/index.css by csslint

Rule is empty.
Open

.cm-s-default .cm-variable,
Severity: Minor
Found in src/client/codemirror.css by csslint

Rule is empty.
Open

.CodeMirror-widget {}
Severity: Minor
Found in src/client/codemirror.css by csslint

Don't use IDs in selectors.
Open

#conf {
Severity: Minor
Found in src/client/index.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
Severity: Minor
Found in src/client/codemirror.css by csslint

Fallback background-color (hex or RGB) should precede RGBA background-color.
Open

background-color: rgba(20, 20, 20, 0.7);
Severity: Minor
Found in src/client/index.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-vscrollbar {
Severity: Minor
Found in src/client/codemirror.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-hscrollbar {
Severity: Minor
Found in src/client/codemirror.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-wrap pre {
Severity: Minor
Found in src/client/codemirror.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.CodeMirror-linebackground {
Severity: Minor
Found in src/client/codemirror.css by csslint

Property with star prefix found.
Open

.CodeMirror span { *vertical-align: text-bottom; }
Severity: Minor
Found in src/client/codemirror.css by csslint

Do not use 'new' for side effects.
Open

new bsn.Button(e.target, 'reset');
Severity: Minor
Found in src/client/gister.js by eslint
Severity
Category
Status
Source
Language