Ignore:
Timestamp:
2009-12-28T13:26:27+01:00 (15 years ago)
Author:
guggis
Message:

'Fixed JOSM ticket #4220 - validator: check for FIXME=*'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java

    r19200 r19229  
    547547                }
    548548            }
    549             if( checkFixmes && value != null && value.length() > 0 )
    550             {
    551                 if( (value.contains("FIXME") || value.contains("check and delete") || key.contains("todo") || key.contains("fixme"))
    552                 && !withErrors.contains(p, "FIXME"))
    553                 {
    554                     errors.add( new TestError(this, Severity.OTHER, tr("FIXMES"), FIXME, p) );
    555                     withErrors.add(p, "FIXME");
    556                 }
    557             }
     549                        if (checkFixmes && value != null && value.length() > 0) {
     550                                if ((value.toLowerCase().contains("FIXME")
     551                                                || value.contains("check and delete")
     552                                                || key.contains("todo") || key.toLowerCase().contains("fixme"))
     553                                                && !withErrors.contains(p, "FIXME")) {
     554                                        errors.add(new TestError(this, Severity.OTHER,
     555                                                        tr("FIXMES"), FIXME, p));
     556                                        withErrors.add(p, "FIXME");
     557                                }
     558                        }
    558559        }
    559560    }
Note: See TracChangeset for help on using the changeset viewer.