rjmurillo/moq.analyzers

View on GitHub

Showing 487 of 513 total issues

Line length
Open

# Moq1400: Explicitly choose a mocking behavior instead of relying on the default (Loose) behavior
Severity: Info
Found in docs/rules/Moq1400.md by markdownlint

MD013 - Line length

Tags: line_length

Aliases: line-length

Parameters: linelength, ignorecodeblocks, codeblocks, tables (number; default 80, boolean; default false, boolean; default true, boolean; default true)

This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

You also have the option to exclude this rule for code blocks. To do this, set the ignore_code_blocks parameter to true. To exclude this rule for tables set the tables parameters to false. Setting the parameter code_blocks to false to exclude the rule for code blocks is deprecated and will be removed in a future release.

Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

Line length
Open

`.SetupGet()` and `.SetupSet()` are methods for mocking properties, not methods. Use `.Setup()` to mock methods instead.
Severity: Info
Found in docs/rules/Moq1101.md by markdownlint

MD013 - Line length

Tags: line_length

Aliases: line-length

Parameters: linelength, ignorecodeblocks, codeblocks, tables (number; default 80, boolean; default false, boolean; default true, boolean; default true)

This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

You also have the option to exclude this rule for code blocks. To do this, set the ignore_code_blocks parameter to true. To exclude this rule for tables set the tables parameters to false. Setting the parameter code_blocks to false to exclude the rule for code blocks is deprecated and will be removed in a future release.

Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

Line length
Open

| [Moq1201](./Moq1201.md) | Setup of async methods should use `.ReturnsAsync` instance instead of `.Result`         |
Severity: Info
Found in docs/rules/README.md by markdownlint

MD013 - Line length

Tags: line_length

Aliases: line-length

Parameters: linelength, ignorecodeblocks, codeblocks, tables (number; default 80, boolean; default false, boolean; default true, boolean; default true)

This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

You also have the option to exclude this rule for code blocks. To do this, set the ignore_code_blocks parameter to true. To exclude this rule for tables set the tables parameters to false. Setting the parameter code_blocks to false to exclude the rule for code blocks is deprecated and will be removed in a future release.

Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

Line length
Open

- Ensure the parameters to `.Callback()` match the signature created by `.Setup()`. A code fix is available to automatically
Severity: Info
Found in docs/rules/Moq1100.md by markdownlint

MD013 - Line length

Tags: line_length

Aliases: line-length

Parameters: linelength, ignorecodeblocks, codeblocks, tables (number; default 80, boolean; default false, boolean; default true, boolean; default true)

This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

You also have the option to exclude this rule for code blocks. To do this, set the ignore_code_blocks parameter to true. To exclude this rule for tables set the tables parameters to false. Setting the parameter code_blocks to false to exclude the rule for code blocks is deprecated and will be removed in a future release.

Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

Expected an indentation at 4 instead of at 2.
Open

  "version": 1,
Severity: Minor
Found in .config/dotnet-tools.json by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      "rollForward": false
Severity: Minor
Found in .config/dotnet-tools.json by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      - dependency-name: "Microsoft.CodeAnalysis.CSharp.Workspaces"
Severity: Minor
Found in .github/dependabot.yml by editorconfig

Expected an indentation at 4 instead of at 2.
Open

  - any-glob-to-any-file: ['docs/**', '**/*.md']
Severity: Minor
Found in .github/labeler.yml by editorconfig

Expected an indentation at 4 instead of at 2.
Open

  <ItemGroup>

Expected an indentation at 4 instead of at 2.
Open

  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
Severity: Minor
Found in src/Analyzers/Resources.resx by editorconfig

Expected an indentation at 4 instead of at 2.
Open

  <resheader name="resmimetype">
Severity: Minor
Found in src/Analyzers/Resources.resx by editorconfig

Expected an indentation at 4 instead of at 2.
Open

  </PropertyGroup>
Severity: Minor
Found in src/Common/Common.csproj by editorconfig

Unexpected tabs found.
Open

namespace Moq.Analyzers.Common;

Expected an indentation at 16 instead of at 15.
Open

               || type.StartsWith("System.Threading.Tasks.Task<", StringComparison.Ordinal)

Expected an indentation at 8 instead of at 6.
Open

      <package pattern="Microsoft.CodeAnalysis.Analyzer.Testing*" />
Severity: Minor
Found in nuget.config by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      <package pattern="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing*" />
Severity: Minor
Found in nuget.config by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      <package pattern="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing*" />
Severity: Minor
Found in nuget.config by editorconfig

Expected an indentation at 8 instead of at 6.
Open

      - name: Enable auto-merge for Dependabot PRs

Expected an indentation at 16 instead of at 14.
Open

              with:
Severity: Minor
Found in .github/workflows/label-pr.yml by editorconfig

Expected an indentation at 4 instead of at 2.
Open

  push:
Severity: Minor
Found in .github/workflows/main.yml by editorconfig
Severity
Category
Status
Source
Language