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">';
- Create a ticketCreate a ticket
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();
- Read upRead up
- Create a ticketCreate a ticket
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();
- Read upRead up
- Create a ticketCreate a ticket
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) {
- Create a ticketCreate a ticket
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));}
- Read upRead up
- Create a ticketCreate a ticket
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));}
- Read upRead up
- Create a ticketCreate a ticket
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-sizer {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-linewidget {
- Create a ticketCreate a ticket
- Exclude checks
Adjoining classes: .size-control.smaller Open
.size-control.smaller, #create-gist {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
- Create a ticketCreate a ticket
- Exclude checks
Fallback background-color (hex or RGB) should precede RGBA background-color. Open
background-color: rgba(20, 20, 20, 0.7);
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-vscrollbar {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-hscrollbar {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-wrap pre {
- Create a ticketCreate a ticket
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.CodeMirror-linebackground {
- Create a ticketCreate a ticket
- Exclude checks
Property with star prefix found. Open
.CodeMirror span { *vertical-align: text-bottom; }
- Create a ticketCreate a ticket
- Exclude checks
Do not use 'new' for side effects. Open
new bsn.Button(e.target, 'reset');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks