All Projects → pavlospt → litho-lint-rules

pavlospt / litho-lint-rules

Licence: MIT license
Lint rules for Litho by Facebook http://fblitho.com/

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to litho-lint-rules

therapist
Work out your commitment issues.
Stars: ✭ 29 (+107.14%)
Mutual labels:  lint, linter, linting-rules
JSONCustomLintr
Library to allow creation, running, and reporting of custom lint rules for JSON files
Stars: ✭ 19 (+35.71%)
Mutual labels:  lint, linter, linting-rules
yamburger
YAML syntax got you down? That's a YAMBURGER!
Stars: ✭ 32 (+128.57%)
Mutual labels:  lint, linter
nano-staged
Tiny tool to run commands for modified, staged, and committed files in a GIT repository.
Stars: ✭ 347 (+2378.57%)
Mutual labels:  lint, linter
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (+0%)
Mutual labels:  lint, linter
Sql Lint
An SQL linter
Stars: ✭ 243 (+1635.71%)
Mutual labels:  lint, linter
elm-lint
elm-lint lints Elm source code, to add additional guarantees to your project.
Stars: ✭ 27 (+92.86%)
Mutual labels:  lint, linter
actionlint
Static checker for GitHub Actions workflow files
Stars: ✭ 1,385 (+9792.86%)
Mutual labels:  lint, linter
Protoc Gen Lint
A plug-in for Google's Protocol Buffers (protobufs) compiler to lint .proto files for style violations.
Stars: ✭ 221 (+1478.57%)
Mutual labels:  lint, linter
npm-groovy-lint
Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line
Stars: ✭ 124 (+785.71%)
Mutual labels:  lint, linter
eslint-plugin-roku
ESLint plugin to parse and lint BrightScript files
Stars: ✭ 44 (+214.29%)
Mutual labels:  lint, linter
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+514.29%)
Mutual labels:  lint, linter
Fsharplint
Lint tool for F#
Stars: ✭ 224 (+1500%)
Mutual labels:  lint, linter
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+2714.29%)
Mutual labels:  lint, linter
D Scanner
Swiss-army knife for D source code
Stars: ✭ 221 (+1478.57%)
Mutual labels:  lint, linter
flexlint
A flexible linter with rules defined by regular expression
Stars: ✭ 19 (+35.71%)
Mutual labels:  lint, linter
li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (+107.14%)
Mutual labels:  lint, linter
Woke
✊ Detect non-inclusive language in your source code.
Stars: ✭ 190 (+1257.14%)
Mutual labels:  lint, linter
Whispers
Identify hardcoded secrets and dangerous behaviours
Stars: ✭ 66 (+371.43%)
Mutual labels:  lint, linter
lint-html-with-css
Lint HTML with CSS. A collection of CSS snippets from the hashtag #lintHTMLwithCSS on twitter. These CSS snippets intend to warn developers about common mistakes made in HTML.
Stars: ✭ 35 (+150%)
Mutual labels:  lint, linter

Litho Lint Rules

Litho Lint rules is a project that contains Lint rules generated according to Litho Best Practices. It contains 6 rules:

  • AnnotatedMethodVisibility - Checks whether a lifecycle method has the proper visibility (package-private & static)

  • MissingStaticModifier - Checks whether a lifecycle method has static modifier

  • ComponentContextName - Checks whether ComponentContextName on a lifecycle method is named as c for less code verbosity and more readability

  • LayoutSpecClassName - Checks whether a @LayoutSpec or @MountSpec annotated class is properly named

  • OptionalPropBeforeRequired - Checks whether a lifecycle method follows the suggested order of Props (required ones before optional)

  • PossibleResourceType - Suggests possible use of a ResType for float or Drawable Prop annotated parameters (can add more if there is a request :) )

Usage

compile 'com.github.pavlospt:litho-lint:1.5'

Run Code Inspection through Android Studio or just run ./gradlew clean :app:lint

Other

Litho repository: https://github.com/facebook/litho

Litho documentation: http://fblitho.com/docs/getting-started

License

MIT License

Copyright (c) 2017 Pavlos-Petros Tournaris

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].