0
Commit Graph

33 Commits

Author SHA1 Message Date
Paweł Hajdan, Jr
9c89631fce Clean up PRESUBMIT.py - remove references to removed clang trybots
BUG=none
R=maruel@chromium.org

Review URL: https://codereview.chromium.org/683733009

Cr-Commit-Position: refs/heads/master@{#302800}
2014-11-05 15:05:37 +00:00
John Abd-El-Malek
a2226a6c81 Convert manually triggered try runs to use bots without _swarming prefix.
BUG=425813
R=phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/664413006

Cr-Commit-Position: refs/heads/master@{#300691}
2014-10-22 16:50:53 +00:00
mostynb
5a73a5d372 remove obsolete OVERRIDE/FINAL presubmit checks
BUG=417463

Review URL: https://codereview.chromium.org/655693003

Cr-Commit-Position: refs/heads/master@{#300675}
2014-10-22 13:21:49 +00:00
Paweł Hajdan, Jr
c793742b02 Remove references to linux_asan from PRESUBMIT files.
BUG=404694
R=earthdok@chromium.org

Review URL: https://codereview.chromium.org/637953005

Cr-Commit-Position: refs/heads/master@{#300468}
2014-10-21 12:06:11 +00:00
mohan.reddy
f21db965b7 Adding Presubmit error when OVERRIDE and FINAL is not used as C++11 standard
Alerting the error for use to use c++11 constructs |override| and |final|
instead of OVERRIDE and FINAL respctively

BUG=417463

Review URL: https://codereview.chromium.org/653883002

Cr-Commit-Position: refs/heads/master@{#299880}
2014-10-16 12:27:09 +00:00
lliabraa
35bab3936e Add PRESUBMIT check for #ifdefs on values that are always defined.
Several values are always defined and the developer actually wants to
do an #if check, not #ifdef.

BUG=417804

Review URL: https://codereview.chromium.org/595213004

Cr-Commit-Position: refs/heads/master@{#297627}
2014-10-01 12:16:58 +00:00
philipj
3f9d5bde73 Update some paths from components/breakpad/ to components/crash/
It was moved in https://crrev.com/55b8563

Found by git grep 'components.*breakpad'

BUG=406410
R=rsesek@chromium.org
TBR=jochen@chromium.org

Review URL: https://codereview.chromium.org/511223002

Cr-Commit-Position: refs/heads/master@{#292376}
2014-08-28 14:10:17 +00:00
Robert Sesek
abcd8100a5 Rename components/breakpad to components/crash.
In the near future, Crashpad (the new Mac crash reporter) will be integrated,
and it should be integrated/exposed transparently to the users of this
component.

BUG=406410
R=blundell@chromium.org
TBR=darin@chromium.org

Review URL: https://codereview.chromium.org/485893007

Cr-Commit-Position: refs/heads/master@{#292162}
2014-08-27 16:14:41 +00:00
dominik.rottsches@intel.com
e120b01ad8 Do not run header include order checks on blacklisted files
The header include order checks were running on all
affected files, including third_party for example,
this causes issues when rolling harfbuzz-ng.

BUG=404105
NOTRY=true

Review URL: https://codereview.chromium.org/462323003

Cr-Commit-Position: refs/heads/master@{#289968}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289968 0039d316-1c4b-4281-b951-d872f2087c98
2014-08-15 19:10:48 +00:00
sergeyberezin@chromium.org
0bb112369a Update masters after the tryserver split.
Also replace deprecated linux_chromium_rel with linux_chromium_rel_swarming, while I'm at it.

R=agable@chromium.org, maruel@chromium.org
BUG=395196

Review URL: https://codereview.chromium.org/415323002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285752 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-26 04:38:32 +00:00
miguelg@chromium.org
5e4dbc79f8 Revert of Add PRESUBMIT.py warning for contradictory NOTREACHED() use. (https://codereview.chromium.org/344563003/)
Reason for revert:
It seems to be checking code that is not part of the diff. 

I also think there are some legitimate cases for not reached in the middle of a block but that is something that can be discussed on the bug.

Filed https://code.google.com/p/chromium/issues/detail?id=388731 to track.

Original issue's description:
> Add PRESUBMIT.py warning for contradictory NOTREACHED() use.
> 
> As recently discussed on chromium-dev [1] and subsequently incorporated into the
> Chromium Coding Style [2], NOTREACHED() followed by code is an anti-pattern.
> This CL lets PRESUBMIT.py detect most of these cases and print a warning to the
> developer.
> [1] https://groups.google.com/a/chromium.org/d/msg/chromium-dev/c2X0D1Z6X2o/ddkFLqQP0P0J
> [2] http://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED-
> 
> BUG=none
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279681

TBR=maruel@chromium.org,tnagel@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=none

Review URL: https://codereview.chromium.org/357693004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279710 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-25 14:10:21 +00:00
tnagel@chromium.org
264246a7e8 Add PRESUBMIT.py warning for contradictory NOTREACHED() use.
As recently discussed on chromium-dev [1] and subsequently incorporated into the
Chromium Coding Style [2], NOTREACHED() followed by code is an anti-pattern.
This CL lets PRESUBMIT.py detect most of these cases and print a warning to the
developer.
[1] https://groups.google.com/a/chromium.org/d/msg/chromium-dev/c2X0D1Z6X2o/ddkFLqQP0P0J
[2] http://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED-

BUG=none

Review URL: https://codereview.chromium.org/344563003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279681 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-25 11:55:21 +00:00
yoz@chromium.org
a334327dbe Make JSON validity presubmit test less stringent.
On Mac, Python 2.7 gives different results (line 1 column 3 char 2) than
Python 2.6 (line 1 column 2 char 2).

Review URL: https://codereview.chromium.org/335263002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277728 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-17 11:41:53 +00:00
yoz@chromium.org
99171a9499 Add global presubmit that JSON and IDL files can be parsed.
Sometimes, changes to JSON/IDL files make them invalid. It's easier to check these at presubmit time than discovering they can't be parsed at runtime.

This just moves the check from chrome/common/extensions/api to top-level.
This presubmit check excludes files in test/data directories.

BUG=366395

Review URL: https://codereview.chromium.org/239283008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274432 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-03 08:44:47 +00:00
phajdan.jr@chromium.org
7468ac52e7 Change top-level PRESUBMIT to support split tryserver
This also fixes problems with generic trybots not being triggered
when other presubmit files which already support multiple masters
get in scope.

BUG=334892
R=maruel@chromium.org

Review URL: https://codereview.chromium.org/197963003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256698 0039d316-1c4b-4281-b951-d872f2087c98
2014-03-12 23:35:57 +00:00
joi@chromium.org
14a6131ccc Do per-file OWNERS check for per-file DEPS changes.
Before this, an OWNER of the entire directory that a new DEPS rule was pointing to would be required, even when the DEPS rule specified an individual file for which there are per-file OWNERS in the OWNERS file.

BUG=290401

Review URL: https://codereview.chromium.org/116443011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243459 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-08 01:15:41 +00:00
b.kelemen@samsung.com
4436c9e4f2 Include order check should work better for files containing uncheckable includes
Currently as soon as we see an uncheckable include (like ipc/*macros.h or
windows.h) we stop checking the file. Instead we should just skip that line
and continue checking.

Review URL: https://codereview.chromium.org/105633012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243427 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-07 23:19:54 +00:00
dbeam@chromium.org
f527d9cdab Remove 'using base::string16;' from base/strings/string16.h and remove temporary
PRESUBMIT.py _CheckForString16().

R=brettw@chromium.org, maruel@chromium.org
TBR=sky@chromium.org, tsepez@chromium.org
BUG=329295

Review URL: https://codereview.chromium.org/93903011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242733 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-30 21:43:00 +00:00
dbeam@chromium.org
a817dd22fa Adds PRESUBMIT.py check to look for unprefixed string16.
R=maruel@chromium.org
BUG=329295
TEST=PRESUBMIT_test.py
NOTRY=true

Review URL: https://codereview.chromium.org/98143005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241485 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-18 04:35:41 +00:00
erikwright@chromium.org
3e83618c9c Implement presubmit support for _unittest_win includes, etc.
Without this change, xxx_unittest_win.cc would cause an erroneous presubmit error by including xxx_win.h as its first 'special' include.

BUG=None

Review URL: https://codereview.chromium.org/26486003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227823 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-09 22:32:33 +00:00
marja@chromium.org
23093b697d Exclude more files from the PRESUBMIT #include check.
These files need to be included out-of-order.

BUG=NONE
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/24177004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224367 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-20 12:16:30 +00:00
tony@chromium.org
f32e2d1e3a Ignore +grit entries in DEPS files.
Sometimes the trailing slash doesn't exist on the DEPS on grit, but we
were expecting it.

BUG=None
R=maruel@chromium.org

Review URL: https://codereview.chromium.org/20770002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213989 0039d316-1c4b-4281-b951-d872f2087c98
2013-07-26 21:39:08 +00:00
wez@chromium.org
f7051d55dc Update PRESUBMIT scripts to use PresubmitPromptOrNotify helper.
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/13093006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191863 0039d316-1c4b-4281-b951-d872f2087c98
2013-04-02 18:31:42 +00:00
dbeam@chromium.org
b00342e7fa Adding _Check* function for invalid OS_MACROs in src/PRESUBMIT.py
R=maruel@chromium.org
BUG=none
CONTEXT=http://goo.gl/hrlj1
TEST=PRESUBMIT_test.py and less OS_MAXOSX!
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12845013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190693 0039d316-1c4b-4281-b951-d872f2087c98
2013-03-26 16:21:54 +00:00
dbeam@chromium.org
751b05fad7 Don't issue try jobs for OWNERS-only changes.
BUG=None
R=maruel@chromium.org
TEST=PRESUBMIT_test.py, less needless try jobs.
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11830057

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176192 0039d316-1c4b-4281-b951-d872f2087c98
2013-01-10 23:12:17 +00:00
marja@chromium.org
0e5c185616 PRESUBMIT #include check: exclude known cases which need a non-standard order.
BUG=NONE
NOTRY=true


Review URL: https://chromiumcodereview.appspot.com/11607019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173773 0039d316-1c4b-4281-b951-d872f2087c98
2012-12-18 20:17:11 +00:00
marja@chromium.org
120cf540da PRESUBMIT #include check: don't add a warning if we're committing.
This enables the commit queue to commit patches where the #include order is
"wrong" according to the check.

NOTRY=true
BUG=


Review URL: https://chromiumcodereview.appspot.com/11496010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172084 0039d316-1c4b-4281-b951-d872f2087c98
2012-12-10 17:55:53 +00:00
marja@chromium.org
ac294a1800 PRESUBMIT #include check enhancements.
1) Handle #define and #undef the same way as #if etc. See e.g.,
https://codereview.chromium.org/11363222/diff/10015/chrome/browser/history/history_unittest.cc
line 545.

2) Also headers can have the special first include, not only sources. See e.g.,
net/disk_cache/storage_block-inl.h.

NOTRY=true
BUG=NONE


Review URL: https://chromiumcodereview.appspot.com/11441035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171511 0039d316-1c4b-4281-b951-d872f2087c98
2012-12-06 16:38:43 +00:00
enne@chromium.org
b8079ae4a8 Add a presubmit check to prevent committing .rej/.orig patch files
This is a follow-up to me having to remove some of these by hand in r171143.

R=maruel@chromium.org
NOTRY=true
BUG=none


Review URL: https://chromiumcodereview.appspot.com/11448014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171287 0039d316-1c4b-4281-b951-d872f2087c98
2012-12-05 19:56:49 +00:00
marja@chromium.org
962f117eb5 PRESUBMIT #include check enhancement: <sys/..> includes can be in any order.
E.g.,
need to be in this order, since the latter uses definitions from the former.

BUG=NONE

Review URL: https://codereview.chromium.org/11418128

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169290 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-22 18:11:56 +00:00
dbeam@chromium.org
70ca7775fe Adds a presubmit that looks for version control conflicts.
R=maruel@chromium.org,thakis@chromium.org
BUG=None


Review URL: https://chromiumcodereview.appspot.com/11417044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168715 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-20 03:45:03 +00:00
marja@chromium.org
2309b0fa04 Fix include order PRESUBMIT check: #if-#elif-#else
BUG=161390

Review URL: https://codereview.chromium.org/11413036

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168191 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-16 12:18:27 +00:00
marja@chromium.org
2299dcf5bc Fixing the PRESUBMIT include check some more.
The previous version didn't take into account that source files
can have a platform specific suffix.

BUG=NONE
TBR=ben@chromium.org

Review URL: https://codereview.chromium.org/11413012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167996 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-15 19:56:24 +00:00