2

Closed

StyleCop not checking all files in project

description

(Sorry, accidentally posted this under issues - please delete as I've now posted it under discussions)

I've noticed that StyleCop doesn't seem to be checking every file in my project. I know for sure that some of the .cs files have violations, but I don't see warnings in the Error List when I build.

If I choose "Run StyleCop (Rescan All)" some of the .cs files are missing from the list that appears in the output window (including the files with known violations). Why is this?
Closed Dec 1, 2016 at 5:12 AM by csdahlberg
Closing this work item due to its age and because development is moving to GitHub. Please open a new issue at https://github.com/StyleCop/StyleCop if this still needs to be addressed.

comments

bonzai wrote Dec 8, 2014 at 10:29 PM

i can confirm that!
in a Project Dir i have 4 files an \Config\ConfigFactory.cs, \Config\ConfigForm.cs, \Config\ConfigForm.Designer.cs and an interface \Config\IConfigFactory.cs on stylecop output window the ConfigForm.Designer.cs will skip after that the ConfigFactory.cs will not be checked by StyleCop. Thats the exectly output:
PS i have configure to skip Designer und Generated files..

------ StyleCop 4.7 (build 4.7.49.0) started ------

Pass 1: BonzBackup - \Config\ConfigForm.cs
Pass 1: BonzBackup - \Config\ConfigForm.Designer.cs
Skipping: BonzBackup - \Config\ConfigForm.Designer.cs
Pass 1: BonzBackup - \Config\IConfigFactory.cs
Pass 1: BonzBackup - \Controls\ControlFactory.cs
Pass 1: BonzBackup - \Controls\ControlProvider.cs
Pass 1: BonzBackup - \Controls\IControlProvider.cs
Pass 1: BonzBackup - \Data\DataFactory.cs
Pass 1: BonzBackup - \Data\DataFactoryXml.cs
Pass 1: BonzBackup - \Data\IDataFactory.cs
Pass 1: BonzBackup - \Fields\ConfigField.cs
Pass 1: BonzBackup - \Fields\FieldFactory.cs
Pass 1: BonzBackup - \Fields\IConfigField.cs
Pass 1: BonzBackup - \FormMain.cs
Pass 1: BonzBackup - \FormMain.Designer.cs
Skipping: BonzBackup - \FormMain.Designer.cs
Pass 1: BonzBackup - \Log\ILogProvider.cs
Pass 1: BonzBackup - \Log\LogProvider.cs
Pass 1: BonzBackup - \Program.cs
Pass 1: BonzBackup - \Properties\AssemblyInfo.cs
Pass 1: BonzBackup - \Properties\Resources.Designer.cs
Skipping: BonzBackup - \Properties\Resources.Designer.cs
Pass 1: BonzBackup - \Properties\Settings.Designer.cs
Skipping: BonzBackup - \Properties\Settings.Designer.cs
Pass 1: UnitTests - \DataFactoryTests.cs
Pass 1: UnitTests - \Properties\AssemblyInfo.cs
Pass 2: BonzBackup - \Config\ConfigForm.cs
Pass 2: BonzBackup - \FormMain.cs

------ StyleCop completed ------

========== Violation Count: 0 ==========