- Fix loading of
RuboCop
linter on Ruby 3.3.5+
- Add GitHub reporter
- Speed up load time by preferring require_relative in internal gem file loading
- Add
TagAttribute
linter for restricting attribute usage - Fix bug where
rexml
gem was missing if user used RuboCop 1.66.0 or newer
- Add
Tag
linter for restricting tag usage
- Add
InstanceVariables
linter - Add
StrictLocalsMissing
linter - Fix
EmbeddedEngines
linter missing indented uses
- Revert "Fix
ControlSpacingStatement
linter handling of=
in some cases"
- Drop support for Ruby 2.x
- Fix
ControlSpacingStatement
linter handling of=
in some cases
- Require RuboCop 1.x or newer
- Silence Parser gem warnings on startup
- Add
Zwsp
to report zero-width space characters - Allow Slim version 5.x
- Fix
CommentControlStatement
to not reportTemplate Dependency:
directives - Fix handling of disabled lines when running across multiple files
- Add
Layout/ClosingParenthesisIndentation
to list of ignored RuboCop cops - Add
Layout/FirstHashElementIndentation
to list of ignored RuboCop cops
- Disable RuboCop
Layout/FirstArgumentIndentation
- Disable RuboCop
Layout/LineEndStringConcatenationIndentation
- Add support for disabling linters on specific lines
- Fix handling of Slim documents with parse error
- Add
linter
field toJSONReporter
- Add
EmbeddedEngines
linter - Add
EmacsReporter
reporter - Add
--stdin-file-path
option for specifying the name of a file passed via standard input
- Ignore
Style/WhileUntilDo
RuboCop cop by default
- Disable
Style/IdenticalConditionalBranches
cop by default
- Update minimum RuboCop version to 0.78.0 due to renaming of various cops and namespaces
- Remove dependency on
sysexits
gem - Update RuboCop dependency to require
0.77.0
or newer
- Remove explicit dependency on Rake, making it optional as it's only needed for the Rake integration
- Fix
CommentControlStatement
to not reportrubocop:{enable,disable}
directives
- Disable
Layout/AlignArguments
andLayout/InitialIndentation
cops by default - Update
EmptyLineAfterGuardClause
cop namespace fromStyle
toLayout
to fix errors - Drop support for Ruby 2.3 and older
- Fix
ControlStatementSpacing
to support other output operators=>
,=<>
, and=<
- Add
ControlStatementSpacing
linter - Allow Slim 4.x
- Fix
TrailingBlankLines
to ignore empty files - Fix
excludes
option to correctly filter files when relative path globs are used
- Improve RuboCop linter to not use temporary files when linting
- Add
TrailingBlankLines
linter - Add
EmptyLines
linter - Add support for RuboCop 0.50.0
- Require RuboCop 0.50.0 or newer
- Fix
Metrics/BlockNesting
RuboCop cop to be disabled by default - Disable
Layout/AlignArray
andLayout/IndentArray
RuboCop cops by default
- Add support for RuboCop 0.49.0
- Require RuboCop 0.49.0 or newer
- Add support for RuboCop 0.48.0
- Require RuboCop 0.48.0 or newer
- Update minimum RuboCop version to 0.47.0+ due to breaking change in RuboCop AST interface
- Relax rake gem constraint to allow 12.x
- Fix
skip_frontmatter
option - Add
Tab
linter which reports the use of hard tabs as indentation
- Disable
Style/Multiline*
cops by default - Disable
Metrics/BlockLength
RuboCop cop by default
- Additional fix for line numbers reported when Ruby code spans multiple lines in a single control/code statement
- Fix line numbers reported when Ruby code spans multiple lines in a single control/code statement
- Add
Checkstyle
reporter
- Relax
rake
gem dependency to allow rake 11.x.x
- Fix
RuboCop
linter to not reportFrozenStringLiteralComment
cops as these are noisy in Slim templates
- Fix compatibility issues with Astrolabe gem by updating minimum RuboCop version to 0.36.0
- Fix
RuboCop
linter to not erroneously reportStyle/IdenticalConditionalBranches
warnings
- Fix
exclude
option to work with paths prefixed with./
- Change required Ruby version from 1.9.3+ to 2.0.0+
- Fix rake task integration to not crash when running
rake -T
- Improve bug reporting instructions in error message
- Add
-V/--verbose-version
flag to displayslim
,rubocop
, andruby
version information in addition to output of-v/--version
flag
- Add support for
SLIM_LINT_RUBOCOP_CONF
environment variable toRuboCop
linter, allowing external tools to specify RuboCop configuration to use - Change required Ruby version from 2.0.0+ to 1.9.3+
- Remove cop name from RuboCop offense message (this can be added via the
DisplayCopNames
option in your.rubocop.yml
)
- Fix Ruby code extraction to result in fewer false positives from
RuboCop
- Fix
ConsecutiveControlStatements
to not report control statements with nested content (i.e.if
/elsif
/else
)
- Add support for
include
/exclude
options on linters, allowing a list of files or glob patterns to be included/excluded from a linter's scope - Add support for global
exclude
configuration option allowing a list of files or glob patterns to be excluded from all linters
- Ignore
Style/IndentationConsistency
RuboCop warnings - Add
ConsecutiveControlStatements
which recommends condensing multiple control statements into a singleruby:
filter - Add
EmptyControlStatement
which reports control statements with no code - Add
CommentControlStatement
which reports control statement with only comments - Add
TagCase
which reports tags with uppercase characters
- Initial release