Showing 1,727 of 1,727 total issues
Prefer single quoted strings Open
Open
@import "vendor-modifications/trix";
- Exclude checks
Color literals like #E5C30F
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background: #E5C30F;
- Exclude checks
Avoid using id selectors Open
Open
#error_explanation {
- Exclude checks
Selector previous_page
should be written in lowercase with hyphens Open
Open
.previous_page {
- Exclude checks
Selector next_page
should be written in lowercase with hyphens Open
Open
.next_page {
- Exclude checks
Shorthand form for property padding
should be written more concisely as 1rem 1rem .9rem
instead of 1rem 1rem .9rem 1rem
Open
Open
padding: 1rem 1rem .9rem 1rem;
- Exclude checks
0.38
should be written without a leading zero as .38
Open
Open
margin-top: 0.38rem;
- Exclude checks
Selector user-box__points
should be written in lowercase with hyphens Open
Open
.user-box__name,
- Exclude checks
Missing magic comment # frozen_string_literal: true
. Open
Open
# Add your own tasks in files placed in lib/tasks ending in .rake,
- Read upRead up
- Exclude checks
This cop is designed to help upgrade to Ruby 3.0. It will add the
comment # frozen_string_literal: true
to the top of files to
enable frozen string literals. Frozen string literals may be default
in Ruby 3.0. The comment will be added below a shebang and encoding
comment. The frozen string literal comment is only valid in Ruby 2.3+.
Example: EnforcedStyle: when_needed (default)
# The `when_needed` style will add the frozen string literal comment
# to files only when the `TargetRubyVersion` is set to 2.3+.
# bad
module Foo
# ...
end
# good
# frozen_string_literal: true
module Foo
# ...
end
Example: EnforcedStyle: always
# The `always` style will always add the frozen string literal comment
# to a file, regardless of the Ruby version or if `freeze` or `<<` are
# called on a string literal.
# bad
module Bar
# ...
end
# good
# frozen_string_literal: true
module Bar
# ...
end
Example: EnforcedStyle: never
# The `never` will enforce that the frozen string literal comment does
# not exist in a file.
# bad
# frozen_string_literal: true
module Baz
# ...
end
# good
module Baz
# ...
end
Missing magic comment # frozen_string_literal: true
. Open
Open
#!/usr/bin/env ruby
- Read upRead up
- Exclude checks
This cop is designed to help upgrade to Ruby 3.0. It will add the
comment # frozen_string_literal: true
to the top of files to
enable frozen string literals. Frozen string literals may be default
in Ruby 3.0. The comment will be added below a shebang and encoding
comment. The frozen string literal comment is only valid in Ruby 2.3+.
Example: EnforcedStyle: when_needed (default)
# The `when_needed` style will add the frozen string literal comment
# to files only when the `TargetRubyVersion` is set to 2.3+.
# bad
module Foo
# ...
end
# good
# frozen_string_literal: true
module Foo
# ...
end
Example: EnforcedStyle: always
# The `always` style will always add the frozen string literal comment
# to a file, regardless of the Ruby version or if `freeze` or `<<` are
# called on a string literal.
# bad
module Bar
# ...
end
# good
# frozen_string_literal: true
module Bar
# ...
end
Example: EnforcedStyle: never
# The `never` will enforce that the frozen string literal comment does
# not exist in a file.
# bad
# frozen_string_literal: true
module Baz
# ...
end
# good
module Baz
# ...
end
Commas in function arguments should be followed by one space Open
Open
box-shadow: 0 3px 10px rgba(27,31,35,0.2);
- Exclude checks
Prefer single quoted strings Open
Open
@import "layout/header";
- Exclude checks
!important should not be used Open
Open
border-bottom-left-radius: $box-radius !important;
- Exclude checks
Selector browser-window__header
should be written in lowercase with hyphens Open
Open
.browser-window__header {
- Exclude checks
Properties should be ordered fill, width Open
Open
width: 169px;
- Exclude checks
Properties should be ordered background, border-radius, display, height, position, width Open
Open
position: relative;
- Exclude checks
Selector event-box__date
should be written in lowercase with hyphens Open
Open
.event-box__date {
- Exclude checks
Selector event-box-big__img
should be written in lowercase with hyphens Open
Open
.event-box-big__img {
- Exclude checks
0.375
should be written without a leading zero as .375
Open
Open
padding: 0.375rem 1.5rem 0.375rem 0.75rem;
- Exclude checks
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
- Exclude checks