Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
efe9e704
Commit
efe9e704
authored
Mar 01, 2009
by
jake%acutex.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tabs are not allowed in Bugzilla source... if we find one, issue a warning.
No review needed for tests at this time. NOT PART OF BUILD
parent
c9a255eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
005whitespace.t
t/005whitespace.t
+45
-0
No files found.
t/005whitespace.t
0 → 100644
View file @
efe9e704
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code are the Bugzilla tests.
#
# The Initial Developer of the Original Code is Jacob Steenhagen.
# Portions created by Jacob Steenhagen are
# Copyright (C) 2001 Jacob Steenhagen. All
# Rights Reserved.
#
# Contributor(s): Jacob Steenhagen <jake@acutex.net>
#
#################
#Bugzilla Test 4#
#####no_tabs#####
BEGIN
{
use
lib
"t/"
;
}
BEGIN
{
use
Support::
Files
;
}
BEGIN
{
$tests
=
@
Support::Files::
testitems
;
}
BEGIN
{
use
Test::
More
tests
=>
$tests
;
}
my
@testitems
=
@
Support::Files::
testitems
;
my
$verbose
=
$::ENV
{
VERBOSE
};
foreach
my
$file
(
@testitems
)
{
open
(
FILE
,
"$file"
);
my
@file
=
<
FILE
>
;
close
(
FILE
);
if
(
grep
/\t/
,
@file
)
{
ok
(
0
,
"$file contains tabs --WARNING"
);
}
else
{
ok
(
1
,
"$file has no tabs"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment