nesquena/gitdocs

View on GitHub

Showing 676 of 676 total issues

Heading (h3) should not be qualified.
Open

.topbar h3 a,.topbar .brand{float:left;display:block;padding:8px 20px 12px;margin-left:-20px;color:#ffffff;font-size:20px;font-weight:200;line-height:1;}

Adjoining classes: .topbar div > ul .dropdown.open .dropdown-toggle
Open

.topbar div>ul a.menu:hover,.nav a.menu:hover,.topbar div>ul li.open .menu,.nav li.open .menu,.topbar div>ul .dropdown-toggle:hover,.nav .dropdown-toggle:hover,.topbar div>ul .dropdown.open .dropdown-toggle,.nav .dropdown.open .dropdown-toggle{background:#444;background:rgba(255, 255, 255, 0.05);}

Adjoining classes: .topbar div > ul .dropdown-menu .dropdown-toggle.open
Open

.topbar div>ul .menu-dropdown,.nav .menu-dropdown,.topbar div>ul .dropdown-menu,.nav .dropdown-menu{background-color:#333;}.topbar div>ul .menu-dropdown a.menu,.nav .menu-dropdown a.menu,.topbar div>ul .dropdown-menu a.menu,.nav .dropdown-menu a.menu,.topbar div>ul .menu-dropdown .dropdown-toggle,.nav .menu-dropdown .dropdown-toggle,.topbar div>ul .dropdown-menu .dropdown-toggle,.nav .dropdown-menu .dropdown-toggle{color:#ffffff;}.topbar div>ul .menu-dropdown a.menu.open,.nav .menu-dropdown a.menu.open,.topbar div>ul .dropdown-menu a.menu.open,.nav .dropdown-menu a.menu.open,.topbar div>ul .menu-dropdown .dropdown-toggle.open,.nav .menu-dropdown .dropdown-toggle.open,.topbar div>ul .dropdown-menu .dropdown-toggle.open,.nav .dropdown-menu .dropdown-toggle.open{background:#444;background:rgba(255, 255, 255, 0.05);}

%w-literals should be delimited by [ and ].
Open

        write(File.join(%w(directory file2)), 'bar')
Severity: Minor
Found in test/unit/repository_path_test.rb by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Unnecessary utf-8 encoding comment.
Open

# -*- encoding : utf-8 -*-
Severity: Minor
Found in test/integration/cli/status_test.rb by rubocop

Unnecessary utf-8 encoding comment.
Open

# -*- encoding : utf-8 -*-

Line is too long. [82/80]
Open

        %(<embed class="inline-file" src="#{request.path_info}?mode=raw"></embed>)
Severity: Minor
Found in lib/gitdocs/rendering_helper.rb by rubocop

%w-literals should be delimited by [ and ].
Open

        write(File.join(%w(directory0 file0)), '')
Severity: Minor
Found in test/unit/repository_path_test.rb by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Line is too long. [88/80]
Open

      commit.diff(paths: [relative_path]).size > 0 # rubocop:disable ZeroLengthPredicate
Severity: Minor
Found in lib/gitdocs/repository.rb by rubocop

Line is too long. [82/80]
Open

        # ... and wait ###########################################################
Severity: Minor
Found in lib/gitdocs/manager.rb by rubocop

Unnecessary utf-8 encoding comment.
Open

# -*- encoding : utf-8 -*-
Severity: Minor
Found in lib/gitdocs/configuration.rb by rubocop

Property with star prefix found.
Open

button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;}

Avoid rescuing without specifying an error class.
Open

    rescue # rubocop:disable Lint/HandleExceptions
Severity: Minor
Found in lib/gitdocs/notifier.rb by rubocop

This cop checks for rescuing StandardError. There are two supported styles implicit and explicit. This cop will not register an offense if any error other than StandardError is specified.

Example: EnforcedStyle: implicit

# `implicit` will enforce using `rescue` instead of
# `rescue StandardError`.

# bad
begin
  foo
rescue StandardError
  bar
end

# good
begin
  foo
rescue
  bar
end

# good
begin
  foo
rescue OtherError
  bar
end

# good
begin
  foo
rescue StandardError, SecurityError
  bar
end

Example: EnforcedStyle: explicit (default)

# `explicit` will enforce using `rescue StandardError`
# instead of `rescue`.

# bad
begin
  foo
rescue
  bar
end

# good
begin
  foo
rescue StandardError
  bar
end

# good
begin
  foo
rescue OtherError
  bar
end

# good
begin
  foo
rescue StandardError, SecurityError
  bar
end

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

a{color:#0069d6;text-decoration:none;line-height:inherit;font-weight:inherit;}a:hover{color:#00438a;text-decoration:underline;}

Element (form.add) is overqualified, just use .add without element name.
Open

form.upload p, form.add p {
Severity: Minor
Found in lib/gitdocs/public/css/app.css by csslint

Heading (h2) has already been defined.
Open

h1,h2,h3,h4,h5,h6{font-weight:bold;color:#404040;}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#bfbfbf;}

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

input[type=button],input[type=reset],input[type=submit]{width:auto;height:auto;}

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

div.share {
Severity: Minor
Found in lib/gitdocs/public/css/app.css by csslint

Property with star prefix found.
Open

select,input[type=file]{height:27px;*height:auto;line-height:27px;*margin-top:4px;}

Adjoining classes: form .clearfix.warning input:focus
Open

form .clearfix.warning input,form .clearfix.warning textarea{color:#c09853;border-color:#ccae64;}form .clearfix.warning input:focus,form .clearfix.warning textarea:focus{border-color:#be9a3f;-webkit-box-shadow:0 0 6px #e5d6b1;-moz-box-shadow:0 0 6px #e5d6b1;box-shadow:0 0 6px #e5d6b1;}
Severity
Category
Status
Source
Language