Skip to content

LGTM Code Analysis #6587

Closed
Closed
@swissspidy

Description

@swissspidy

Feature description

I noticed that the amphtml repo uses LGTM for code analysis, which seems to provide some useful results that might not be caught by other linters.

I've just set it up for the Web Stories repo and fixed quite a few bugs found by it:

GoogleForCreators/web-stories-wp#8900

For the AMP plugin there are not too many alerts, which is good: https://lgtm.com/projects/g/ampproject/amp-wp/?mode=list

Setting up LGTM for this repo would be as easy as installing the GitHub app via https://lgtm.com/projects/g/ampproject/amp-wp/ci/ so LGTM will be added as a status check for PRs and can leave comments and such.

Then, it's about fixing alerts or ignoring some if needed.

There are also status badges for the readme if desired.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChangeloggedWhether the issue/PR has been added to release notes.InfrastructureChanges impacting testing infrastructure or build toolingTestingIssues related with Unit, E2E, Smoke, and other testing requirements/needs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions