candies_analyzer_plugin 5.0.2
candies_analyzer_plugin: ^5.0.2 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.2 #
- fix error at
pre_commit.dartin example
5.0.1 #
pre_commit.dartadd onlyAnalyzeChangedFiles judgement
5.0.0 #
- breaking change: use new commands.
- add
--[no-]pre-committo create a pre-commit shell in .git/hook - add
--[no-]clear-cacheto clear cache under .dartServer/.plugin_manager/ . - add
--exampleto create a analyzer_plugin example. - add
pre_commit.dartto 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
getYamlFixesandgetGenericFixes.
- change method
3.3.3 #
- add prefer_singleton
3.3.2 #
- fix
unused_filefor part file
3.3.1 #
- fix
unused_fileskip 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_commentsadd method [isValidDocumentationComment]
3.1.1 #
perfer_doc_commentsadd check FunctionDeclaration
3.1.0 #
- add
perfer_doc_comments, it's same likepublic_member_api_docsbut 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_lintstocandies_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_disposeandend_call_super_disposelints.
2.0.1 #
- add command
clear_cacheto 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.