[[Property:title|CA006 - Object test typing not needed]]
[[Property:link_title|CA006]]
[[Property:weight|0]]
[[Property:uuid|32d6e539-9565-14c2-31b1-5a947a6841f9]]
__NOTOC__
=Description=
In an object test if the expression conforms to the specified type, that type is redundant.

:{| class="doctable"
|-
| '''Scope'''
| feature
|-
| '''Status'''
| Enabled
|-
| '''Severity'''
| Suggestion
|-
| '''Applicability'''
| All
|-
| '''Score'''
|  40
|}


=Example of violation=
<e>s: STRING_32
...
if attached {READABLE_STRING_GENERAL} s as l_s then
	l_s.do_something
end
</e>

=Recommendation=
Remove the specified type in the object test.

In the example, it can simply be:
<e>if attached s as l_sl then
	l_s.do_something
end
</e>

