[Stoq-devel] Issues found by pylint
Johan Dahlin
jdahlin at async.com.br
Thu Jan 12 12:23:37 BRST 2006
pylint version 0.7.0
************* Module stoq.main
W0311: 28: Bad indentation. Found 7 spaces, expected 8
************* Module stoq.tests.runtests
E0501: 1: Non ascii characters found but no encoding specified (PEP 263)
************* Module stoq.tests.domain.base
E0501: 1: Non ascii characters found but no encoding specified (PEP 263)
C0324: 89:BaseDomainTest: Comma not followed by a space
skip_attrs = ['model_modified','_is_valid_model','model_created']
^^
W0612:142:BaseDomainTest._generate_foreign_key_attrs: Unused variable 'edit_dict'
************* Module stoq.tests.domain.test_profile
E0501: 1: Non ascii characters found but no encoding specified (PEP 263)
************* Module stoq.tests.domain.test_person
E0501: 1: Non ascii characters found but no encoding specified (PEP 263)
************* Module stoq.gui.pos.pos
W0612:282:POSApp._update_widgets: Unused variable 'model'
************* Module stoq.gui.wizards.sale
W0612:235:GiftCertificateOutstandingStep._setup_widgets: Unused variable 'group'
W0612:583:SalesPersonStep.__init__: Unused variable 'changed_handler'
************* Module stoq.gui.till.operation
C0301: 55: Line too long (83/80)
************* Module stoq.gui.components.login
W0311:109: Bad indentation. Found 13 spaces, expected 12
W0221:113:LoginDialog.run: Arguments number differs from overriden method
************* Module stoq.gui.search.product
C0301: 55: Line too long (88/80)
************* Module stoq.gui.search.person
C0301:192: Line too long (85/80)
C0324: 57:BasePersonSearch: Comma not followed by a space
size = (800,500)
^^
C0324:316:BranchSearch: Comma not followed by a space
size = (750,500)
^^
************* Module stoq.gui.editors.product
W0311:235: Bad indentation. Found 11 spaces, expected 12
W0311:236: Bad indentation. Found 11 spaces, expected 12
W0311:237: Bad indentation. Found 11 spaces, expected 12
W0311:240: Bad indentation. Found 11 spaces, expected 12
E0203:132:ProductSupplierEditor.update_model: Access to member '_last_supplier' before its definition line 134
W0612:255:ProductEditor.create_model: Unused variable 'supplier_info'
************* Module stoq.gui.editors.sellable
C0301:149: Line too long (81/80)
W0221:224:SellableEditor.validate_confirm: Arguments number differs from overriden method
************* Module stoq.gui.slaves.payment
W0612:162:PaymentListSlave.update_payment_list: Unused variable 'i'
W0612:651:CreditProviderMethodSlave._get_payment_types: Unused variable 'payment_info'
************* Module stoq.gui.slaves.profile
W0612: 69:UserProfileSettingsSlave.setup_proxies: Unused variable 'data'
************* Module stoq.gui.templates.person
W0221:233:IndividualEditorTemplate.on_confirm: Arguments number differs from overriden method
W0221:268:CompanyEditorTemplate.on_confirm: Arguments number differs from overriden method
************* Module stoq.lib.validators
C0324: 83:validate_phone_number: Comma not followed by a space
return digits in range(7,11)
^^
************* Module stoq.lib.parameters
C0301:396: Line too long (81/80)
************* Module stoq.lib.applist
W0612: 62:get_app_full_names: Unused variable 'name'
************* Module stoq.lib.drivers
C0301:243: Line too long (84/80)
C0301:245: Line too long (82/80)
C0301:248: Line too long (83/80)
************* Module stoq.domain.base
E0203: 96:AbstractModel.set_valid: Access to member '_is_valid_model' before its definition line 98
W0221:303:ConnMetaInterface.__call__: Arguments number differs from overriden method
W0611: 41: Unused import InheritableSQLMeta
************* Module stoq.domain.interfaces
E0213: 41:IContainer.add_item: Method doesn't have "self" as first argument
E0211: 45:IContainer.get_items: Method has no argument
E0213: 49:IContainer.remove_items: Method doesn't have "self" as first argument
E0211: 84:ISellable.can_be_sold: Method has no argument
E0211: 87:ISellable.set_sold: Method has no argument
E0211: 90:ISellable.get_price: Method has no argument
E0213: 93:ISellable.add_sellable_item: Method doesn't have "self" as first argument
E0213:102:IStorable.fill_stocks: Method doesn't have "self" as first argument
E0213:106:IStorable.increase_stock: Method doesn't have "self" as first argument
E0213:110:IStorable.increase_logic_stock: Method doesn't have "self" as first argument
E0213:115:IStorable.decrease_stock: Method doesn't have "self" as first argument
E0213:119:IStorable.decrease_logic_stock: Method doesn't have "self" as first argument
E0213:123:IStorable.get_full_balance: Method doesn't have "self" as first argument
E0213:129:IStorable.get_logic_balance: Method doesn't have "self" as first argument
E0211:134:IStorable.get_average_stock_price: Method has no argument
E0213:139:IStorable.ensure_qty_requested: Method doesn't have "self" as first argument
E0213:261:IInPayment.receive: Method doesn't have "self" as first argument
E0213:268:IOutPayment.pay: Method doesn't have "self" as first argument
E0213:283:IPaymentGroup.set_thirdparty: Method doesn't have "self" as first argument
E0211:288:IPaymentGroup.get_thirdparty: Method has no argument
E0211:292:IPaymentGroup.get_group_description: Method has no argument
E0211:296:IPaymentGroup.get_balance: Method has no argument
E0211:299:IPaymentGroup.add_payment: Method has no argument
E0211:312:IMoneyPM.get_change: Method has no argument
E0213:321:ICheckPM.get_check_data_by_payment: Method doesn't have "self" as first argument
E0211:328:IBillPM.get_available_bill_accounts: Method has no argument
E0211:335:IFinancePM.get_finance_companies: Method has no argument
E0211:342:ICardPM.get_credit_card_providers: Method has no argument
E0213:349:ITillOperation.add_debit: Method doesn't have "self" as first argument
E0213:352:ITillOperation.add_credit: Method doesn't have "self" as first argument
E0213:355:ITillOperation.add_complement: Method doesn't have "self" as first argument
E0213:358:ITillOperation.get_cash_advance: Method doesn't have "self" as first argument
E0213:361:ITillOperation.cancel_payment: Method doesn't have "self" as first argument
E0211:385:IRenegotiationGiftCertificate.confirm: Method has no argument
E0213:406:IRenegotiationSaleReturnMoney.confirm: Method doesn't have "self" as first argument
E0213:429:IRenegotiationOutstandingValue.confirm: Method doesn't have "self" as first argument
E0211:438:IPaymentDevolution.get_devolution_date: Method has no argument
E0211:445:IPaymentDeposit.get_deposit_date: Method has no argument
E0213:463:ICreditProvider.get_card_providers: Method doesn't have "self" as first argument
E0213:466:ICreditProvider.get_finance_companies: Method doesn't have "self" as first argument
E0211:475:IActive.inactivate: Method has no argument
E0211:478:IActive.activate: Method has no argument
************* Module stoq.domain.tables
E0501: 1: Non ascii characters found but no encoding specified (PEP 263)
C0301:104: Line too long (81/80)
C0301:105: Line too long (82/80)
C0301:113: Line too long (81/80)
************* Module stoq.domain.product
C0301:206: Line too long (81/80)
W0221:175:ProductSellableItem.sell: Arguments number differs from overriden method
W0612:329:ProductAdaptToStorable.decrease_logic_stock: Unused variable 'rejected'
************* Module stoq.domain.sale
E0203:321:SaleAdaptToPaymentGroup._get_stored_renegotiation: Access to member 'renegotiation_data' before its definition line 331
************* Module stoq.domain.till
C0301:117: Line too long (86/80)
W0612:102:Till.get_balance: Unused variable 'money_payment_method'
C0322:181:Till._create_entry: Operator not preceded by a space
destination= sysparam(conn).DEFAULT_PAYMENT_DESTINATION
^
************* Module stoq.domain.person
E0501: 1: Non ascii characters found but no encoding specified (PEP 263)
W0311:231: Bad indentation. Found 16 spaces, expected 12
W0311:233: Bad indentation. Found 16 spaces, expected 12
W0311:258: Bad indentation. Found 16 spaces, expected 12
W0311:260: Bad indentation. Found 16 spaces, expected 12
W0311:271: Bad indentation. Found 16 spaces, expected 12
W0311:273: Bad indentation. Found 16 spaces, expected 12
W0311:283: Bad indentation. Found 16 spaces, expected 12
W0311:285: Bad indentation. Found 16 spaces, expected 12
C0322:519:PersonAdaptToUser: Operator not preceded by a space
is_active= BoolCol(default=True)
^
C0322:553:PersonAdaptToBranch: Operator not preceded by a space
is_active= BoolCol(default=True)
^
C0322:589:PersonAdaptToBankBranch: Operator not preceded by a space
is_active= BoolCol(default=True)
^
************* Module stoq.domain.renegotiation
W0612:165:RenegotiationAdaptToOutstandingValue.confirm: Unused variable 'conn'
************* Module stoq.domain.payment.base
C0301:185: Line too long (81/80)
************* Module stoq.domain.payment.methods
W0311:141: Bad indentation. Found 16 spaces, expected 12
W0612:411:AbstractCheckBillAdapter._setup_payments: Unused variable 'conn'
W0221:432:AbstractCheckBillAdapter.setup_inpayments: Arguments number differs from overriden method
W0221:439:AbstractCheckBillAdapter.setup_outpayments: Arguments number differs from overriden method
W0221:560:PMAdaptToCardPM.get_thirdparty: Arguments number differs from overriden method
W0221:578:PMAdaptToFinancePM.get_thirdparty: Arguments number differs from overriden method
************* Module stoq.examples.product
C0322: 65:create_products: Operator not preceded by a space
base_category_data= ['Keyboard',
^
W0612: 93:create_products: Unused variable 'supplier_info'
************* Module stoq.examples.sale
W0612:103:create_sales: Unused variable 'destination'
W0612:126:create_sales: Unused variable 'payment_id'
************* Module stoq.examples.person
W0612:161:create_persons: Unused variable 'address'
************* Module stoq.examples.giftcertificate
W0612: 58:create_giftcertificates: Unused variable 'cert_type'
More information about the Stoq-devel
mailing list