This release has been brought to you by 30 contributors contributing
over 101 commits.
New Bears
CSS:
StyleLintBear- Lints css files using stylelint
Elm:
ElmLintBear- Formats source code according to given set of rules.
Generic:
LicenseCheckBear- Checks given files for license. Searches start
or end of files for lines belonging to various licenses.DuplicateFileBear- Checks for duplicate files.
Enhancements:
FilenameBearcan now recognize kebab-case naming convention.FilenameBearcan predict naming conventions for wide-spread
languages like java, javascript and python. Set the
file_naming_conventiontoautoto use this feature.GitCommitBearcan now enforce issue reference in commits.GitCommitBearnow recognizesuser/repo#12type issue references.JSONFormatBearnotifies if run on empty files.JSONFormatBeartells the lines and columns at which the error
occured instead of showing it in the error message.
New settings
LineCountBearcan now exclude blank lines in counting the number
of lines in a file. The new setting name isexclude_blank_lines
and it is disabled by default i.e.False.PyUnusedCodeBearcan remove unused variables, see setting
remove_unused_variable.ShellCheckBearcan ignore specific rules by providing those in the
ignore_actionssetting.YAMLLintBearcan now be configured to check for maximum characters
in a line, by default it is set to 80.
Default Setting Modifications
LanguageToolBear-languagesetting is changed to
natural_language, please update your settings, it'll be deprecated
completely in next release.MarkdownBear-max_line_lengthsetting is changed toNone
instead of 80. Issue 1581YAMLLintBear-document_startsetting is changed toNone, not
forbiding the usage of document start marker(---) by default. Issue 1417
Bug Fixes
InvalidLinkBearnow extracts links from markdown correctly. Issue 1338InvalidLinkBearnow extracts all the links in a line. Earlier it
used to extract only the first match.PyCodeStyleBearnow uses user settings along with default
settings. Earlier it used to ignore default settings if user changed
one of them.PyImportSortBearnow correctly supports option
known_third_party_imports. Issue 1510KeywordBeardoesn't report false results when unsetting it.
Previously, it used to match any text instead of matching nothing.
Issue 1689