candies_analyzer_plugin 5.0.0 candies_analyzer_plugin: ^5.0.0 copied to clipboard
The plugin to help create custom analyzer plugin quickly and provide some useful lints and get suggestion and auto import for extension member.
5.0.0 #
- breaking change: use new commands.
- add
--[no-]pre-commit
to create a pre-commit shell in .git/hook - add
--[no-]clear-cache
to clear cache under .dartServer/.plugin_manager/ . - add
--example
to create a analyzer_plugin example. - add
pre_commit.dart
to check code before commit.
4.0.2 #
- support to cache errors into file.
4.0.1 #
- make candies_analyzer_plugin as plugin, you can simply use it now.
4.0.0 #
- add
good_doc_comments
- add
prefer_trailing_comma
- support to fix errors where possible in file, see
prefer_trailing_comma
. - breaking change:
- change method
getDartFixes(ResolvedUnitResult resolvedUnitResult,AstNode astNode,)
togetDartFixes(DartAnalysisError error,CandiesAnalyzerPluginConfig config,)
, you can get resolvedUnitResult and astNode from error, and get cache errors from config. - add CandiesAnalyzerPluginConfig config for
getYamlFixes
andgetGenericFixes
.
- change method
3.3.3 #
- add prefer_singleton
3.3.2 #
- fix
unused_file
for part file
3.3.1 #
- fix
unused_file
skip import file
3.3.0 #
- add
unused_file
3.2.0 #
- add [beforeSendAnalysisErrors] method for [CandiesAnalyzerPlugin], you can edit AnalysisError before to be send.
- add [showAnalysisErrorWithGitAuthor] property for [CandiesAnalyzerPlugin], support to add git author into error message.
3.1.2 #
perfer_doc_comments
add method [isValidDocumentationComment]
3.1.1 #
perfer_doc_comments
add check FunctionDeclaration
3.1.0 #
- add
perfer_doc_comments
, it's same likepublic_member_api_docs
but we can ignore lint or ignore file by override [ignoreLint] and [ignoreFile] and you can override [isPrivate] and [inPrivateMember] to check private member. - add [ignoreLint] and [ignoreFile] methods for [DartLint], override they base on your rule.
- add [astVisitor] for [DartLint], you can custom astVisitor for one lint.
3.0.0 #
- rename
candies_lints
tocandies_analyzer_plugin
. - support to get suggestion and auto import for extension member.
- breaking change some classes are refactored.
2.0.3 #
- remove dartLints.isEmpty in analyzeFile and handleEditGetFixes methods.
2.0.2 #
- add
must_call_super_dispose
andend_call_super_dispose
lints.
2.0.1 #
- add command
clear_cache
to clear plugin_manager cache.
2.0.0 #
- refactor code to support dart, yaml, generic file lint.
- support yaml lint
- support generic lint
1.0.2 #
- rename prefer_safe_set_state.dart
1.0.1 #
- Update method to debug
1.0.0 #
- Initial version.