Giter Site home page Giter Site logo

Project's logo

flutter_rb

GitHubActions Codebeat Gem Version Gem Downloads

About

A tool for checking a Flutter plugin structure.

Checks

Levels

Each issue has a level parameter that describes its significant importance.

Level Description
NORMAL Issue not found
WARNING Issue is not serious and can't break a build
ERROR Issue is critical and can break a build

Flutter

Check Description Level
PluginDirectoriesCheck Check plugin directories structure in pubspec file. Example: if a Flutter plugin has only Android specific code but not contains iOS folder with description, then iOS build fails ERROR
PluginPubspecNameCheck Check plugin name in pubspec file. Exists or not ERROR
PluginPubspecDescriptionCheck Check plugin description in pubspec file. Exists or not WARNING
PluginPubspecVersionCheck Check plugin version in pubspec. Exists or not ERROR
PluginPubspecAuthorCheck Check plugin author in pubspec. Exists or not. author section deprecated in pubspec.yaml WARNING
PluginPubspecHomepageCheck Check plugin homepage in pubspec. Exists or not ERROR
PluginPubspecLintsCheck Check Flutter plugin lints dependency in pubspec file. Exists or not ERROR
PluginPubspecFlutterLintsCheck Check Flutter plugin flutter_lints dependency in pubspec file. Exists or not ERROR

Android

Check Description Level
PluginGradleAndroidPackageCheck Validate that \android\ package not exists in Gradle project config (build.gradle file) ERROR
PluginGradleVersionCheck Check plugin version in Gradle project config (build.gradle file). Version must be the same as plugin version in pubspec file WARNING

iOS

Check Description Level
PluginPodspecNameCheck Check plugin name in podspec file. Exists or not WARNING
PluginPodspecVersionCheck Check plugin version in podspec file. Exists or not WARNING
PluginPodspecAuthorsCheck Check plugin's authors in podspec file. Exists or not ERROR
PluginPodspecSourceCheck Check plugin iOS source path in podspec file. If Flutter plugin cannot contains iOS specific code, source path must be '.' ERROR

How to use

Android

You should add flutter-rb-gradle-plugin to Android side of your plugin.

Download gem from RubyGems

$ gem i flutter_rb

Then run from a Flutter plugin's project folder:

$ frb

As local installed gem

Build and install gem from sources:

$ gem build flutter_rb.gemspec
$ gem i flutter_rb

Then run from a Flutter plugin's project folder:

$ frb

As local executable

Add project_folder/bin (where project_folder is path to project on your machine) to PATH variable in your environment. Then updated environment and run from a Flutter plugin's project folder:

$ local_frb

Arguments

Argument Description
--help Print help info
--checkstyle-report Generate report in Checkstyle format

Configuration

Add .flutter_rb.yaml to root of a project for select checks that you are want to exclude:

exclude:
  flutter:
    - check1
    - check2
    - check3
  android:
    - check1
    - check2
  ios:
    - check1
    - check2

Output report

Tool can make report in Checkstyle format. To enable this feature, pass --checkstyle-report as an CLI argument. The report file name is frb-checkstyle-report.xml.

How to contribute

Read Commit Convention. Make sure your build is green before you contribute your pull request. Then:

$ bundle exec rake

If you don't see any error messages, submit your pull request.

Contributors

flutter_rb's Projects

flutter-rb icon flutter-rb

A Ruby tool for checking a Flutter plugin structure

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.