[Xamarin.Android.Build.Tasks] Ignore Lint MissingSuperCall (#935)

`lint` 26.1.1 added a new MissingSuperCall check to `lint`. This
errors out if a class does NOT call `super.onCreate()`. Because
our generated code doesn't need to call `super.onCreate()`,
as the expectation is that the *managed subclass* will instead
invoke `base.OnCreate()`.
This commit is contained in:
Dean Ellis 2017-10-17 16:13:23 +01:00 коммит произвёл Jonathan Pryor
Родитель bdfa3aff78
Коммит a7a7b7c4e7
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -168,6 +168,10 @@ namespace Xamarin.Android.Tasks
// for the MonoPackageManager.java since we have to use a static to keep track of the
// application instance.
{ "StaticFieldLeak", new Version(26, 0, 2) },
// We need to hard code this test as disabled because Lint will issue a error
// for our generated code not calling super.OnCreate. This however is by design
// so we need to ignore this error.
{ "MissingSuperCall", new Version (26, 1, 1) },
};
static readonly Regex lintVersionRegex = new Regex (@"version[\t\s]+(?<version>[\d\.]+)");