Skip to main content

Pylint plugin for OCA

Project description

# THIS PROJECT IS DEPRECATED BY https://github.com/oca/pylint-odoo

[![Build Status](https://travis-ci.org/moylop260/pylint-oca.svg?branch=master)](https://travis-ci.org/moylop260/pylint-oca) [![Coverage Status](https://coveralls.io/repos/moylop260/pylint_oca/badge.svg?branch=master&service=github)](https://coveralls.io/github/moylop260/pylint_oca?branch=master) [![Pypi Package](https://img.shields.io/pypi/v/oca-pylint-plugin.svg)](https://pypi.python.org/pypi/oca-pylint-plugin)

# OCA pylint plugin

Enable custom checks for OCA modules.

[//]: # (checks) Code | Description | short name — | — | — C7902 | Missing ./README.rst file. Template here: %s | missing-readme C8101 | Missing author required “%s” in manifest file | manifest-required-author C8102 | Missing required key “%s” in manifest file | manifest-required-key C8103 | Deprecated key “%s” in manifest file | manifest-deprecated-key C8104 | Use CamelCase “%s” in class name “%s”. You can use oca-autopep8 of https://github.com/OCA/maintainer-tools to auto fix it. | class-camelcase C8105 | License “%s” not allowed in manifest file. | license-allowed C8201 | No UTF-8 coding comment found: Use # coding: utf-8 or # -*- coding: utf-8 -*- | no-utf8-coding-comment E7901 | %s:%s %s | rst-syntax-error E7902 | %s error: %s | xml-syntax-error R8101 | Import Warning should be renamed as UserError from openerp.exceptions import Warning as UserError | openerp-exception-warning W7901 | Dangerous filter without explicit user_id in xml_id %s | dangerous-filter-wo-user W7902 | Duplicate xml record id %s | duplicate-xml-record-id W7903 | %s | javascript-lint W8101 | Detected api.one and api.multi decorators together. | api-one-multi-together W8102 | Missing api.one or api.multi in copy function. | copy-wo-api-one W8103 | Translation method _(“string”) in fields is not necessary. | translation-field W8104 | api.one deprecated | api-one-deprecated W8105 | attribute “%s” deprecated | attribute-deprecated W8106 | Missing super call in “%s” method. | method-required-super W8201 | Incoherent interpreter comment and executable permission. Interpreter: [%s] Exec perm: %s | incoherent-interpreter-exec-perm W8202 | Use of vim comment | use-vim-comment

[//]: # (end checks)

## Install # pip install –upgrade git+https://github.com/moylop260/pylint_oca.git

Or

# pip install –upgrade –pre oca-pylint-plugin

## Usage

pylint –load-plugins=pylint_oca -e odoolint …

Example to test just odoo-lint case:

touch {ADDONS-PATH}/__init__.py

pylint –load-plugins=pylint_oca -d all -e odoolint {ADDONS-PATH}

CHANGES

1.11.2

  • [REF] .travis.yml: Auto generate ChangeLog

1.11.1

  • [REF] setup: Enable changelog
  • Update README.md

1.11.0

  • [REF] incoherent-interpreter-exec-perm: Add explicit message of how to fix it
  • [IMP] Add messages2md method and add all messagess to README.md file
  • [IMP] Add check for method-required-super
  • [IMP] deprecated-attributes: Add check to depreated attributes
  • [IMP] Add license allowed check
  • Add docstring and typo
  • [IMP] api-one-deprecated: Enable check of deprecated api.one decorator
  • [REF] .coveragerc: Add except OSError
  • [REF] jslint: Try-except if jshint is not installed
  • [IMP] jslint: Add new check to javascript files with jshint
  • [REF] .travis.yml: Fix coveralls dependency
  • [REF] .travis.yml: Add comments and add coverage report
  • [IMP] jslint: Add check of lint to js files
  • [REF] .travis.yml: testing speed of build without ignore installed parameters
  • [REF] .travis.yml: Remove deprecated download-cache in pip command
  • squash
  • [REF] .travis.yml: Remove lxml from requirements.txt just in travis build
  • dummy-commit
  • [REF] .travis.yml: Use of ignore-installed and download-cache in pip install command
  • [REF] rst-syntax-error: Use of restructuredtext_lint package
  • [REF] .travis.yml: Fix cache pip

1.10.0

  • [REF] .travis.yml: Fixing cache
  • [REF] .travis.yml: Enable pypi deploy in tags
  • [FIX] argument_aux.func.name == ‘_’: AttributeError: ‘Getattr’ object has no attribute ‘name’

1.9.0

  • [REF] misc: Fix except style
  • [IMP] Enable check to verify fields with _(‘string’)
  • Update README.md
  • Update README.md

1.8.0

1.7.1

  • [REF] support code-block with pygments. Fix OCA/maintainer-quality-tools#250
  • Update README.md
  • Update README.md

1.7.0

  • [REF] encoding: Avoid encoding check in __init__.py file
  • typo

1.6.0

  • [FIX] unicode strip error
  • Update README.md
  • [REF] Readme: Adding pypi badge

1.5.0

  • [REF] coding comment: Suppport # coding: utf-8

1.4.0

  • [FIX] Fix manifest double dict=dict

1.3.0

  • [REF] xml-syntax-error: Add one line per file. [REF] extension: Support to upper case

1.2.0

  • [FIX] Enable check and fix xml syntax error
  • Update README.md
  • Update README.md

1.1.0

  • [REF] checkers: Support spaces between each author
  • [REF] misc: Fix UnicodeDecodeError in xml read
  • [REF] Adding testing without manifest file
  • [REF] Adding testing disabling
  • [ADD] test_module
  • [REF] Testing supress case
  • [REF] Add unitest
  • [REF] Change directory structure
  • mv tests->pylint_oca/test
  • [FIX] lxml requirements
  • [ADD] basic tests
  • [ADD] .travis.yml: Enable travis file

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oca-pylint-plugin, version 1.11.2
Filename, size File type Python version Upload date Hashes
Filename, size oca-pylint-plugin-1.11.2.tar.gz (18.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page