Showing 487 of 513 total issues
Line length Open
# Moq1400: Explicitly choose a mocking behavior instead of relying on the default (Loose) behavior
- Read upRead up
- Exclude checks
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.
- Read upRead up
- Exclude checks
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` |
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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,
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
"rollForward": false
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Workspaces"
- Exclude checks
Expected an indentation at 4 instead of at 2. Open
- any-glob-to-any-file: ['docs/**', '**/*.md']
- Exclude checks
Expected an indentation at 4 instead of at 2. Open
<ItemGroup>
- Exclude checks
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">
- Exclude checks
Expected an indentation at 4 instead of at 2. Open
<resheader name="resmimetype">
- Exclude checks
Expected an indentation at 4 instead of at 2. Open
</PropertyGroup>
- Exclude checks
Unexpected tabs found. Open
namespace Moq.Analyzers.Common;
- Exclude checks
Expected an indentation at 16 instead of at 15. Open
|| type.StartsWith("System.Threading.Tasks.Task<", StringComparison.Ordinal)
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
<package pattern="Microsoft.CodeAnalysis.Analyzer.Testing*" />
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
<package pattern="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing*" />
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
<package pattern="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing*" />
- Exclude checks
Expected an indentation at 8 instead of at 6. Open
- name: Enable auto-merge for Dependabot PRs
- Exclude checks
Expected an indentation at 16 instead of at 14. Open
with:
- Exclude checks
Expected an indentation at 4 instead of at 2. Open
push:
- Exclude checks