eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::ClassChecker':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ClassChecker (in Tools)


Inheritance:

   Object
   |
   +--Tools::ClassChecker

Package:
stx:libtool
Category:
Interface-Browsers-New
Version:
rev: 1.33 date: 2024/03/14 16:21:33
user: cg
file: Tools__ClassChecker.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


embeddable application displaying the class-categories.
Provides an outputGenerator, which enumerates the classes in
the selected categories.

Attention: do not change the method categories 'checks-' into something else.
The 'checks-' prefix is used to detect checks and these are listed in the browsers
lint dialog.

copyright

COPYRIGHT (c) 2004 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

queries
o  individualChecks
return a list of supported checks

Usage example(s):

     self individualChecks


Instance protocol:

accessing
o  badClassInfo

o  badMethodInfo

o  checkedClass
return the value of the instance variable 'checkedClass' (automatically generated)

o  checkedClass: aClass
set the value of the instance variable 'checkedClass' (automatically generated)

checking
o  allChecks

o  doCheck: whichCheck

o  errorChecks

o  styleChecks
self doCheck:#guardingClause.

o  warningChecks

checks-individual
o  checkProtocols

o  checkVariableNameConventions

o  classInstanceVariablesNeverUsed

o  classInstanceVariablesNeverWritten

o  classVariablesNeverUsed

o  classVariablesNeverWritten

o  definesEqualButNotHash

o  guardingClause

o  instanceVariablesNeverUsed

o  instanceVariablesNeverWritten

o  invalidKeyInImageResourceMethod

o  messageNeverSent
old code: (slow)

o  messageNeverSentAndNotUsedAsSymbol

o  parseMethod: method in: aClass withParserDo: aBlock onErrorDo: errorBlock

o  sendsObsoleteMessages
manually patchup; there are some which should not be considered as bad ...

o  sendsObsoleteMethodWarningButNotTaggedAsObsoleteOrViceVersa

o  sentNotImplemented

o  subclassResponsibilityNotDefined
ok, got one;

o  unusedClassVariables

o  unusedInstanceVariables

helpers
o  anyImplementationOf: aSelector

o  anyImplementationOf: aSelector in: aCollectionOfClasses

o  anyImplementationOf: aSelector inOrAbove: aClass

o  anySendsOf: aSelector

o  checkProtocolOf: aMethod

o  checkUnusedVariables: aMethod rememberReadInstVarsIn: readInstVars writtenInstVarsIn: writtenInstVars readClassVarsIn: readClassVars writtenClassVarsIn: writtenClassVars

o  instanceVariablesNeverUsedIn: aClass

o  instanceVariablesNeverWrittenIn: aClass

o  messagesNeverSentAndNotUsedAsSymbolIn: selectorsOfInterest
start searching in the checkedClass - chances are high, we find some here

o  messagesNeverSentIn: selectorsOfInterest

o  methodShouldBeIgnoredInSubclassResponsibilityNotDefined: aMethod
a kludge for now - would like to have a pragma, resource or other
way to mark such a method

o  rememberBadClass: class info: whatIsWrong

o  rememberBadMethod: method key: key info: whatIsWrong

o  rememberBadMethods: methods key: key info: whatIsWrong

o  removeUsedClassVariablesIn: aClass from: aCollectionOfVariablenames
Modified (format): / 18-09-2023 / 13:01:18 / Stefan_Vogel

o  removeUsedInstanceVariablesIn: aClass from: aCollectionOfVariablenames
Modified (format): / 18-09-2023 / 13:01:32 / Stefan_Vogel

o  removeWrittenClassVariablesIn: aClass from: aCollectionOfVariablenames
Modified (format): / 18-09-2023 / 13:01:49 / Stefan_Vogel

o  removeWrittenInstanceVariablesIn: aClass from: aCollectionOfVariablenames
Modified (format): / 18-09-2023 / 13:01:58 / Stefan_Vogel



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:38:50 GMT