-
Notifications
You must be signed in to change notification settings - Fork 279
Bug 2053531 - Add nimbus-fml lint #7563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
travis79
wants to merge
1
commit into
main
Choose a base branch
from
Bug2053531
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
components/support/nimbus-fml/fixtures/fe/lints/included.fml.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| # Included by including.fml.yaml; excuses what it defines from a lint. | ||
| about: | ||
| description: Fixture for the lint tests. | ||
| no-lint: | ||
| - MISSING_META_BUG | ||
| features: | ||
| included-feature: | ||
| description: A feature defined in a file that another file includes. | ||
| contacts: | ||
| - jdoe@example.com | ||
| documentation: | ||
| - name: User documentation | ||
| url: https://example.com/included-feature | ||
| variables: | ||
| enabled: | ||
| description: Whether the included feature does anything at all. | ||
| type: Boolean | ||
| default: false |
22 changes: 22 additions & 0 deletions
22
components/support/nimbus-fml/fixtures/fe/lints/including.fml.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| # Includes a file that carries its own top level `no-lint` list. | ||
| about: | ||
| description: Fixture for the lint tests. | ||
| channels: | ||
| - release | ||
| includes: | ||
| - included.fml.yaml | ||
| features: | ||
| including-feature: | ||
| description: A feature defined in the file that does the including. | ||
| contacts: | ||
| - jdoe@example.com | ||
| documentation: | ||
| - name: User documentation | ||
| url: https://example.com/including-feature | ||
| meta-bug: https://example.com/bugs | ||
| variables: | ||
| enabled: | ||
| description: Whether the including feature does anything at all. | ||
| type: Boolean | ||
| default: false |
61 changes: 61 additions & 0 deletions
61
components/support/nimbus-fml/fixtures/fe/lints/needs-work.fml.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| # Trips as many lints as fit into one file. | ||
| about: | ||
| description: Fixture for the lint tests. | ||
| channels: | ||
| - release | ||
| features: | ||
| myBadFeature: | ||
| description: Bad | ||
| variables: | ||
| hide-toolbar: | ||
| description: TODO | ||
| type: Boolean | ||
| default: false | ||
| myBadFeature-mode: | ||
| description: Which of the layouts the feature uses. | ||
| type: String | ||
| default: compact | ||
| section-list: | ||
| description: The sections shown to the user, in the order they appear. | ||
| type: List<String> | ||
| default: [] | ||
| deep: | ||
| description: A value that has to be written out four levels deep. | ||
| type: Outer | ||
| default: {} | ||
| objects: | ||
| Outer: | ||
| description: The outermost object. | ||
| fields: | ||
| middle: | ||
| description: The object in the middle. | ||
| type: Middle | ||
| default: {} | ||
| Middle: | ||
| description: The object in the middle. | ||
| fields: | ||
| inner: | ||
| description: The innermost object. | ||
| type: Inner | ||
| default: {} | ||
| Inner: | ||
| description: The innermost object. | ||
| fields: | ||
| label: | ||
| description: The label shown to the user. | ||
| type: String | ||
| default: "" | ||
| unusedObject: | ||
| description: An object that no feature refers to. | ||
| fields: | ||
| label: | ||
| description: The label shown to the user. | ||
| type: String | ||
| default: "" | ||
| enums: | ||
| OnlyOne: | ||
| description: An enum that doesn't offer a choice. | ||
| variants: | ||
| onlyVariant: | ||
| description: The only variant there is. |
25 changes: 25 additions & 0 deletions
25
components/support/nimbus-fml/fixtures/fe/lints/suppressions.fml.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| # Excuses itself from some lints, at both levels. | ||
| about: | ||
| description: Fixture for the lint tests. | ||
| channels: | ||
| - release | ||
| no-lint: | ||
| - MISSING_META_BUG | ||
| - NOT_A_REAL_FILE_LINT | ||
| features: | ||
| legacy-feature: | ||
| description: A feature that was designed before there were lints to nudge it. | ||
| no-lint: | ||
| - MISSING_ENABLED_VARIABLE | ||
| - NOT_A_REAL_LINT | ||
| contacts: | ||
| - jdoe@example.com | ||
| documentation: | ||
| - name: User documentation | ||
| url: https://example.com/legacy-feature | ||
| variables: | ||
| max-rows: | ||
| description: The largest number of rows the list is allowed to grow to. | ||
| type: Int | ||
| default: 3 |
32 changes: 32 additions & 0 deletions
32
components/support/nimbus-fml/fixtures/fe/lints/well-formed.fml.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| --- | ||
| # Trips no lints. | ||
| about: | ||
| description: Fixture for the lint tests. | ||
| channels: | ||
| - release | ||
| features: | ||
| toolbar-redesign: | ||
| description: The redesigned toolbar shown at the bottom of the browser screen. | ||
| meta-bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2053531 | ||
| contacts: | ||
| - jdoe@example.com | ||
| documentation: | ||
| - name: User documentation | ||
| url: https://example.com/toolbar-redesign | ||
| variables: | ||
| enabled: | ||
| description: Whether the redesigned toolbar is shown instead of the old one. | ||
| type: Boolean | ||
| default: false | ||
| button-style: | ||
| description: How the buttons in the toolbar are drawn. | ||
| type: ButtonStyle | ||
| default: outline | ||
| enums: | ||
| ButtonStyle: | ||
| description: The ways a toolbar button can be drawn. | ||
| variants: | ||
| outline: | ||
| description: The button is drawn as an outline only. | ||
| filled: | ||
| description: The button is drawn filled with the accent colour. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can just be grouped under
nimbus.