Is there a lint tool to check the code against the Dart style guide? -


i write code conforms dart style guide. therefore curios, whether there automatic way check coding style dart.

do know way this?

since dart 1.13 (currently release candidate) can enable lint checks, strong mode , other features adding .analysis_options file dart project (the folder pubspec.yaml file)

analyzer:   strong-mode: true   exclude:   - test/data/**   language:     enablesupermixins: true linter:   rules:     # see http://dart-lang.github.io/linter/lints/     - always_declare_return_types     - always_specify_types     - camel_case_types     - constant_identifier_names     - empty_constructor_bodies     - implementation_imports     - library_names     - library_prefixes     - non_constant_identifier_names     - one_member_abstracts     - package_api_docs     - package_prefixed_library_names     - slash_for_doc_comments     - super_goes_last     - type_init_formals #    - unnecessary_brace_in_string_interp     - unnecessary_getters_setters     - package_names 

the available lint rules listed in http://dart-lang.github.io/linter/lints/

see


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -